About Authorization
The Get Authorization Token API generates an authentication token that must be included in the headers of subsequent API requests. This token verifies that the request is from an authorized source, ensuring secure communication with our server.
Method: Post
Ensure you include the following headers in your request:
API-Key: Your unique API key provided by Enkash
On a successful request, the server responds with a JSON object containing the authentication token. Example
Field | Type | Description | |
---|---|---|---|
token | string | The generated authentication token | |
expiry | integer (int64) | The expiration time of the token, represented in milliseconds | |
resultCode | integer (int32) | The result code indicating the status of the token generation request | |
resultMessage | string | A message providing additional information about the result of the token generation request |