To call the API you need to authenticate to it. In order to authenticate you must first obtain and use an authentication token. The method used to by which you obtain the authentication token differs depending on the API version of the API you are usingyou wish to use. Below you will can find information specific to v4.4 and below, and v5.0 and above. Please refer to the version that is applicable to you.
Expand | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
v5.0 and aboveThis 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. |
...