Skip to main content
Tokens authenticate non-interactive clients: agents reporting to the cloud, CI/CD pipelines querying the API, and scripts automating workflows. Each token has a type, a set of scopes, and a lifecycle.

Token Types

Personal Tokens

Tied to a specific user. When the user is removed from the org, their personal tokens are automatically revoked. Use these for:
  • Local scripts and CLI tools
  • Personal API exploration
  • Development and testing

Service Tokens

Org-scoped, not tied to any individual. Survive member departures. Use these for:
  • CI/CD pipeline integration
  • Automated alerting and reporting
  • Third-party tool integration

Deploy Tokens

Issued during device enrollment. Each agent instance gets its own deploy token. Use these for:
  • Agent-to-cloud event streaming
  • Heartbeat and status reporting
  • Policy and configuration pulls

Scopes

Every token carries one or more scopes that limit what it can do:
Deploy tokens should only have read and ingest scopes. Granting manage or admin to a deploy token is a security risk — a compromised agent could modify org-wide policies.

Scope Combinations

Common patterns:

Lifecycle

1

Create

An admin or owner creates a token via the dashboard or API. The raw token is returned exactly once.
2

Store securely

The caller stores the raw token in a secrets manager, environment variable, or secure vault. Quint stores only the SHA-256 hash.
3

Use

Include the token in the Authorization header as a Bearer token. The API hashes the incoming token and looks up the hash.
4

Rotate

Create a new token with the same scopes, update your clients, then revoke the old token. There’s no in-place rotation — always create-then-revoke.
5

Revoke

Delete the token via dashboard or API. Takes effect immediately. Any in-flight request using the token will fail on the next call.

Security Model

Storage

Quint never stores raw tokens. If you lose the token, you must create a new one.

Authentication Flow

Token Metadata

Each token record stores:
Use the last_used_at field to identify stale tokens. Tokens that haven’t been used in 90+ days are candidates for revocation.

API Usage

Create a token:
The token field in the response is the raw token. Save it immediately. It will never appear again in any API response.