Logo
Authentication Token
Follow these steps to generate Authentication token
API Endpoints
Origin URL
  1. 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
    1. Status Code: 200 OK
    2. Data
      1. token - JWT token (Access token)
    copy-icon
    copy-icon
    {
        "success": true,
        "code": 5217,
        "message": "Access token generated successfully!",
        "data": {
                "token": "<token>"
            }
    }
    Response
    1. Status Code: 402
    copy-icon
    copy-icon
    {
        "message": "Unauthorized"
    }