# API tokens

> Let the CLI, your scripts and CI act for you, with tokens you control

Source: https://curvenote.com/integrations/api-tokens

- **Built by**: Curvenote
- **Availability**: Built in
- **Works with**: Curvenote SCMS, Curvenote CLI
- **Categories**: Security, Automations
- **Documentation**: https://curvenote.com/docs/scms/account/api-tokens

## What Curvenote can do with an API tokens integration

- **One token per place**: Name each after where it’s used, so revoking one affects only that place.
- **Expiry**: Every token expires: 90 days by default, or the date you choose.
- **Shown once**: A token is shown only when it’s created, never again.
- **Revoke instantly**: Anything using a revoked token stops straight away.

## How it works with Curvenote

Create a token for each place you use one, named after it, with an expiry (90 days unless you choose otherwise). It’s shown once, when you create it, so it lives only in your password manager or your CI’s secrets.

See when each token was created, last used and when it expires, and revoke one the moment you need to: anything using it stops straight away, and only that place is affected. Curvenote’s GitHub Actions run on a token kept in your repository’s secrets.

## Setting it up

1. Open Settings, then API tokens, from your account menu.
2. Create a token, named after where it will be used, and choose when it expires.
3. Copy it into your password manager or your CI’s secrets.

## Questions

### What can a token do?

Anything your account can, so give it an expiry, keep it secret, and don’t paste it into an AI agent or chat.

## About API tokens

An API token lets a tool such as the Curvenote CLI, a script or a CI job act on your behalf, without your password.
