CAPSEND API Docs
API REFERENCE

Authentication

Exchange the client credentials issued during MTO onboarding for a short-lived API access token.

POST /api/token
Client credentials20 requests per minute

Request

FieldTypeRequiredDescription
clientIdstringYesClient ID for the environment you are calling.
clientSecretstringYesSecret paired with that client ID.
bash
curl --request POST "${BASE_URL}/api/token" \
  --header "Content-Type: application/json" \
  --data '{
    "clientId": "your_client_id",
    "clientSecret": "your_client_secret"
  }'

Response

json
{
  "accessToken": "eyJhbGciOi...",
  "tokenType": "Bearer",
  "expiresIn": 3600
}

Send accessToken with each wallet and transfer request:

http
Authorization: Bearer eyJhbGciOi...

The token lasts one hour and cannot be refreshed. Cache it securely, then request another shortly before expiry. Do not request a fresh token for every API call.

Common errors

StatusMeaning
401Credentials are invalid or belong to the other environment.
403The MTO account is not approved and active.
429Too many token requests; reuse a cached token and retry later.
Copyright CAPSEND Finance Services Ltd
Search documentation Find an endpoint, workflow, or integration rule.

Start typing to search the integration guide.