POST
/
api
/
v1
/
eoa-accounts
Create a new EOA account for the current user
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

Response

201
application/json

Successfully created EOA account.

The response is of type object.