ChecksBeta
Tag your traffic automatically. An AI check flags or labels each model call or session by meaning; a Rule check matches text, tools, status, latency, cost or tokens for free. Read the results in Observability or with your key.
Beta: this feature is supported, but may change.
What a check is
A check scores every new model call or session that matches it, and its results show in Observability next to your requests. Open Observability > Checks to list, add, edit and delete checks. Org admins and the organization's own xpl_ key change checks; every member reads them.
| Judge | What it does | Cost |
|---|---|---|
| AI | Judges meaning from your instruction: a yes or no flag, one label from your list, or every label that fits | Counted against your plan's AI checks. See What checks cost |
| Rule | Exact match on text, tools, status or numbers | Free on every plan |
| Scope | Scored |
|---|---|
| Each model call | Every call, as it arrives |
| Each session | The whole session, once it has been quiet for 10 minutes. It is scored again if it continues |
An organization can have 32 active checks. A new check scores every session. Lower filters.sample_rate to score a sample by session.
https://platform.experientiallabs.ai/observability/requests?group=checksAI checks
Write the instruction as a question about your traffic. Name whose words to judge: "What does the user ask for in their own message?" works better than "What does the user want?", because the judge otherwise reads the assistant's reply as the user's intent.
| Kind | Answer | Flags when | API kind |
|---|---|---|---|
| Flag | Yes or no | The judge is at least as sure as your flag line (50% by default) | boolean |
| Tag | The one label that fits best, from 2 to 12 labels, plus an optional Other for "none of these" | The judge chose a label with at least the flag line's confidence | choice |
| Multi-tag | Every label that fits, from 2 to 12 labels, each judged on its own | At least one label reaches the flag line | multi_choice |
An AI check scores only stored content. A request with nothing stored is never sent to the judge. AI scores carry no written reason.
AI checks need a paid plan. On Free, the AI option is locked and the API answers 403 plan_required; Rule checks work on every plan.
{
"name": "Intent",
"kind": "choice",
"scope": "llm_call",
"question": "What does the user ask for in their own message? Judge the user's words, not the agent's reply.",
"labels": ["Refund", "Bug report", "How-to question", "Other"]
}Rule checks
A Rule check tests each model call and flags it when the rule matches. Rules are free, call no model, and always score each model call (never a session). They score new traffic only: there is no backfill.
| Rule | API rule.kind | Flags when |
|---|---|---|
| Text contains, does not contain | contains, not_contains | The input (messages and tool results) or the output (the response and tool calls) has, or lacks, the text. Case is ignored |
| Text matches regex | regex | The pattern matches. RE2 syntax: no lookarounds or backreferences |
| Tool was called, was not called | tool_called, tool_not_called | A tool with exactly this name was, or was not, called |
| Call failed | status_failed | The call ended in an error |
| Latency above | latency_above_ms | Total time is above the limit, in milliseconds |
| Cost above | cost_above_usd | All-in cost is above the limit, in US dollars |
| Output tokens above | output_tokens_above | Output tokens are above the limit |
A text or tool rule needs stored content. When the facts a rule reads are missing, the call gets no score rather than a false "no".
{
"name": "Mentions a refund",
"kind": "boolean",
"scope": "llm_call",
"question": "Output contains refund",
"judge_model": "deterministic-rules",
"rule": {"kind": "contains", "field": "output", "value": "refund"}
}Read the results
The Checks view lists every check with its judge, scope and flag line, and for the current time range and filters:
| Column | Meaning |
|---|---|
| Scored | Requests the check scored. A request counts once per check, by its newest score |
| Flagged, Flag rate | Requests it flagged, and their share of Scored |
| Labels | For a Tag or Multi-tag check, each label with its count. A label opens its requests |
| Last 14 days | A small line of the rate per day in your time zone over the last 14 days, whatever the time range. Hover a day for its figures. A day with no score is a gap |
A row opens the requests it flagged (sessions for a session check). In Requests, filter with Check flagged, Check score or a check's label, and open a request: its drawer lists what each check said about it.
| Filter | Query parameter |
|---|---|
| Check flagged | tag_fired=<check id> |
| Check score, in percent | tag_score=<check id>:<min>:<max>, from 0 to 1 |
| A check's label | tag_label=<check id>:<label> |
/api/orgs/{org_id}/usage/checkscurl "https://api.experientiallabs.ai/api/orgs/ORG_ID/usage/requests?window=7d&tag_label=CHECK_ID:Refund&dir=desc" \
-H "Authorization: Bearer <YOUR_API_KEY>"What checks cost
| Plan | AI-checked requests or sessions included each month | Then |
|---|---|---|
| Free | None (no AI checks) | |
| Pro | 6,500 | $0.55 per 1,000 |
| Max | 65,000 | $0.55 per 1,000 |
| Ultra | 650,000 | $0.55 per 1,000 |
- Each judgment counts once, however many AI checks score it: a request, or a session judged by a whole-session check.
- Rule checks are always free.
- Past the included amount, AI checks draw credits from your balance. Out of credits, AI checks pause and Rule checks keep running; they resume when you add credits or the month turns.
- The judge's calls are ours: they never appear as your requests, never count against your rate limits, and are never stored.
PUT .../trace-tags/budgetsets an optional monthly cap on what checks may draw.- Before you save an AI check, the editor projects its AI checks a month at your current traffic against the included checks left, and offers a sample rate that fits (
POST .../trace-tags/projection). - Each AI check has an optional
monthly_budget, by default the included checks left when you create it. Past it, the check samples atbudget_sample_rate(default 1%) instead of drawing credits, and the Checks view says so. It returns to its own rate each UTC month.
These terms can change. The "i" beside the Checks count and budget.ai_checks on GET .../trace-tags show your plan's current terms. See Plans and pricing.
/api/orgs/{org_id}/trace-tags/budgetcurl -X PUT https://api.experientiallabs.ai/api/orgs/ORG_ID/trace-tags/budget \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"monthly_cap_nano_usd": 20000000000}'What gets checked
Checks read only content your organization stored, judged with your settings at the time of scoring:
- Nothing is checked while prompt storage is off, while zero data retention is required, or while a deletion is running.
- A request routed under zero data retention is never checked, even with storage on.
- Content stored before you last turned storage off or deleted it is never checked.
Scores expire with the content they were read from. Webhooks carry ids and numbers, never text. See Data controls.
The Checks view says when checks are paused and why: out of credits, the month's limit reached, card verification needed, or storage off.
Manage checks with the API
All routes are under /api/orgs/{org_id}/trace-tags (the API calls a check a trace tag). GET lists every check with its last 7 days and the budget; POST creates; PATCH changes only the fields you send; DELETE removes a check and its results.
| Field | Meaning |
|---|---|
name | 1 to 80 characters, unique in the organization |
kind | boolean (Flag or Rule), choice (Tag) or multi_choice (Multi-tag) |
question | The instruction, 1 to 1,000 characters |
labels | Tag and Multi-tag: 2 to 12 labels, each 1 to 64 characters. A Tag check may add Other; a Multi-tag check may not |
threshold | The flag line, above 0 up to 1. Default 0.5 |
scope | llm_call (each model call) or session (each session). A Rule check is llm_call |
judge_model | Leave it out for an AI check. deterministic-rules for a Rule check |
rule | Rule checks only: {kind, field, value, amount} as in Rule checks |
filters | Only some API keys, models or request tags (key:value), and sample_rate (default 1) |
monthly_budget | AI checks: judgments a UTC month at the check's own rate. Left out: the included checks left. null: no cap |
budget_sample_rate | The rate past the budget. Default 0.01 |
status | active or paused. A paused check keeps its results |
alert, webhook | Email when the flag rate passes a limit, or a signed POST on each flag. Off by default |
/api/orgs/{org_id}/trace-tagsGET/api/orgs/{org_id}/trace-tagsPATCH/api/orgs/{org_id}/trace-tags/{tag_id}curl -X POST https://api.experientiallabs.ai/api/orgs/ORG_ID/trace-tags \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"name": "Gave up early", "kind": "boolean", "scope": "llm_call",
"question": "Did the assistant stop before finishing the task?"}'Read results with the API
| Read | Route |
|---|---|
| Scored and flagged requests per check, with the trend and label counts, under any request list filter (at most 31 days) | GET .../usage/checks |
| One check's scored and flagged counts per hour or day | GET .../trace-tags/{tag_id}/rates |
| One check's scores, newest first | GET .../trace-tags/{tag_id}/scores |
| The check results on each request | tag_scores and tag_labels on every row of GET .../usage/requests |
/usage/checks returns, per check, scored, flagged, grain (hour for a range of 24 hours or less, else day), buckets (every bucket of the range, empty ones included, each with scored, flagged and labelled) and labels (each label with its request count). Checks that scored nothing in the range are left out. A member counts only their own requests.
/api/orgs/{org_id}/trace-tags/{tag_id}/ratesGET/api/orgs/{org_id}/trace-tags/{tag_id}/scores{"checks": [{
"tag_id": "3f1c2a9e-5b7d-4e21-9a6c-0d8e7f4b1a25",
"scored": 1840, "flagged": 37, "grain": "day",
"buckets": [{"start": "2026-11-24T00:00:00Z", "scored": 260, "flagged": 4, "labelled": 0}],
"labels": []
}]}Alerts and webhooks
An alert emails members of your organization when a check's flag rate passes rate_above over window_minutes (5 to 1,440). It needs at least 20 scores in the window and sends at most one email per window.
A webhook posts JSON to a public https URL (redirects are not followed). Each delivery carries:
| Header | Value |
|---|---|
X-Explabs-Signature | t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>"> |
X-Explabs-Event | tag.fired, tag.alert or tag.test |
X-Explabs-Delivery | A unique id to deduplicate on |
Create the signing secret with POST .../{tag_id}/webhook/secret; it is shown once. Compute the HMAC with it, compare in constant time, and refuse a timestamp more than 5 minutes old. A failed delivery is retried with growing delays and set aside after 8 attempts. Payloads hold ids and numbers, never text.
/api/orgs/{org_id}/trace-tags/{tag_id}/webhook/secretimport hashlib, hmac, time
def verify(secret: str, header: str, body: bytes) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
if abs(time.time() - int(parts["t"])) > 300:
return False
signed = f"{parts['t']}.".encode() + body
digest = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
return hmac.compare_digest(digest, parts["v1"])Score past traffic
A check scores new traffic. To score an AI check over past traffic too (at most 90 days and 100,000 calls), get an estimate, then start the backfill with its estimate_token within 15 minutes. A backfill never scores a call twice. Rule checks have no backfill (422 backfill_not_available).
/api/orgs/{org_id}/trace-tags/{tag_id}/backfill/estimatePOST/api/orgs/{org_id}/trace-tags/{tag_id}/backfillscurl -X POST https://api.experientiallabs.ai/api/orgs/ORG_ID/trace-tags/TAG_ID/backfill/estimate \
-H "Authorization: Bearer <YOUR_API_KEY>" -H "Content-Type: application/json" \
-d '{"from": "2026-11-01T00:00:00Z", "to": "2026-11-08T00:00:00Z", "max_spans": 5000}'
# {"estimate_token": "...", ...} then POST .../backfills {"estimate_token": "..."}Errors
| Status and code | Meaning |
|---|---|
403 plan_required | AI checks need a paid plan. Rule checks work on every plan |
409 name_taken, 409 tag_limit | The name is used, or 32 checks are already active |
422 invalid_tag | A field is invalid; the message names it |
422 judge_model_unavailable | The judge is not available on this deployment |
422 backfill_not_available | Rule checks have no backfill |
402 monthly_cap_reached, 409 estimate_expired | A backfill would pass your monthly cap, or its estimate is older than 15 minutes |
503 tags_unavailable | Checks are not available on this deployment |
Errors are {"error": "<sentence>", "code": "<code>"}.
Scores, review queues and datasets
These have an API and no page in the app, except the thumbs in the request drawer. A score is a judgement about one request, session or span from a person or your code; a review queue lists items for people to score; a dataset keeps stored requests or sessions as test cases. A member works only on their own requests and sessions.
Routes under /api/orgs/{org_id} | Does |
|---|---|
/score-configs, /scores, /scores/summary | Score names and types, scores, and their summary |
/scores/feedback | Thumbs on a request: POST {"request_id", "rating": "up"} (or down) sets yours, the same thumb again clears it; GET ?request_id= reads them. A thumb is a score of the built-in Feedback type (up 1, down -1), and the request list filters on it with feedback |
/annotation-queues, .../{queue_id}/items | Review queues and their items |
/datasets, .../items, .../export, .../runs | Datasets, their items, a JSON lines export, and runs against a model |
A dataset item copies stored content only, and turning storage off or deleting stored content also removes items copied from traffic. A run sends each item as a real request, so it draws credits at the model's normal rate; price it first with .../runs/estimate.
/api/orgs/{org_id}/scoresPOST/api/orgs/{org_id}/datasetscurl -X POST https://api.experientiallabs.ai/api/orgs/ORG_ID/scores \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"target": {"kind": "request", "id": "REQUEST_ID"}, "name": "helpful", "value": 0.9}'