# The API takes tokens you can create and revoke one at a time


> Give each script or integration its own API token under Settings > API tokens, and revoke it on its own when you're done, instead of handing out the web interface's username and password.

Until now, anything that called the Anthias API signed in with the same username and password as the web interface. From Anthias 2026.11.2, you can give each script its own token, see when it was last used, and revoke it without changing the password everything else uses.

Tokens live under Settings > API tokens. Give one a name and click "Create token". The token is shown once, so copy it right away. "Revoke" cuts off anything using it at once.

Send the token in the `Authorization` header:

```bash
curl -H "Authorization: Bearer anthias_..." https://<address>/api/v2/info
```

Until you upload a certificate, the player uses its own self-signed one, so add `--cacert` with that certificate, or `-k`.

- Tokens only work over HTTPS. One sent over `http://` is refused with `401`, and the message says to revoke it, since it crossed the network in clear text.
- Tokens only work while authentication is on. With it off, you can't create one, and a token sent with a request is ignored, because the API is open to everyone anyway.
- A token can call everything in the API the signed-in user can, except creating or restoring a backup, which answers `403`. You do those in the web interface.
- Tokens are created and revoked in the web interface only. There's no API endpoint for them.
- Changing your password doesn't revoke tokens. Restoring a backup revokes all of them.

HTTP Basic authentication with the username and password still works. The Anthias docs now call it deprecated in favor of tokens.