The Ans API allows you to automate certain processes within Ans, for example provisioning users, assignments and question banks. It is also possible to use our webhook to listen to certain changes in Ans and act based on these events.
In the following articles we’ll explain how to use the Ans API to create, update and destroy users, question banks, assignments and archive results using a webhook. You can view the entire API documentation via this link: https://ans.app/api/docs
Before you begin, you should have a basic understanding of a REST API and HTTP actions, such as: GET, CREATE, UPDATE, DELETE.
If you don’t yet have an API token, follow these instructions: here
The generated token is a Bearer token and must be sent with every request in the request header for authorisation.
The school_id attribute which is required for viewing and creating users can be found on the API token page in the user settings.