Skip to Content

API tokens

Create a token for the StackBlaze API and CLI, choose when it expires, and revoke it.

An API token lets scripts and CI call the StackBlaze API or CLI as you. A token belongs to one organization, the one you're in when you create it, and acts on your behalf there. Treat it like a password.

Open API tokens

Click the person icon at the top right and choose API tokens. This opens Personal settings on the API tokens tab.

The account menu: Personal settings, Access control, Theme (System, Dark, Light), Documentation, Join community, API tokens and Logout
The account menu: Personal settings, Access control, Theme (System, Dark, Light), Documentation, Join community, API tokens and Logout

Your tokens lists each token's Name, when it was Created and when it Expires (Never for a token without an expiry). Sign-ins from the CLI add tokens here too, named like CLI · 2026-11-24.

Create a token

Name it

Click Create token. Create API token opens with a warning: the token is shown once, so copy it and keep it somewhere safe. You can't view it again.

Create API token: the shown-once warning, Name, and the Expires choices with No expiry selected
Create API token: the shown-once warning, Name, and the Expires choices with No expiry selected

Enter a Name, for example ci-deploys.

Choose when it expires

Under Expires (optional), pick No expiry (the default), 7 days, 30 days, 90 days, 1 year or Custom. Custom adds a date field. It can't be earlier than today.

Expires set to Custom, with a date field
Expires set to Custom, with a date field
Create API token filled in: name docs-demo-token, expires in 30 days
Create API token filled in: name docs-demo-token, expires in 30 days

There are no scopes to pick. The token can do what you can do in this organization.

Copy it

Click Create token. Token created shows the token once. Click the copy button, store the token safely and click Done.

Token created: Copy it now. You won't see it again once you close this. The value is hidden here.
Token created: Copy it now. You won't see it again once you close this. The value is hidden here.

Back in the list, the eye button shows or hides a token. Right after you create a token, this browser can still show its full value. Otherwise only its prefix is shown ("Only the prefix is shown. The full value was shown once, when it was created.").

Your tokens filtered to docs-demo-token, created today, expiring in 30 days; the value is hidden here
Your tokens filtered to docs-demo-token, created today, expiring in 30 days; the value is hidden here

To use the token with the CLI, see the CLI.

Revoke a token

Open the token's ⋯ menu and choose Revoke token. The browser asks "Revoke token "docs-demo-token"? Any service using it will lose access." Click OK and the token is gone from the list.

A token's menu: Revoke token
A token's menu: Revoke token

On this page