About Authorization
Get Authorization Token API
Purpose
Endpoint:
Environment | Endpoint URL |
---|---|
Test | https://ekpayout-uat.enkash.in/oauth/token |
POST
Request Headers:
Header | Value | Description |
---|---|---|
Content-Type | application/json | Specifies the media type of the request body. |
API-Key | Your unique API key | Provided by Enkash upon registration. |
Sample Request:
curl --location 'https://ekpayout-uat.enkash.in/oauth/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic ZW5rYXNoLWNsaWVudDplbmthc2gtc2VjcmV0' \
--header 'Cookie: _cfuvid=yGxHvg3YoXDw5.TqhyNajXB5rfz3FgUUHcHaZl3G_i0-1740119862393-0.0.1.1-604800000' \
--data-urlencode 'username=enkash@enkash.com' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'password=Test@1234'
Response:
Field | Type | Description |
---|---|---|
token | string | The generated authentication token |
expiry | integer (int64) | Token expiration time in milliseconds |
resultCode | integer (int32) | Status code indicating the outcome of the token generation request |
resultMessage | string | Additional information about the request's result |
Sample Response:
{
"token": "abcdef1234567890",
"expiry": 1672531199000,
"resultCode": 200,
"resultMessage": "Token generated successfully."
}
Integration Notes
Authorization
header for all subsequent API requests:Authorization: Bearer {token}
Related Pages:
Modified at 2025-02-21 08:47:02