Send your first API request
1
Get your API credentials
Login to Sandbox Console and navigate to Settings → API 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”
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
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 Keyauthorization: Your access tokenx-api-version(optional): API version (e.g., “1.0”)
Environment Host URLs
| Environment | Host URL |
|---|---|
| Test | https://test-api.sandbox.code.in |
| Production | https://api.sandbox.code.in |
The same workflow works for both Test and Production environments. Use the appropriate host URL based on your environment.