Authentication
Everything you need to know about the authentication mechanism used in the Volt APIs
All Volt apis have to be authenticated using an OAuth2 bearer token. The token can be generated by using the following keys which are shared while creating your API account:
- Merchant-ID
- User-ID
- API-Key
Authentication APIs Domains
Sandbox URL | Production URL |
---|---|
https://trav-auth-sandbox.travclan.com | https://trav-auth-api-v1.travclan.com |
Request Headers
Header Name | Value Format | Description |
---|---|---|
Authorization | Bearer token-value | Authorization token obtained from the authentication APIs. |
Content-Type | application/json | Specifies that the request body should be in JSON format. |
source | source | Indicates the source of the request (Possible values: website, android, ios, mweb). |
Authroization-Type | external-service | This is used to identify the authorization type |
Example cURL
curl --location --request POST '{request-url}' \
--header 'Authorization: Bearer {your-token}' \
--header 'Authorization-Type: external-service' \
--header 'source: website' \
--header 'Content-Type: application/json' \
--data-raw '{
{your-request-body}
}'
Updated 19 days ago