Creates an authentication token for the specified entity - customer or app. The token can be used to authenticate future requests to the integrations platform. The entity id and secret are required to create the token.
https:/<sub_domain>/v2/integrations/token
<subdomain>
with the region of your account
You can use our official postman collection to try out the APIs.
The following are the POST parameters:
Parameter Name | Mandatory/Optional | Value |
---|---|---|
Id | Mandatory | ID of the entity - customer/app. |
expire_in | Optional |
The duration(seconds) after which the short URL becomes invalid. |
tracking | Optional |
Whether to track the short URL click. Can be: "true" or "false". "ShortenUrl" needs to be "true" for Tracking to work. |
curl -X GET https://:/v3/accounts//calls/ -H 'content-type: application/json'
{ "RequestId": "f4f76061-3c01-410e-be49-55a17049cf35", "Status": "Success", "Code": 200, "Error": "", "Data": "OTlmYTk4YTEtMmNlMC00NTdjLTkzNzEtMGQzYTAxZWI2ZWYw" }
The status codes are as follows -
Status Code |
Description |
200 |
Token created successfully. |
400 |
Bad request. Check the input parameters. |
401 |
Unauthorized. Check the entity id and secret. |
500 |
Internal server error. There was an issue creating the token. |