🔐 Bloquo API: Authentication
1. Overview
Authentication in the Bloquo API is handled via a Bearer Token, generated using your application's clientId and clientSecret. This token is required to access any protected API resources.
2. Authentication Endpoint
3. Request Body
Send the credentials in JSON format:
4. Sample cURL Request
5. Successful Response Example
-
accessToken: the authentication token.
-
expiresIn: expiration time in seconds (e.g., 3600 = 1 hour).
-
tokenType: always Bearer.
6. Using the Token
Once you receive the accessToken, include it in all future API requests using the Authorization header:
7. Frequently Asked Questions (FAQ)
❓ What are clientId and clientSecret?
They are credentials provided by Bloquo to authorize your application. If you don’t have them, please contact Bloquo’s support team.
❓ Where do I use the token in other API calls?
Include the token in the Authorization header, like so:
❓ Does the token expire?
Yes. The expiresIn field indicates how long the token is valid (usually 3600 seconds = 1 hour). After that, you'll need to request a new one.
❓ Can I reuse the same token for different endpoints?
Yes, as long as the token is still valid. Once expired, re-authentication is required.
❓ What does "status": true mean in the response?
It means the authentication was successful.
❓ What environment is this URL for?
The provided URL (staging-api.bloquo.io) is for the staging environment. Contact the Bloquo team to get the production endpoint and credentials.
❓ Can I use this URL in production?
No. This is a staging (test) URL. Production requires a separate endpoint and credentials.
For further questions about the Bloquo API authentication process, contact our technical team or check the official documentation.
Related Articles
How to use the Orders endpoints in the Bloquo API?
? Bloquo API: Orders Endpoints Overview The Orders section of the Bloquo API allows you to create, list, and refund deposit and withdrawal orders. This functionality is essential for managing incoming and outgoing transactions on the platform. ? ...
How to retrieve available currencies using the Reference endpoints?
? Bloquo API: Reference Endpoints (Currencies) Overview The Reference endpoints in Bloquo API provide foundational information such as the list of supported currencies. This is essential for validating transactions, configuring accounts, and ...
How to use the Trades endpoints in the Bloquo API?
? Bloquo API: Trades Endpoints Overview The Trades endpoints allow efficient currency exchange operations on the platform, including quote requests, trade confirmations, and trade history listing. ? Request Quote POST Request Quote Request a quote ...
How to use the Notifications endpoints in the Bloquo API?
? Bloquo API: Notification Endpoints Overview The Notifications endpoints allow clients to retrieve a history of notifications generated by the platform (such as transaction status changes) and to manually trigger resending of notifications if ...
How to use the Accounting endpoints in the Bloquo API?
? Bloquo API: Accounting Endpoints ✅ Overview The Accounting section endpoints of the Bloquo API allow you to retrieve financial data of the authenticated customer, such as: Customer registration details Accounts (FIAT and CRYPTO) Current balances ...