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 by which you obtain the authentication token differs depending on the API version you wish to use. Below you can find information specific to v4.4 and below, and v5.0 and above. Please refer to the version that is applicable to you.
v5.0 and above
v5.0 and above
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.
Note: If you are using an older version of Fuse’s API (v4.4 and below) please expand the v4.4 and below section and refer to the information there.
Getting a token
To obtain your authentication token, you must use the following API request:
When using this request, you must include the following mandatory parameters in the request body:
login_name: This is your username or email address used to log in to your Fuse instance, assigned to you when your account was created (e.g. joe.bloggs or joe.bloggs@email.com).
password: This is your password used to log in to your Fuse instance.
The path to the authentication token is .auth_tokens.user_authentication_token.authentication_token. In the example above the authentication token is RVt-k4zQJRyMBx3L.
For more information about the /session endpoint, please reference the API documentation section in the Admin Panel of your instance:
Using the token
For API v5 the authentication token must be presented in an Auth-Token request header along with the request. Below is an example of this:
In this case you will need to try getting the latest token using the POST /session endpoint as stated above.
v4.4 and below
v4.4 and below
This section includes information on how to obtain a valid authentication token when using the v4.4 and below of the Fuse API.
Note: If you are using v5.0 and above of Fuse’s API please expand the v5.0 and above section and refer to the information there.
Fuse field names are case-sensitive. If a field does not update or you are getting a bad response, check that the field name being sent within the request matches the field name on Fuse.
Authentication token
Authentication 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 Postman
Follow these steps:
Select your workspace.
Create a request
Set the HTTP method to POST.
Enter the Fuse instance URL: https://<instance_name>.fuseuniversal.com/api/v4.4/token