Endpoint Tokens
Last updated
Last updated
Endpoint tokens are used to call your custom endpoints from the data connector or from external applications. To create an endpoint token, navigate to Manage and then select Tokens. Finally, click on + icon on the top right corner and select new Endpoint Token.
You need to give a purpose to your token, and the path or partial path of the endpoint you want to call. Leave the path blank to create a token that can call all custom endpoints.
Click on Create to generate the token, and don't forget to copy the value to a safe place. You will not be able to see this token again once you close this dialog.
When calling your endpoint from outside using a POST request, you need to pass this token in the Authorization Header as a Bearer token.
You can the token access to a family of endpoints starting with the same prefix. For example, assuming you have a set of endpoints:
analytics/get-data
analytics/get-timeline
analytics/get-summary-for-year
You can create a token with the endpoint path "analytics/" to match any of the above endpoints.