On this page you can create and delete API tokens.
RESTful API allows users to write programs or scripts to configure one or more Sophos UTM on AWS units automatically. Before a program or script can use the RESTful API, Sophos UTM on AWS has to authenticate against it. There are two ways to authenticate against the RESTful API: Using the name of a Sophos UTM on AWS user with a password or an API token. API tokens are randomly generated strings that are associated with a Sophos UTM on AWS user, with the same access rights as the user. Authentication always uses HTTP basic authentication. If you use an API token instead of a Sophos UTM on AWS user, the HTTP basic authentication username is "token" and the API token is the password.
To create an API token, proceed as follows:
Enable RESTful API.
Click the toggle switch.
Note – When the Sophos UTM on AWS instance is running on Amazon Web Service (AWS), RESTful API is enabled by default.
Click the New API Token button.
The Add API Token dialog box opens.
Make the following settings:
API Token: Enter the API token or use the automatic generated API token.
Note – API token is an alternative authentication method like a password but without a username. It is recommended to use the automatic generated API token, generated by Sophos UTM on AWS, to ensure that the API token is unique and sufficiently complex.
User: Select a user for the API token.
The API token is added to the API Token list.