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.eyJhdWQiOiJBUEkiLCJyZWZyZXNoX3Rva2VuIjoiZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKaGRXUWlPaUpCVUVraUxDSnpkV0lpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1Gd2FWOXJaWGtpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1semN5STZJbUZ3YVM1eGRXbGphMjh1WTI5dElpd2laWGh3SWpveE5Ua3dPVFk1TmpBd0xDSnBiblJsYm5RaU9pSlNSVVpTUlZOSVgxUlBTMFZPSWl3aWFXRjBJam94TlRVNU16UTNNakF3ZlEueHNmYkhQTERFRlRvTy1OUWdaUUpLM25OUjFxdlhvWmhaOHRqS3gzSExydjZiVkJaMHpJZEZ5ai1MUTg1YnJZS0xXQnFnZHlzZ1NDSXlDUXNtV2VOYkEiLCJzdWIiOiJqb2huQGRvZS5jb20iLCJhcGlfa2V5Ijoia2V5X2xpdmVfQWRlKioqKioqKioqKioqKioqKioqKioqKioqKipVeHMiLCJpc3MiOiJhcGkucXVpY2tvLmNvbSIsImV4cCI6MTU5MTA1NjAwMCwiaW50ZW50IjoiQUNDRVNTX1RPS0VOIiwiaWF0IjoxNTkwOTY5NjAwfQ.nH23CR5RHGQ0U19I_vq3vyJ_85A1a2iEMQij5QHgJQdDuS9x7FmTidsr1CQabSFF5ujE40SFxHv1gJM20TauUw


Did this page help you?