Sync tokens are the credentials your local BurnGuard proxy uses to authenticate againstDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Verifieddanny/BurnGuard/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/usage. Each token is a bg_-prefixed random string; the raw value is only ever returned once at creation time. After that, only a SHA-256 hash is stored — BurnGuard Cloud can validate future requests but cannot reconstruct or display the original token. You can create one token per environment (production, staging, local) and list all tokens to review activity via last_used_at.
POST /v1/tokens
Creates a new sync token for the authenticated user and returns the rawbg_... value.
Auth: Requires session — Authorization: Bearer session_<id>.
Request body:
A human-readable label for this token. Use something that identifies the environment or deployment, e.g.
"production-proxy" or "local-dev". The name is stored in plain text and shown in GET /v1/tokens responses; it is not a secret.201 Created
The raw sync token value prefixed with
bg_. This is the value to set as sync_token in burnguard.yaml. Shown only once.A reminder that the token will not be shown again.
GET /v1/tokens
Lists all sync tokens belonging to the authenticated user. Token values are not included — only metadata. Uselast_used_at to confirm that a proxy is actively syncing.
Auth: Requires session — Authorization: Bearer session_<id>.
Request: No parameters or body.
Response: Array of sync token metadata objects.
Internal numeric ID of the token record.
ID of the user who owns this token.
The human-readable label supplied at creation time.
ISO 8601 timestamp of the last successful
POST /v1/usage call authenticated by this token. null if the token has never been used.ISO 8601 timestamp of when the token was created.
Token values are never returned in list responses. If you lose a token, create a new one and update your proxy configuration — the old token can be revoked once the
DELETE /v1/tokens/{id} route is available. The store method exists but this route is not yet mounted on the server.