GET/api/orgs/{org_id}/trace-tags

チェックを一覧表示する

各チェック(トレースタグ)と直近7日間の数値、組織の予算、状態、AIチェックの条件。どのメンバーやキーでも読み取れます。

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメーター

  • org_idstring必須

    お客様の組織ID(uuid)。GET /api/whoamiで取得できます。

レスポンス

  • 200

    タグと予算。

    レスポンス
    • tagsarray<object>
      tags
      • idstring
      • namestring

        1〜80文字。組織内で一意。

      • kindenum

        boolean:はい・いいえのFlag(ルールチェックもすべてこれ)。choice:最も当てはまる1つのラベルを選ぶTag。multi_choice:当てはまるすべてのラベルを選ぶMulti-tag。rubric:段階評価(APIのみ)。

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

        AIチェックが判定する指示。1〜1,000文字。ルールチェックではルールの短い説明。

      • rubricarray | null

        ルーブリックの段階(低い順、2〜10)。ルーブリックのタグのみ。

      • labelsarray | null

        TagとMulti-tagのチェックのみ。1〜64文字のラベルを2〜12個。Tagチェックは「該当なし」を表すOtherを追加できます。Multi-tagチェックは追加できません。

      • thresholdnumber

        フラグのしきい値。スコアがこの値に達するとチェックがリクエストにフラグを付けます。0より大きく1以下。

        既定値: 0.5
      • scopeenum

        llm_call:モデル呼び出しごと。session:10分間動きがなくなったセッションごと。ルールチェックはllm_call。

        "llm_call""tool_call""session"
      • filtersobject

        タグがスコア付けする呼び出し。

        filters
        • api_key_idsarray<string>

          これらのキーのみ(空の場合はすべてのキー)。

        • modelsarray<string>

          これらのモデルのみ(空の場合はすべてのモデル)。

        • request_tagsarray<string>

          これらのタグ(key:value形式)が付いたリクエストのみ。

        • sample_ratenumber

          スコア付けするセッションの割合(0より大きく1以下)。サンプリングはセッション単位のため、選ばれたセッションはすべての呼び出しがスコア付けされます。

          既定値: 1
      • monthly_budgetinteger | null

        AIチェックのみ:UTCの1か月にチェックが自身のサンプル率で行う判定数。超えると、超過分を請求する代わりに月末まで budget_sample_rate でサンプリングします。作成時に省略した場合:今月残っているプランの付属チェック数(付属枠がなければ上限なし)。null:上限なし。

      • budget_sample_ratenumber

        monthly_budget に達したときにチェックが下げるサンプル率(0より大きく1以下)。

        既定値: 0.01
      • judge_modelstring

        AIチェック(プラットフォームのAIのジャッジ)では省略。ルールチェックではdeterministic-rules。

      • ruleobject | null

        ルールチェックのルール(judge_modelはdeterministic-rules)。モデル呼び出しを1件ずつ調べ、ルールに一致するとフラグを付けます。無料です。

        rule
        • kindenum必須

          調べる内容。テキスト(contains、not_contains、RE2構文のregex)、完全一致の名前のツール(tool_called、tool_not_called)、失敗した呼び出し(status_failed)、またはamountを超える数値(ミリ秒、米ドル、出力トークン)。

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

          テキストのルールのみ。input(メッセージとツールの結果)またはoutput(応答とツール呼び出し)。

          "input""output"null
        • valuestring | null

          テキスト、パターン、またはツール名。テキストとツールのルールのみ。

        • amountnumber | null

          数値のルールの上限。

      • statusenum
        "active""paused"
        既定値: "active"
      • alertobject

        window_minutesの間の発火率がrate_aboveを超えたときにメールを送信します(期間内に20件以上のスコアが必要)。

        alert
        • enabledboolean
          既定値: false
        • rate_abovenumber | null

          発火したスコアの割合(0より大きく1以下)。

        • window_minutesinteger

          5〜1,440。

          既定値: 60
        • emailsarray<string>

          組織のメンバー。最大10。

      • webhookobject

        Webhookと、署名シークレットの有無。

        webhook
        • urlstring | null
        • onstring
        • secret_setboolean
      • revisioninteger

        判定モデルが読む内容が変わると増えます。

      • statsobject

        直近7日間。

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

        今月(UTC)の monthly_budget に対する状況。今月まだ判定していないチェックは null。

        budget
        • monthstring

          UTCの月の初日。

        • judgmentsinteger

          今月予算に数えられた判定数。

        • reachedboolean

          チェックが予算に達し、月末まで budget_sample_rate でサンプリングしています。

        • reached_atstring | null
        • effective_sample_ratenumber

          チェックが現在サンプリングしている率。

      • created_atstring
      • updated_atstring
    • budgetobject

      組織のタグ付けの予算と状態。

      budget
      • calls_per_secondnumber
      • monthly_cap_nano_usdinteger | null
      • month_spend_nano_usdinteger
      • month_callsinteger
      • stateenum

        チェックが一時停止している場合の理由。チェックがループで再試行することはなく、一時停止した組織は10分後に再確認します。

        "running""cap_reached""needs_credits""needs_verification""capture_off""account_restricted""staff_only""paused"
      • judge_modelsarray<object>

        この組織が選べるジャッジ(AIとRule)。

        judge_models
        • slugstring
        • labelstring
        • price_per_span_nano_usdinteger
      • ai_checksobject | null

        プランのAIチェックの条件。評価したAIチェックの数にかかわらず、判定1回(判定したリクエストまたはセッション)ごとにAIチェック1回と数え、再試行は数えません。ルールチェックは無料です。

        ai_checks
        • plan_billingboolean

          この条件が適用されているかどうか。

        • included_per_monthinteger | null

          毎月含まれるAIチェック済みのリクエストまたはセッションの数(判定1回につき1回)。AIチェックのないFreeでは0。

        • nano_usd_per_checkinteger | null

          含まれる回数を超えたAIチェック1回(判定1回)の料金(nano-USD)。料金がない場合はnullで、AIチェックはそこで一時停止します。

        • used_this_monthinteger

          今月(UTC)のAIチェック(判定)の回数。

  • 401

    APIキーがない、不明、または失効しています。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 404

    リソースが存在しないか、他の組織に属しています。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 503

    このデプロイ環境にはスコアストアがありません(tags_unavailable)。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

リクエスト

curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/trace-tags' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

レスポンス

{
  "tags": [
    {
      "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"
    }
  ],
  "budget": {
    "calls_per_second": 2,
    "monthly_cap_nano_usd": 50000000000,
    "month_spend_nano_usd": 1820000000,
    "month_calls": 9120,
    "state": "running",
    "judge_models": [
      {
        "slug": "deterministic-rules",
        "label": "Rule",
        "price_per_span_nano_usd": 0
      }
    ],
    "ai_checks": {
      "plan_billing": true,
      "included_per_month": 6500,
      "nano_usd_per_check": 550000,
      "used_this_month": 1840
    }
  }
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/trace-tags