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.
error_outline While we support multiple concurrent requests, schools still need to account for rate limits, especially when several users or systems use the API at once. To address this, schools can request dedicated API tokens for automation accounts. These tokens have their own separate rate limit of 1000 requests, independent of other users at the school. This means important automations can continue running reliably, as long as they stay within the token’s individual limit. More information can be found here.
Comments
0 comments
Please sign in to leave a comment.