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 dialog will open containing the token.
- This token is used to authorise 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.
Keep in mind that API token is uniquely associated with the user account that generated it and cannot be transferred to a different account.
error_outline The generated token is only shown once. If you lose it, you will need to generate a new one.
Comments
0 comments
Please sign in to leave a comment.