Skip to main content

List API Tokens

Retrieve all API tokens associated with an account.

Path Parameters

string
required
Account identifier (format: acc_ followed by 27 alphanumeric characters)

Headers

string
required
Bearer token for authentication

Response

boolean
Indicates if there are more records to paginate through
array

Get API Token

Retrieve details of a specific API token.

Path Parameters

string
required
Account identifier
string
required
API token identifier

Headers

string
required
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

string
required
Account identifier

Headers

string
required
Bearer token for authentication

Request Body

string
required
Name of the API token
string
Description of the token’s purpose
array
required
Array of permission scopes to grant to this token
string
ISO 8601 timestamp when token should expire (optional, null for no expiration)

Response

string
Unique API token identifier
string
The actual API token value (only returned on creation)
string
Account identifier
string
Name of the API token
string
Description of the token
array
Array of granted permission scopes
string
Expiration timestamp (nullable)
boolean
Whether the token is active
string
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

string
required
Account identifier
string
required
API token identifier

Headers

string
required
Bearer token for authentication

Request Body

string
required
Name of the API token
string
Description of the token’s purpose
boolean
required
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

string
required
Account identifier
string
required
API token identifier

Headers

string
required
Bearer token for authentication

Response

string
ID of the deleted API token
boolean
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 information
  • buckets:write - Create and modify buckets
  • buckets:delete - Delete buckets

Request Scopes

  • requests:read - View request data
  • requests: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 rules
  • redactions:write - Create and modify redaction rules
  • redactions:delete - Delete redaction rules

Exclusion Scopes

  • exclusions:read - View exclusion rules
  • exclusions:write - Create and modify exclusion rules
  • exclusions:delete - Delete exclusion rules

Workflow Scopes

  • workflows:read - View workflow configurations
  • workflows:write - Create and modify workflows
  • workflows:delete - Delete workflows

Token Management Scopes

  • tokens:read - View API token information
  • tokens:write - Create and modify API tokens
  • tokens:delete - Delete API tokens

Using API Tokens

Once created, use your API token in the Authorization header:

Token Format

  • Live tokens: at_live_ followed by random characters
  • Test tokens: at_test_ followed by random characters

Best Practices

  1. Principle of Least Privilege: Only grant the minimum scopes required
  2. Regular Rotation: Rotate tokens periodically for security
  3. Secure Storage: Store tokens securely, never in plain text
  4. Monitor Usage: Check lastUsedAt to identify unused tokens
  5. Set Expiration: Use expiration dates for temporary access
  6. Environment Separation: Use different tokens for different environments