Use this endpoint to obtain access token (JWT) to be used for authorization on all API requests on OneKhusa platform. This access token will be set under request header authorization bearer field for subsequent API calls.
Preferred language for the response
Request payload for authenticating client API keys and retrieving access token
The client API key
"client_key_12345"
The client API secret (45 characters)
45"abc123def456ghi789jkl012mno345pqr678stu901vwx234yz"
The organization identifier
"org_001"
Required string length: 8
10000000 <= x <= 9999999935253486
Successfully retrieved access token when credentials are valid
Response payload containing the JWT access token and expiration details
JWT token for API authentication
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjUwMDAiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjUwMDAiLCJleHAiOjE3MzUyODgwMDB9.signature"
Token expiration timestamp
"2024-12-26T10:00:00.000Z"
Token validity duration in minutes (always 5)
5