For the complete documentation index, see llms.txt. This page is also available as Markdown.

Access Token

All request must have an Access token. Access tokens are used to make API requests on behalf of your merchant account. It is used for Authorization.

Access tokens must be kept confidential in transit and in storage. The only parties that should ever see the access token are Kitegateway APIs and your servers. Your application should ensure the storage of the access token is not accessible to other applications

How to get an access token

You have to use your merchant api_key and api_secret in order to get an access token by making a request as below

Live

POST  https://kitegateway.com/v1/auth/token

Sandbox

POST  https://sandbox.kitegateway.com/v1/auth/token

Request Headers

Header

Value

Required

Content-Type

application/json

YES

Accept

application/json

YES

Secret-Key

YOUR_SECRET

YES

Request Body

Parameter

Type

Description

Required

api_key

string

Obtained from merchant profile account

YES

expires_in

integer

The time taken for the token to expire in seconds

Optional. Default 900 seconds

Response body

Parameters

Type

Description

token

string

The access token that can be used to make a request on any of the end points

expires

integer

The timestamp of when the token will expire

{ 
    "api_key": "2882jj2hh288282jj2", // Obtain from your merchant profile" 
    "expires_in": 300
}
{
  "code": 200,
  "status": "success",
  "message": "Token generated",
  "data": {
    "token": "JWT eyJ0eXAiOiBBV1QzI1NiJ9.eTAW0InJvbGUi2YifQ.f6FPyTxzchGD7ed55Rw7ruqe6P_Go",
    "expires": 1622197906
  }
}

Header: Authorization

Last updated