Authentication

Using Authentication API

  • The API takes in API Key & Secret as Headers.
  • The API Returns Access Token. Access Token is a requirement for making calls to the Sandbox APIs.
  • Access Token will be valid for only 24 hours. Use API Authorization for updating it.

Key-secret-based authentication.

  • An API key is a public key to identify users when calling any Sandbox API.
  • A Secret key is a private key to authenticate your access to the given API request.
  • All API calls need to be made over HTTPS connections.

API Key & Secret from Sandbox Dashboard

  • Upon signup, you can generate an API key and Secret key through the dashboard.
  • You can obtain your API key from the API dashboard under the "My Keys" tab
  • Click on the "eye icon" next to the API key to obtain the API secret

Different API Keys per application

  • You can create a new API key for each project with different subscriptions and use them on multiple projects at once.
  • You will be able to see separate subscriptions and analytics per API key.

👍

Signup for Free Trial

If you have not signed up for a free API trial, Sign up for API access now!

Important Link

API EndpointAPI Endpoint

Endpoint Description

HTTP Method

Resource

Description

POST

https://api.sandbox.co.in/authenticate

Endpoint takes in API Key and Secret and returns JWT Access Token

Response Breakdown

Param

Description

Example

access_token

The JWT Token that is required for calling all the Sandbox APIs.

eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJBUEkiLCJyZWZyZXNoX3Rva2VuIjoiZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKaGRXUWlPaUpCVUVraUxDSnpkV0lpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1Gd2FWOXJaWGtpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1semN5STZJbUZ3YVM1ellXNWtZbTk0TG1OdkxtbHVJaXdpWlhod0lqb3hOVGt3T1RZNU5qQXdMQ0pwYm5SbGJuUWlPaUpTUlVaU1JWTklYMVJQUzBWT0lpd2lhV0YwSWpveE5UVTVNelEzTWpBd2ZRLnFPX2pDczllM2hnVGExb24zZWtnZGptUmtpallOeTZ5TVNLcjlJdE9xc0Y2bWJXTHpNNGtOUDZvbUhCZDFsUjJOYlkzVlg3bFdSUXBxOU81WGM5U2dnIiwic3ViIjoiam9obkBkb2UuY29tIiwiYXBpX2tleSI6ImtleV9saXZlX0FkZSoqKioqKioqKioqKioqKioqKioqKioqKioqVXhzIiwiaXNzIjoiYXBpLnNhbmRib3guY28uaW4iLCJleHAiOjE1OTEwNTYwMDAsImludGVudCI6IkFDQ0VTU19UT0tFTiIsImlhdCI6MTU5MDk2OTYwMH0.3ecbsnzIqQhUNO2ZujxCkmFo5W_5e3DQVbJPi04PWrSvsU1Uk0TpRqa4hnzeOgBc7Xmvv7HoNYAcaopQ6cl1Tg


Did this page help you?