To access the Ans API V2, you'll first need to create a token. This can be done by any user with an employee role in Ans.
To create a token, follow the steps below.
- Click the following link https://ans.app/users/tokens.
- Click on Generate new token.
- A new dialogue will open containing the token.
- This token is used to authorize requests through the Ans API V2.
The provided token is a Bearer token and needs to be set in the Request Header with key Authorization and value "Bearer [token]" for every request. The provided token can only be used with the Ans V2 API. Additional information can be found in the documentation.
error_outline The generated token is only shown once. If you lose it, you will need to generate a new one.