Slate uses Bearer tokens to authenticate API requests. Each token is scoped to a single workspace and inherits the permissions of the workspace admin who created it.
Create an API token
Only workspace admins can create API tokens.
- Open the Slate dashboard and go to Settings > API Tokens.
- Enter a name for the token.
- Choose an expiration period: 7 days, 30 days, 90 days, or No expiration.
- Click Create Token.
- Copy the token immediately.
The full token is shown only once. Store it in a secure location before closing the dialog. You cannot retrieve the token after this step.
The token starts with the slat_ prefix (for example, slat_K3x9m2...). The token list shows a preview for identification, but the full value is never displayed again.
Authenticate requests
Include the token in the Authorization header of every API request:
Token scope
Each token is tied to a specific workspace. The API enforces this scope:
- Requests succeed only for resources within the token’s workspace.
- If a request includes an
X-Workspace-Id header, the header value must match the token’s workspace. A mismatch returns a 403 error.
Manage tokens
View active tokens
Go to Settings > API Tokens to see all active tokens for your workspace. Each entry shows:
- Token name
- Token preview (first 12 characters + last 4 characters)
- Created date and creator
- Expiration date
- Last used date
Revoke a token
- Go to Settings > API Tokens.
- Click the revoke button next to the token.
- Confirm the action.
Revocation takes effect immediately. Any system using the revoked token receives a 401 error on the next request.
Authentication errors
Security best practices
- Use short-lived tokens (7 or 30 days) for automated pipelines and rotate them regularly.
- Give each integration its own token with a descriptive name. This makes it easy to revoke access for a single system without affecting others.
- Never hard-code tokens in source code. Use environment variables or a secrets manager.
- Revoke tokens you no longer need. Check the “Last used” date to identify unused tokens.
What’s next