Skip to main content
Every API request authenticates with a bearer token:

Creating a Token

1

Open your account settings

Navigate to API Tokens.
2

Create a token

Give it a display name describing where it will be used, and optionally an expiry.
3

Store it immediately

The token value is shown once and cannot be retrieved afterwards.
Tokens can also be managed through the API:
createApiToken is the only response that contains the token value. If it is lost, revoke the token and create a new one.

Token Properties

lastUsedAt is the quickest way to find tokens that are no longer in use and can safely be revoked.

Storing Tokens

Read tokens from the environment rather than embedding them in source:
Never commit tokens to version control. Use environment variables or a secret manager, and prefer short expiries for automated clients.

Revoking a Token

Revocation takes effect immediately:
To rotate without downtime, create the replacement first, deploy it, then revoke the old token once lastUsedAt stops advancing.

Session Authentication

Interactive clients authenticate with credentials instead, receiving a token in return:
identifier accepts either a username or an email address. Prefer API tokens for programmatic access — session tokens are scoped to interactive use and expire sooner.

Errors

A 403 on a workspace resource usually means the account is not a member of that workspace rather than that the token is wrong.

Next Steps

Getting Started

Set up a cloud workspace

API Reference

Token and auth endpoints