Expand | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
This section includes information on how to obtain a valid authentication token when using the v5.0 and above of the Fuse API. To call Fuse API endpoints you need to be authenticated. This is done by sending your authentication token in a header called Auth-Token with every API request. From v5.0 onwards, we’ve introduced rotating authentication tokens, which means that each authentication token expires and renews at regular intervals.
Getting a tokenTo obtain your authentication token, you must use the following API request: POST /sessionRequestURL: Method: POST Request parametersWhen using this request, you must include the following mandatory parameters in the request body:
Example response
The path to the authentication token is
Using the tokenFor API v5 the authentication token must be presented in an Auth-Token request header along with the request. Below is an example of this:
If the token is no longer valid then you will receive a 401 response such as in the example below:
In this case you will need to try getting the latest token using the POST /session endpoint as stated above. |
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
This section includes information on how to obtain a valid authentication token when using the v4.4 and below of the Fuse API.
Auth TokenAuth Tokens can be obtained in the Admin panel of a Fuse instance or from an API client, such as Postman or cURL. Generating an auth token in PostmanFollow these steps:
Use the following screenshot as a reference in the previous steps: Generating an auth token in cURLTo generate an
|