Documentation Index
Fetch the complete documentation index at: https://docs.toktra.dev/llms.txt
Use this file to discover all available pages before exploring further.
List alerts
Returns a cursor-paginated list of alerts for your organization.Opaque pagination cursor. Pass
next_cursor from a previous response. Omit for the first page.Maximum items per page (1–100).
Filter by severity:
low, medium, high, or critical.Filter by status:
open, acknowledged, or resolved.Request
Response
Alert object
Unique alert identifier (UUID).
Organization that owns this alert.
Alert type:
policy_violation— a policy was triggeredbudget_exceeded— a budget limit was reachedanomaly_detected— unusual usage pattern detectedsecurity_event— security-related event (e.g., pre-departure anomaly)
Severity level:
low, medium, high, or critical.Current status:
open, acknowledged, or resolved.Short, human-readable alert title.
Detailed description of the alert.
UUID of the user who triggered the alert.
null for system-level alerts.UUID of the policy that was violated.
null for non-policy alerts.Additional context (model, provider, token counts, etc.). Schema varies by alert type.
ISO 8601 timestamp when the alert was created.
ISO 8601 timestamp when the alert was resolved.
null if still open.Alert types reference
| Type | Triggered by | Typical severity |
|---|---|---|
policy_violation | A policy action: alert or action: block fires | medium – critical |
budget_exceeded | Spend reaches the budget limit | high |
anomaly_detected | Pre-departure anomaly or unusual usage spike | high – critical |
security_event | Employee lockout triggered, device cert revoked | critical |