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.Documentation Index
Fetch the complete documentation index at: https://slatehq.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
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.
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 theAuthorization 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-Idheader, the header value must match the token’s workspace. A mismatch returns a403error.
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.
401 error on the next request.
Authentication errors
| Status | Error | Cause |
|---|---|---|
401 | unauthorized | No Authorization header, missing Bearer prefix, or token does not start with slat_. |
401 | unauthorized | Token not found, has been revoked, or has expired. |
401 | unauthorized | Token validation returned an invalid workspace. |
401 | unauthorized | X-Workspace-Id header does not match the token’s workspace. |
401 | unauthorized | X-Organization-Id header does not match the token’s organization. |
403 | forbidden | The requested endpoint is not available for API token access. |
Security best practices
What’s next
- API Overview — Base URL, request format, and available APIs.
- Errors — Full list of error codes and response formats.
- Create Workflow Run — Trigger a workflow using your token.