/api/orgs/{org_id}/trace-tags/{tag_id}Edit a check
Change only the fields you send. Changing the question, kind, labels, rule or judge starts a new revision; earlier scores keep their revision. Pause a check with status: paused; a paused check can always be edited.
Authentication: Bearer API key in the Authorization header
Path parameters
org_idstringrequiredYour organization id (uuid).
GET /api/whoamireturns it.tag_idstringrequiredThe trace tag id.
Request body
namestring1 to 80 characters, unique in the organization.
kindenumboolean: a yes or no Flag (also every Rule check).choice: a Tag, the one label that fits best.multi_choice: a Multi-tag, every label that fits.rubric: graded levels (API only).questionstringThe instruction an AI check judges, 1 to 1,000 characters. For a Rule check, a short description of the rule.
rubricarray | nullRubric levels, lowest first, 2 to 10. Rubric tags only.
labelsarray | nullTag and Multi-tag checks only: 2 to 12 labels of 1 to 64 characters. A Tag check may add
Otherfor "none of these"; a Multi-tag check may not.thresholdnumberThe flag line: the check flags a request when its score reaches this. Above 0 up to 1.
scopeenumllm_call: each model call.session: each session, once it has been quiet for 10 minutes. A Rule check isllm_call.filtersobjectWhich calls the tag scores.
filters
api_key_idsarray<string>Only these keys (empty: every key).
modelsarray<string>Only these models (empty: every model).
request_tagsarray<string>Only requests carrying these tags, written
key:value.sample_ratenumberShare of sessions scored, above 0 up to 1. Sampling is by session, so a sampled session is scored on every call.
monthly_budgetinteger | nullAI checks only: the judgments the check makes in a UTC month at its own sample rate. Past it the check samples at
budget_sample_rateuntil the month ends, instead of charging past it. Left out on create: the plan's included checks left this month (no cap without an allowance).null: no cap.budget_sample_ratenumberThe sample rate the check drops to once it reaches
monthly_budget, above 0 up to 1.judge_modelstringLeave it out for an AI check (the platform's AI judge).
deterministic-rulesfor a Rule check.ruleobject | nullA Rule check's rule, with
judge_modeldeterministic-rules. It tests each model call and flags it when the rule matches. Free.rule
kindenumrequiredWhat to test: text (
contains,not_contains,regexin RE2 syntax), a tool by exact name (tool_called,tool_not_called), a failed call (status_failed), or an amount strictly aboveamount(milliseconds, US dollars or output tokens).fieldenumText rules only:
input(messages and tool results) oroutput(the response and tool calls).valuestring | nullThe text, pattern or tool name. Text and tool rules only.
amountnumber | nullThe limit of an amount rule.
statusenumalertobjectEmail when the fire rate passes
rate_aboveoverwindow_minutes(at least 20 scores in the window).alert
enabledbooleanrate_abovenumber | nullShare of scores that fired, above 0 up to 1.
window_minutesinteger5 to 1,440.
emailsarray<string>Members of the organization, at most 10.
webhookobjectA signed POST on each fire or on each alert.
webhook
urlstring | nullAn https URL on a public host.
onenum
Responses
200The tag.
Response
idstringnamestring1 to 80 characters, unique in the organization.
kindenumboolean: a yes or no Flag (also every Rule check).choice: a Tag, the one label that fits best.multi_choice: a Multi-tag, every label that fits.rubric: graded levels (API only).questionstringThe instruction an AI check judges, 1 to 1,000 characters. For a Rule check, a short description of the rule.
rubricarray | nullRubric levels, lowest first, 2 to 10. Rubric tags only.
labelsarray | nullTag and Multi-tag checks only: 2 to 12 labels of 1 to 64 characters. A Tag check may add
Otherfor "none of these"; a Multi-tag check may not.thresholdnumberThe flag line: the check flags a request when its score reaches this. Above 0 up to 1.
scopeenumllm_call: each model call.session: each session, once it has been quiet for 10 minutes. A Rule check isllm_call.filtersobjectWhich calls the tag scores.
filters
api_key_idsarray<string>Only these keys (empty: every key).
modelsarray<string>Only these models (empty: every model).
request_tagsarray<string>Only requests carrying these tags, written
key:value.sample_ratenumberShare of sessions scored, above 0 up to 1. Sampling is by session, so a sampled session is scored on every call.
monthly_budgetinteger | nullAI checks only: the judgments the check makes in a UTC month at its own sample rate. Past it the check samples at
budget_sample_rateuntil the month ends, instead of charging past it. Left out on create: the plan's included checks left this month (no cap without an allowance).null: no cap.budget_sample_ratenumberThe sample rate the check drops to once it reaches
monthly_budget, above 0 up to 1.judge_modelstringLeave it out for an AI check (the platform's AI judge).
deterministic-rulesfor a Rule check.ruleobject | nullA Rule check's rule, with
judge_modeldeterministic-rules. It tests each model call and flags it when the rule matches. Free.rule
kindenumrequiredWhat to test: text (
contains,not_contains,regexin RE2 syntax), a tool by exact name (tool_called,tool_not_called), a failed call (status_failed), or an amount strictly aboveamount(milliseconds, US dollars or output tokens).fieldenumText rules only:
input(messages and tool results) oroutput(the response and tool calls).valuestring | nullThe text, pattern or tool name. Text and tool rules only.
amountnumber | nullThe limit of an amount rule.
statusenumalertobjectEmail when the fire rate passes
rate_aboveoverwindow_minutes(at least 20 scores in the window).alert
enabledbooleanrate_abovenumber | nullShare of scores that fired, above 0 up to 1.
window_minutesinteger5 to 1,440.
emailsarray<string>Members of the organization, at most 10.
webhookobjectThe webhook and whether a signing secret exists.
webhook
urlstring | nullonstringsecret_setboolean
revisionintegerMoves when what the judge reads changes.
statsobjectThe last 7 days.
stats
scored_7dintegerfired_7dintegerrate_7dnumber | null
budgetobject | nullThis UTC month against
monthly_budget.nullfor a check that has not judged this month.budget
monthstringThe first day of the UTC month.
judgmentsintegerJudgments counted toward the budget this month.
reachedbooleanThe check reached its budget and samples at
budget_sample_rateuntil the month ends.reached_atstring | nulleffective_sample_ratenumberThe rate the check samples at now.
created_atstringupdated_atstring
401Missing, unknown or revoked API key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
403The caller may not change checks, or the plan has no AI checks (
plan_required; Rule checks work on every plan).Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
404No tag with this id (
tag_not_found).Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
409The name is taken or the active tag limit is reached.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
422A field is invalid.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
Request
curl -X PATCH 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/trace-tags/0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90' \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"status": "paused"
}'Response
{
"id": "0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90",
"name": "Gave up early",
"kind": "boolean",
"question": "Did the assistant stop before finishing the task?",
"rubric": null,
"threshold": 0.5,
"scope": "llm_call",
"filters": {
"api_key_ids": [],
"models": [
"gpt-6-luna"
],
"request_tags": [
"team:support"
],
"sample_rate": 1
},
"status": "active",
"alert": {
"enabled": true,
"rate_above": 0.2,
"window_minutes": 60,
"emails": [
"oncall@example.com"
]
},
"webhook": {
"url": null,
"on": "each_fire",
"secret_set": false
},
"revision": 1,
"stats": {
"scored_7d": 1840,
"fired_7d": 92,
"rate_7d": 0.05
},
"created_at": "2026-11-18T14:32:07Z",
"updated_at": "2026-11-18T14:32:07Z"
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/trace-tags/0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90