List API Tokens
Retrieve all API tokens associated with an account.Path Parameters
Account identifier (format:
acc_
followed by 27 alphanumeric characters)Headers
Bearer token for authentication
Response
Indicates if there are more records to paginate through
Get API Token
Retrieve details of a specific API token.Path Parameters
Account identifier
API token identifier
Headers
Bearer token for authentication
Response
Returns a single API token object with the same structure as described in the List API Tokens response.Create API Token
Create a new API token for programmatic access.Path Parameters
Account identifier
Headers
Bearer token for authentication
Request Body
Name of the API token
Description of the token’s purpose
Array of permission scopes to grant to this token
ISO 8601 timestamp when token should expire (optional, null for no expiration)
Response
Unique API token identifier
The actual API token value (only returned on creation)
Account identifier
Name of the API token
Description of the token
Array of granted permission scopes
Expiration timestamp (nullable)
Whether the token is active
ISO 8601 timestamp of creation
The token value is only returned once during creation. Store it securely as it cannot be retrieved again.
Update API Token
Update an existing API token’s metadata.You cannot update the token value itself or its scopes. To change scopes, create a new token and delete the old one.
Path Parameters
Account identifier
API token identifier
Headers
Bearer token for authentication
Request Body
Name of the API token
Description of the token’s purpose
Whether this token should be active
Response
Returns the updated API token object (without the token value).Delete API Token
Delete an API token, immediately revoking access.This action is irreversible. Any applications using this token will immediately lose access.
Path Parameters
Account identifier
API token identifier
Headers
Bearer token for authentication
Response
ID of the deleted API token
Flag indicating the token was successfully deleted
Available Scopes
API tokens can be granted specific scopes to limit their access:Bucket Scopes
buckets:read
- View bucket informationbuckets:write
- Create and modify bucketsbuckets:delete
- Delete buckets
Request Scopes
requests:read
- View request datarequests:write
- Modify request metadata (notes, etc.)requests:delete
- Delete individual requests
Metrics Scopes
metrics:read
- Access analytics and metrics data
Redaction Scopes
redactions:read
- View redaction rulesredactions:write
- Create and modify redaction rulesredactions:delete
- Delete redaction rules
Exclusion Scopes
exclusions:read
- View exclusion rulesexclusions:write
- Create and modify exclusion rulesexclusions:delete
- Delete exclusion rules
Workflow Scopes
workflows:read
- View workflow configurationsworkflows:write
- Create and modify workflowsworkflows:delete
- Delete workflows
Token Management Scopes
tokens:read
- View API token informationtokens:write
- Create and modify API tokenstokens:delete
- Delete API tokens
Using API Tokens
Once created, use your API token in theAuthorization
header:
Token Format
- Live tokens:
at_live_
followed by random characters - Test tokens:
at_test_
followed by random characters
Best Practices
- Principle of Least Privilege: Only grant the minimum scopes required
- Regular Rotation: Rotate tokens periodically for security
- Secure Storage: Store tokens securely, never in plain text
- Monitor Usage: Check
lastUsedAt
to identify unused tokens - Set Expiration: Use expiration dates for temporary access
- Environment Separation: Use different tokens for different environments