Skip to main content

VKYC Auth Token API

This API generates the authentication token required by the Customer Session Creation API and the Status Check API. Send the returned token as a bearer token in the Authorization header of those requests.

POSThttps://sandbox/api/v1/vkyc/auth/token/

Content-Type: application/json

Request headers​

HeaderTypeRequiredDescription
merchantcodestringYesUnique merchant identifier issued during onboarding.
merchantnamestringYesName of the merchant.
keystringYesJWT-based authentication key.

Example​

POST/api/v1/vkyc/auth/token/
curl --location --request POST 'https://sandbox/api/v1/vkyc/auth/token/' --header 'merchantcode: SCOREME' --header 'merchantname: SCOREME' --header 'key: <JWT_KEY>'
200
{
"status": true,
"status_code": 200,
"message": "Success",
"data": {
  "message": "Token generated successfully",
  "data": "<ACCESS_TOKEN>"
}
}

Response​

FieldTypeDescription
statusbooleantrue when the token was generated successfully.
status_codeintegerHTTP status code echoed in the body.
messagestringHuman-readable outcome of the request.
data.messagestringDescription of the token operation.
data.datastringThe access token to send as Authorization: Bearer <access_token>.

Using the token​

POST /api/v1/vkyc/create/customer/ HTTP/1.1
Host: sandbox
Content-Type: application/json
Authorization: Bearer <access_token>