To use the management API, you must first obtain an authentication token. This token, along with other information, must be supplied on all API calls.
Steps
- On the Swagger page, click sessions.
- Click POST to display the API call used to return an authentication token.
- Type the email address (that is, user name) and password for your administrator account.
- Click Try it out.
If the user name and password are valid, you should receive the HTTP status code 201, indicating success.
- Copy the authentication token (without the quotes) returned in the response body.
- Use this token as the X-API-Token parameter when making future API calls.