Bankr API
Manage your personal Bankr API key and interact with the Bankr trading service. Each user can store their own encrypted API key, which takes precedence over the platform-wide key. If no personal key is configured and no platform key is available, endpoints return a503 with needsKey: true so your client can prompt for key entry.
All Bankr endpoints require session authentication. Your personal API key is encrypted at rest with AES-256-GCM and is never returned in plaintext through the API.
Bankr API key management
Manage your personal Bankr API key. When configured, your key is used for all Bankr requests instead of the platform default.Check key status
Response
Response fields
Errors
Save API key
Request body
Response
Errors
Remove API key
Response
Errors
Get balances
Key resolution
The endpoint resolves the API key in the following order:- Your personal key (set via
POST /api/user/bankr-key) - The platform-wide key
- If neither is available, returns
503withneedsKey: true
Query parameters
Response
The response shape is determined by the Bankr API and contains balance data for the requested chains.Errors
Error response (no key)
When your client receives a
503 response with needsKey: true, display a key-entry form so the user can configure their personal Bankr API key via POST /api/user/bankr-key.