Generate Access 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."
}

Form Data
string
required
string
required
Headers
string

Unique key to ensure idempotency for API requests.

string

Unique external ID for tracking purposes, can be used for debugging and analytics.

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json