POST
/
api
/
v1
/
account
Create or Deploy a Safe (pending Setup)
const url = 'https://api.gnosispay.com/api/v1/account';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"chainId":"100"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
"id": "safe-account-id-123",
"address": "0x1234567890123456789012345678901234567890",
"userId": "user123",
"chainId": "100",
"salt": "some-salt-value",
"createdAt": "2024-01-01T00:00:00Z",
"deployed": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
chainId
enum<string>
required

The ID of chain (currently only supports Gnosis Chain)

Available options:
100

Response

Successfully created or checked Safe account

id
string

The Safe account ID

address
string

The Safe account address

userId
string

ID of the user owning this Safe

chainId
string

ID of the blockchain

salt
string

Salt used for Safe address generation

createdAt
string<date-time>

Timestamp of when the Safe was created

deployed
boolean

Whether the Safe is deployed on-chain

transactionHash
string

Transaction hash of the deployment transaction (if completed)