GET
/
api
/
v1
/
safe-config
Retrieve the Safe configuration for the authenticated user
const url = 'https://api.gnosispay.com/api/v1/safe-config';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "hasNoApprovals": false,
  "isDeployed": true,
  "address": "0xabcdef1234567890abcdef1234567890abcdef12",
  "tokenSymbol": "EURe",
  "fiatSymbol": "EUR",
  "accountStatus": 0,
  "accountAllowance": {
    "balance": "1000000000000000000",
    "refill": "2000000000000000000",
    "period": "86400",
    "nextRefill": "1633046400"
  }
}

Authorizations

Authorization
string
header
required

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

Response

200
application/json

Successfully retrieved Safe configuration.

The response is of type object.