Authentication
All API requests (except for login) require authentication using a JWT token. The token should be included in the Authorization
header as a Bearer token.
Authorization: Bearer <your_jwt_token>
Generating the your_jwt_token
To generate the JWT token, make a POST
request to the authentication endpoint with your secret_key
and api_key
.
Request URL
{{BASE_URL}}/v1/clients/oauth/token
Request:
POST /auth/token
Content-Type: application/json
{
"secret_key": "YOUR_TOKEN",
"api_key": "YOUR_TOKEN"
}
Response:
{
"status": 200,
"message": "success",
"data": {
"access_token": "Your Token",
"token_type": "Bearer",
"expires_in": 7200
}
}
Use the access_token
from the response as your your_jwt_token
in subsequent API requests.