POST
/
api
/
v1
/
eoa-accounts
Add a new account address for authentication
const url = 'https://api.gnosispay.com/api/v1/eoa-accounts';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"address":"0x1234567890abcdef1234567890abcdef12345678"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "id": "clp3j1f9a0000a1cdh6ezx2qv",
  "address": "0x1234567890abcdef1234567890abcdef12345678",
  "userId": "user_123",
  "createdAt": "2025-01-27T00:00:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
address
string

The Ethereum address of the new externally owned account.

Example:

"0x1234567890abcdef1234567890abcdef12345678"

Response

Successfully created EOA account.

id
string
Example:

"clp3j1f9a0000a1cdh6ezx2qv"

address
string
Example:

"0x1234567890abcdef1234567890abcdef12345678"

userId
string
Example:

"user_123"

createdAt
string<date-time>
Example:

"2025-01-27T00:00:00Z"