/v1/guardrails/{guardrail_id}/decisionsRead guardrail decisions
Counts for one guardrail over the window. In observe mode, matched is what enforce would have blocked. A check stores counts only, never request content.
Authentication: Bearer API key in the Authorization header
Path parameters
guardrail_idstringrequiredThe guardrail id.
Query parameters
windowenumLookback window ending now.
Responses
200The counts.
Response
windowenumrequiredcheckedintegerrequiredRequests the guardrail checked.
matchedintegerrequiredRequests where a rule matched.
blockedintegerrequiredMatched requests that were refused. Always 0 in
observemode.errorsintegerrequiredChecks that did not finish in time, and requests with content the check could not read.
by_tagarray<object>requiredMatches per tag.
by_tag
tagstringrequiredmatchedintegerrequired
401Missing, unknown or revoked API key.
403The key is not a provisioning key, or the resource is read-only (
tag_read_only,guardrail_read_only).Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one.
404The resource does not exist or belongs to another organization. An organization without access gets this answer on every route.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one.
Request
curl 'https://api.experientiallabs.ai/v1/guardrails/00000000-0000-4000-8000-000000000011/decisions?window=7d' \
-H "Authorization: Bearer <YOUR_API_KEY>"Response
{
"window": "7d",
"checked": 18234,
"matched": 41,
"blocked": 0,
"errors": 3,
"by_tag": [
{
"tag": "internalConfidential",
"matched": 41
}
]
}https://api.experientiallabs.ai/v1/guardrails/00000000-0000-4000-8000-000000000011/decisions?window=7d