Violations
Query detected billing and usage violations.
List violations
GET
/api/v1/violationsQuery parameters
| Parameter | Type | Description |
|---|---|---|
severity |
string | CRITICAL, HIGH, MEDIUM, LOW |
type |
string | Violation type (see below) |
from |
ISO 8601 | Start of time range |
to |
ISO 8601 | End of time range |
limit |
integer | Max results (default 50) |
Violation types
| Type | Description |
|---|---|
pricing_mismatch |
Provider billed at a different rate than the published rate card |
token_mismatch |
Billed tokens differ from observed tokens |
wrong_model |
Response model differs from requested model |
context_inflation |
Input tokens significantly exceed expected context size |
prompt_bloat |
Prompt contains repeated or padded content |
retry_storm |
Abnormal number of retries in a short window |
agent_loop |
Repeated identical tool calls within a session |
duplicate_call |
Exact duplicate request submitted within the dedup window |
Response
{
"violations": [
{
"id": "vio_01abc…",
"type": "pricing_mismatch",
"severity": "CRITICAL",
"provider": "anthropic",
"model": "claude-opus-4-7",
"billed_usd": 0.0200,
"expected_usd": 0.0150,
"delta_usd": 0.0050,
"session_id": "my-session",
"timestamp": "2026-05-04T08:00:00Z"
}
]
}