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
      POST
    • Search Beneficiary
      POST
    • Delete Beneficiary
      DELETE
  • Transfer
    • Initiate Transfer
      POST
    • Initiate Batch Transfer
      POST
    • Search Payout Transfers
      POST
  • Bank Details
    • Retrieve Account Balance
      GET
    • Retrieve Bank Account Details
      GET
    • Add Funds to EnKash
      POST
    • Fetch Statement
      POST
  • Webhook
    • Create Webhook Configuration
      POST
    • Retrieve Webhook Data
      GET
  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

Body Params application/x-www-form-urlencoded

Request Code 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 '[email protected]' \
--data-urlencode 'password=Password@123' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'clientId=CEKFOWV7UQ'

Responses

🟢200Success
application/json
Body

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