Authentication Token
Follow these steps to generate Authentication token
API Endpoints
Origin URL
Authentication API (for access token)
This API generates a JWT access token used for consuming the APIs. The token expires after one hour, so the same authentication endpoint must be called again to retrieve a fresh token.
End point:
Request
  1. Method:POST
  2. Content-Type:application/json
Authentication :
Format: Authorization: Basic<base64(username:password)>
Response (success)
  1. Status Code: 200 OK
  2. Data
    1. token - JWT token (Access token)
Response (error)
  1. Status Code: 402
200 OK
copy-icon
{
    "success": true,
    "code": 5217,
    "message": "Access token generated successfully!",
    "data": {
            "token": "<token>"
        }
}
402
copy-icon
{
    "message": "Unauthorized"
}