PATCH/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_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

  • tag_idstringrequired

    The trace tag id.

Request body

  • namestring

    1 to 80 characters, unique in the organization.

  • kindenum

    boolean: 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).

    "boolean""choice""multi_choice""rubric"
  • questionstring

    The instruction an AI check judges, 1 to 1,000 characters. For a Rule check, a short description of the rule.

  • rubricarray | null

    Rubric levels, lowest first, 2 to 10. Rubric tags only.

  • labelsarray | null

    Tag and Multi-tag checks only: 2 to 12 labels of 1 to 64 characters. A Tag check may add Other for "none of these"; a Multi-tag check may not.

  • thresholdnumber

    The flag line: the check flags a request when its score reaches this. Above 0 up to 1.

    Default: 0.5
  • scopeenum

    llm_call: each model call. session: each session, once it has been quiet for 10 minutes. A Rule check is llm_call.

    "llm_call""tool_call""session"
  • filtersobject

    Which 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_ratenumber

      Share of sessions scored, above 0 up to 1. Sampling is by session, so a sampled session is scored on every call.

      Default: 1
  • monthly_budgetinteger | null

    AI checks only: the judgments the check makes in a UTC month at its own sample rate. Past it the check samples at budget_sample_rate until 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_ratenumber

    The sample rate the check drops to once it reaches monthly_budget, above 0 up to 1.

    Default: 0.01
  • judge_modelstring

    Leave it out for an AI check (the platform's AI judge). deterministic-rules for a Rule check.

  • ruleobject | null

    A Rule check's rule, with judge_model deterministic-rules. It tests each model call and flags it when the rule matches. Free.

    rule
    • kindenumrequired

      What to test: text (contains, not_contains, regex in RE2 syntax), a tool by exact name (tool_called, tool_not_called), a failed call (status_failed), or an amount strictly above amount (milliseconds, US dollars or output tokens).

      "contains""not_contains""regex""tool_called""tool_not_called""status_failed""latency_above_ms""cost_above_usd""output_tokens_above"
    • fieldenum

      Text rules only: input (messages and tool results) or output (the response and tool calls).

      "input""output"null
    • valuestring | null

      The text, pattern or tool name. Text and tool rules only.

    • amountnumber | null

      The limit of an amount rule.

  • statusenum
    "active""paused"
    Default: "active"
  • alertobject

    Email when the fire rate passes rate_above over window_minutes (at least 20 scores in the window).

    alert
    • enabledboolean
      Default: false
    • rate_abovenumber | null

      Share of scores that fired, above 0 up to 1.

    • window_minutesinteger

      5 to 1,440.

      Default: 60
    • emailsarray<string>

      Members of the organization, at most 10.

  • webhookobject

    A signed POST on each fire or on each alert.

    webhook
    • urlstring | null

      An https URL on a public host.

    • onenum
      "each_fire""alert"
      Default: "each_fire"

Responses

  • 200

    The tag.

    Response
    • idstring
    • namestring

      1 to 80 characters, unique in the organization.

    • kindenum

      boolean: 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).

      "boolean""choice""multi_choice""rubric"
    • questionstring

      The instruction an AI check judges, 1 to 1,000 characters. For a Rule check, a short description of the rule.

    • rubricarray | null

      Rubric levels, lowest first, 2 to 10. Rubric tags only.

    • labelsarray | null

      Tag and Multi-tag checks only: 2 to 12 labels of 1 to 64 characters. A Tag check may add Other for "none of these"; a Multi-tag check may not.

    • thresholdnumber

      The flag line: the check flags a request when its score reaches this. Above 0 up to 1.

      Default: 0.5
    • scopeenum

      llm_call: each model call. session: each session, once it has been quiet for 10 minutes. A Rule check is llm_call.

      "llm_call""tool_call""session"
    • filtersobject

      Which 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_ratenumber

        Share of sessions scored, above 0 up to 1. Sampling is by session, so a sampled session is scored on every call.

        Default: 1
    • monthly_budgetinteger | null

      AI checks only: the judgments the check makes in a UTC month at its own sample rate. Past it the check samples at budget_sample_rate until 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_ratenumber

      The sample rate the check drops to once it reaches monthly_budget, above 0 up to 1.

      Default: 0.01
    • judge_modelstring

      Leave it out for an AI check (the platform's AI judge). deterministic-rules for a Rule check.

    • ruleobject | null

      A Rule check's rule, with judge_model deterministic-rules. It tests each model call and flags it when the rule matches. Free.

      rule
      • kindenumrequired

        What to test: text (contains, not_contains, regex in RE2 syntax), a tool by exact name (tool_called, tool_not_called), a failed call (status_failed), or an amount strictly above amount (milliseconds, US dollars or output tokens).

        "contains""not_contains""regex""tool_called""tool_not_called""status_failed""latency_above_ms""cost_above_usd""output_tokens_above"
      • fieldenum

        Text rules only: input (messages and tool results) or output (the response and tool calls).

        "input""output"null
      • valuestring | null

        The text, pattern or tool name. Text and tool rules only.

      • amountnumber | null

        The limit of an amount rule.

    • statusenum
      "active""paused"
      Default: "active"
    • alertobject

      Email when the fire rate passes rate_above over window_minutes (at least 20 scores in the window).

      alert
      • enabledboolean
        Default: false
      • rate_abovenumber | null

        Share of scores that fired, above 0 up to 1.

      • window_minutesinteger

        5 to 1,440.

        Default: 60
      • emailsarray<string>

        Members of the organization, at most 10.

    • webhookobject

      The webhook and whether a signing secret exists.

      webhook
      • urlstring | null
      • onstring
      • secret_setboolean
    • revisioninteger

      Moves when what the judge reads changes.

    • statsobject

      The last 7 days.

      stats
      • scored_7dinteger
      • fired_7dinteger
      • rate_7dnumber | null
    • budgetobject | null

      This UTC month against monthly_budget. null for a check that has not judged this month.

      budget
      • monthstring

        The first day of the UTC month.

      • judgmentsinteger

        Judgments counted toward the budget this month.

      • reachedboolean

        The check reached its budget and samples at budget_sample_rate until the month ends.

      • reached_atstring | null
      • effective_sample_ratenumber

        The rate the check samples at now.

    • created_atstring
    • updated_atstring
  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 403

    The caller may not change checks, or the plan has no AI checks (plan_required; Rule checks work on every plan).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    No tag with this id (tag_not_found).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 409

    The name is taken or the active tag limit is reached.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 422

    A field is invalid.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-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