Enkash Developer Portal
Home
Home
Login
  1. Home
  • Back to home
  • Wallet APIs
  • Auth Token
    POST
  • Create Wallet
    POST
  • Generate OTP
    POST
  • Min KYC
    POST
  • Get Wallet Details
    POST
  • VKYC
    GET
  • VKYC Status
    GET
  1. Home

Auth Token

Developing
POST
https://ekpayout-uat.enkash.in/oauth/token
This endpoint is used to obtain an OAuth 2.0 token from the Enkash service. It allows clients to authenticate and receive a token that can be used for subsequent API requests.

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Header Params
Cookie
string 
required
Example:
_cfuvid=f5yil.adja6WY54i74vh4ra.7UO0u2fMcW3Sd7nDXbM-1737528925925-0.0.1.1-604800000; JSESSIONID=3811B357B64F1FB6E0C97811B55F13AA; _cfuvid=w0XP61XaIRNwrQKB6k8gpRdZPaCGnEwn8Gh8Lq9YcLs-1752583721627-0.0.1.1-604800000
Content-Type
string 
required
Example:
application/x-www-form-urlencoded
Authorization
string 
required
Example:
••••••
Body Params application/x-www-form-urlencoded
username
string 
required
The user's username
Example:
6001020040
password
string 
required
The user's password
Example:
Test@1234567
grant_type
string 
required
The type of grant being requested (e.g., password, client_credentials).
Example:
password
clientId
string 
required
The unique identifier for the client application
Example:
CEKHZH0UHW

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ekpayout-uat.enkash.in/oauth/token' \
--header 'Cookie: _cfuvid=f5yil.adja6WY54i74vh4ra.7UO0u2fMcW3Sd7nDXbM-1737528925925-0.0.1.1-604800000; JSESSIONID=3811B357B64F1FB6E0C97811B55F13AA; _cfuvid=w0XP61XaIRNwrQKB6k8gpRdZPaCGnEwn8Gh8Lq9YcLs-1752583721627-0.0.1.1-604800000' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic Og==' \
--data-urlencode 'username=6001020040' \
--data-urlencode 'password=Test@1234567' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'clientId=CEKHZH0UHW'

Responses

🟢200OK
application/json
Body
access_token
string 
required
An access token that can be used for authenticating subsequent requests.
token_type
string 
required
Token type (e.g., Bearer)
refresh_token
string 
required
refresh token
expires_in
integer 
required
Expiration time for the token.
scope
string 
required
read write trust
Examples
{
    "access_token": "bg-xFpMtGNl2jJGD8VPR4YZpNcA",
    "token_type": "bearer",
    "refresh_token": "PAADpFl7dsgQBE-21fSSccCMlVE",
    "expires_in": 86399,
    "scope": "read write trust"
}
Modified at 2025-07-16 15:42:37
Next
Create Wallet
Built with