Enkash Developer Portal
Home
Home
Login
  1. Encryption & Decryption Guide
  • Back to home
  • Payout APIs
  • Encryption & Decryption Guide
    • Generate Authentication Token
      POST
  • Beneficiary
    • Add Beneficiary
    • Search Beneficiary
    • Delete Beneficiary
  • Transfer
    • Initiate Transfer
    • Initiate Batch Transfer
    • Search Payout Transfers
  • Bank Details
    • Retrieve Account Balance
    • Retrieve Bank Account Details
    • Add Funds to EnKash
    • Fetch Statement
  • Webhook
    • Create Webhook Configuration
    • Retrieve Webhook Data
  1. Encryption & Decryption Guide

Generate Authentication Token

POST
/oauth/token
📌
To obtain an authentication token, send a POST request to our OAuth endpoint. This request authenticates your credentials and returns an access token, which you will use to authorize all subsequent API calls.
Make sure your credentials are properly encoded and transmitted securely
Encryption and decryption are not required when using the Get Authentication API

Request

Header Params
Content-Type
string 
required
Example:
application/x-www-form-urlencoded
Authorization
string 
required
Basic Authorization token generated using Base64 encoding {clientId}:{clientSecret}
Example:
Basic ZW5rYXNoLWNsaWVudDplbmthc2gtc2VjcmV0
Body Params application/x-www-form-urlencoded
username
string 
required
Registered Email Id
Example:
saquib.n+ins@enkash.com
password
string 
required
Password for the user
Example:
Password@123
grant_type
string 
required
Default:
password
Example:
password
clientId
string 
required
Client Id
Example:
CEKFOWV7UQ

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://test.your-api-server.com/oauth/token' \
--header 'Authorization: Basic ZW5rYXNoLWNsaWVudDplbmthc2gtc2VjcmV0' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=saquib.n+ins@enkash.com' \
--data-urlencode 'password=Password@123' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'clientId=CEKFOWV7UQ'

Responses

🟢200Success
application/json
Body
accessToken
string 
optional
tokenType
string 
optional
expiresIn
integer <int32>
optional
refreshToken
string 
optional
Example
{
    "accessToken": "string",
    "tokenType": "string",
    "expiresIn": 0,
    "refreshToken": "string"
}
Modified at 2025-07-08 18:45:15
Previous
Encryption & Decryption Guide
Next
Add Beneficiary
Built with