List usage thresholds
GET/api/v1/usage/thresholds
Lists the usage alert thresholds the caller can access, optionally filtered by project_id. Each threshold fires the usage_thresholds.crossed webhook when a project's cost or token usage over a calendar-month or rolling-24h window crosses the configured value.
Request
Responses
- 200
- 400
- 401
- 403
- 429
- 500
The usage thresholds
Invalid request — a query parameter or body field the operation does not declare, or a value that fails validation
Unauthorized
Forbidden
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Retry-After
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded