- Creation and management of multi-currency balances
- Retrieval of real-time cryptocurrency rates
- Substantial data insights for business owners
Authentication
All API requests require a Bearer Token for authentication, passed in theAuthorization header.
Your authorization value is a base64 encoded value of your api key and your secret key.
You can obtain API tokens via your Busha user or business account. Authentication is mandatory to ensure secure and authorized interactions with the API.
The API keys from the dashboard provides a base64 encoding of the your authorization tokens.
Your generated Key should look like this:
VURtNXhWcHueantkpaiewjo0S044MWsadfojienuoxRTiWDJaeWJaTGxxanZ3Ym10OU1RZnVWajVW=
Example Header:
Error Handling
#Standardized error responses ensure predictable interactions. Errors are detailed for easy debugging and understanding:| Error Code | HTTP Status Code | Description |
|---|---|---|
bad_request | 400 | Invalid input or malformed request |
unauthorized | 401 | Invalid or missing authentication |
not_found | 404 | Resource not found |
service_unavailable | 503 | Server error |
Pagination
Pagination uses cursors provided as: The API supports cursor-based pagination for endpoints with large datasets. Pagination uses anext_cursor and previous_cursor returned in the response.
Example Response Format:
Rate Limiting
Rate limits determine how many API calls can be made in a rolling minute. This ensures fair and optimized use of system resources. The rate limits allowed by each resource will be provided with the header:429 Too Many Requests response.
Common Parameters
Common parameters enhance consistency across endpoints:| Parameter Name | Location | Description | Example |
|---|---|---|---|
X-BU-PROFILE-ID | Header | User profile identifier | BUS_qwejinoiuiqw93ejjw |
id | Path | Unique NanoID identifier | dpt_jweqafajsndiun34fd |
cursor | Query | Pagination cursor | base64_cursor_string |