API Reference
Authorization
Every request to the Stablegate API carries your API key in the X-Api-Key header. Requests go to https://api.stablegate.com.
Generate the key in the Developers section of the Stablegate app. The partner API does not require request signing.
curl https://api.stablegate.com/v1/bank-providers/ \
--header 'X-Api-Key: YOUR_API_KEY'
Error responses
A missing or invalid key is answered with 401; a key without access to the requested resource, or without the Partner API enabled for the account, with 403. Both use the common error envelope:
| Status | error_code |
|---|---|
401 | devapi_unauthorized_error |
403 | devapi_forbidden_error |
{
"trace_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"error_code": "devapi_unauthorized_error",
"message": "<reason>",
"detail": "<reason>"
}
message explains the reason in plain text and its wording can change, so branch on error_code. The detail key is still returned for now and will be removed in a later release.
See Authentication in the guide for creating keys, key rotation and code examples.