The BKey API is in active development. Endpoints and schemas may change without notice.
Base URL
Authentication
Most endpoints require a Bearer token obtained via OAuth 2.1 client credentials or CIBA:
Authorization: Bearer <access_token>
Merchant-facing endpoints use a separate merchant API key scheme:
Authorization: Bearer mk_live_...
See Authentication Overview for details.
Successful responses return JSON:
{
"id": "chk_abc123",
"status": "pending",
"amount": 9.99
}
Errors return an appropriate HTTP status with structured details:
{
"success": false,
"error": {
"code": "invalid_argument",
"message": "Amount is required"
}
}
HTTP status codes
| Code | Meaning |
|---|
200 | Success |
201 | Created |
400 | Validation error — check request body |
401 | Unauthorized — missing or invalid token |
403 | Forbidden — insufficient scopes |
404 | Resource not found |
409 | Conflict — duplicate or concurrent request |
429 | Rate limited |
5XX | Server error |
OpenID Connect discovery
GET /.well-known/openid-configuration
Returns the OIDC discovery document with all supported endpoints, grant types, and signing algorithms.
Signing keys
Returns the JSON Web Key Set for verifying BKey-issued JWTs. Keys use EdDSA (Ed25519).