Manage API tokens in the console

Create a token with the access its integration needs, then revoke it when that integration should stop making requests.

Organization API tokens and token policy.
Set the token policy before creating an organization token. Fictional demo workspace.

Create a token#

  1. Open Settings → API tokens → Tokens, or Personal tokens from your account menu.
  2. Select Create token.
  3. Give the token a recognizable name.
  4. Choose its permissions and repository restrictions.
  5. Choose an expiry and create the token.
  6. Copy the token when it is shown and store it securely.

Check the selected scope before creation. A token does not provide access beyond the authority under which it was created.

Organization tokens require an organization owner with operational access. If an organization token starts reviews, select the repositories it may review. Only personal tokens offer permission to start cloud agent sessions.

Connect Session Recorder through its browser approval. Manually created tokens cannot grant recorder permissions.

Personal tokens allow up to 90 days; organization tokens allow up to 365 days. The organization's policy can impose a shorter lifetime or refuse permissions. The saved secret appears once. Select I saved the token after storing it.

Revoke a token#

Find the token and use its revoke action. Read the confirmation and confirm the token you intend to revoke.

Revocation stops new requests from using that token. Update the consuming integration if it needs a replacement.

Personal tokens also lists CLI and MCP sign-ins. An owner can inspect those alongside organization tokens in the organization's token inventory.

Set the organization policy#

Organization owners can open Settings → API tokens → Policy to set the maximum lifetime, allowed permissions, and client networks.

Allowed permissions also apply to browser-approved Session Recorder connections.

Review the form's constraints, then select Save policy. Network restrictions require a verified client address from the installation's edge.

A maximum lifetime below 14 days refuses new CLI sign-in approvals, which require a 14-day key.

When Run setup from a coding agent is not allowed, coding agents cannot run setup for the organization. See Set up Proofline from a coding agent.

Use a token programmatically#

See the developer documentation for authentication, API calls, SDKs, and command-line examples.

Keep tokens out of screenshots, support messages, and repository files. Share the token's name and error details when asking for help.

Search help

Tab to a result. Enter to open. Escape to close.