Skip to main content
Getting started with Sandbox APIs is straightforward. This guide will walk you through 3 simple steps to authenticate and make API calls using your API credentials.

Send your first API request

1

Get your API credentials

Login to Sandbox Console and navigate to SettingsAPI Keys to get your API Key and API Secret. You have two separate sets for live and test environments, identified by the prefixes “live” and “test”
Download your API key and API key secret when prompted, it’s only shown once.
2

Authenticate to get an access token

Call the Authenticate API to generate an access token. You’ll need to pass your API Key and API Secret in the request headers.
Response
{
  "code": 200,
  "data": {
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGc..."
  },
  "timestamp": 1750687659809,
  "transaction_id": "3a31716a-6a4d-4670-83fe-849d8209e35a"
}
The access token has a validity of 24 hours. You can regenerate the token anytime using the Authenticate API.
3

Make API calls with your access token

Now you can use the access token to call any Sandbox API. Include the following headers in your requests:
  • x-api-key: Your API Key
  • authorization: Your access token
  • x-api-version (optional): API version (e.g., “1.0”)
The access token you generate is NOT a bearer token. Pass it in the authorization header without the Bearer keyword.
You’re done!

Environment Host URLs

EnvironmentHost URL
Testhttps://test-api.sandbox.code.in
Productionhttps://api.sandbox.code.in
The same workflow works for both Test and Production environments. Use the appropriate host URL based on your environment.