Skip to main content
POST
/
generate-token
Exchange keyId + secret for a Bearer token
curl --request POST \
  --url https://{baasHost}/api/generate-token \
  --header 'Content-Type: application/json' \
  --data '
{
  "keyId": "00000000-0000-4000-8000-000000000000",
  "secret": "<your-api-secret>"
}
'
{
  "token": "eyJhbGciOi...",
  "expiresAt": "2026-01-01T12:00:00.000Z",
  "businessId": "2c0219b4-8c70-418d-9e9a-449e7b7643eb",
  "environment": "sandbox",
  "scopes": [
    "wallet:*",
    "lending:*",
    "identity:*"
  ]
}

Body

application/json
keyId
string
required
secret
string
required

Response

Token issued

token
string
expiresAt
string<date-time> | null
businessId
string
environment
enum<string>
Available options:
sandbox,
production
scopes
string[]