bk_.
Creating an API key
Open the dashboard
Log in to app.blockra.io and navigate to Developers → API Keys.
Create a new key
Click Create API Key, give the key a descriptive name, and select the scopes it needs.
Sending your key
Pass the key on every request using either theX-API-Key header or as a Bearer token in the Authorization header:
Scopes
Each API key is granted a set of scopes at creation. A request to an endpoint that requires a scope your key does not have returns403 with code HTTP_403.
| Scope | What it grants |
|---|---|
payments:read | List and retrieve payments |
payments:write | Create payments and checkout sessions |
customers:read | List and retrieve customers |
customers:write | Reserved for customer write operations |
balance:read | Read account balances |
withdrawals:read | List withdrawal history |
withdrawals:write | Request withdrawals |
payment_links:read | List payment links |
payment_links:write | Create and update payment links |
webhooks:read | List webhook endpoints |
webhooks:write | Create and delete webhook endpoints |
Rate limits
Requests are rate-limited per API key. If you exceed the limit, the API returns429 with code RATE_LIMIT_EXCEEDED. Back off and retry after a short delay.
Authentication errors
| HTTP status | Code | Cause |
|---|---|---|
401 | HTTP_401 | The key is missing, malformed, or invalid |
403 | HTTP_403 | The key exists but lacks the required scope |
429 | RATE_LIMIT_EXCEEDED | Too many requests from this key |

