post
https://api.blockpeer.finance/api/blockpeer-trade/auth/generate-token
The Blockpeer Trade API uses OAuth2 client credentials for authentication. Before making any API call, you must generate an access token using your client_id and client_secret. This token must be passed as a Bearer token in the Authorization header of every subsequent request.
The Blockpeer Trade API is protected by OAuth2 Bearer Token authentication. All endpoints require a valid access token. Use this endpoint to obtain one before making any other API request.
Success Response 200 OK
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6...",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "read write",
"external_id": "YOUR_EXTERNAL_ID"
}
Error Response 401 Unauthorized
{
"success": false,
"message": "Invalid client credentials."
}
