To call the API you need to authenticate to it. In order to authenticate you must obtain and use an authentication token. The method used to obtain the authentication token differs depending on the version of the API you are using. Below you will find information specific to v4.4 and below, and v5.0 and above.
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. |
...