GET/api/orgs/{org_id}/observability/usage

ログと保存容量の使用状況を取得

今月のログ対象リクエスト数とプランの利用枠(ナノUSDでの超過見込みと引き落とし済みのクレジット)、新しいコンテンツを保存しているかどうか、含まれる保存容量に対する保存データ量とGB・月あたりの請求見込み、コンテンツの保持期間の上限、AIチェックを返します。日次の集計から読み取ります。どのメンバーまたはキーでも呼び出せます。

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

パスパラメーター

  • org_idstring必須

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

レスポンス

  • 200

    今月これまでの状況。

    レスポンス
    • tierenum必須
      "free""pro""max""ultra"
    • modeenum必須

      measureは請求せずに数え、enforceは超過分をクレジットから引き落とします。

      "off""measure""enforce"
    • monthstring必須

      UTCの月の初日。

    • loggingobject必須

      プランの利用枠に対するログ対象リクエスト数。

      logging
      • loggedinteger
      • includedinteger
      • overage_tiersarray<object>

        段階的な超過料金。各段階は超過リクエストの累計がup_toに達するまで適用されます(nullは上限なし)。

        overage_tiers
        • up_tointeger | null
        • nano_usd_per_1000integer
      • overage_unitsinteger
      • projected_charge_nano_usdinteger
      • charged_creditsinteger

        今月の超過分としてすでに引き落とされたクレジット。

      • store_contentboolean

        新しいコンテンツを保存しているかどうか。利用枠を超えてもコンテンツは保存されます。

      • reasonenum

        overage:超過分をクレジットで支払うプランで利用枠を超えている。over_allowance:支払い手段がないまま利用枠を超えている。利用枠内ではnull。

        "overage""over_allowance"null
      • charges_fromstring | null

        超過分の請求が始まる最初の月。請求されていない間はnull。

    • storageobject必須

      含まれる保存容量に対する保存データ量。

      storage
      • bytesinteger

        最新の計測による保存バイト数。

      • measured_onstring | null
      • month_average_bytesinteger
      • included_bytesinteger | null
      • nano_usd_per_gb_monthinteger | null
      • projected_charge_nano_usdinteger
      • charges_fromstring | null

        保存容量の請求が始まる最初の月。請求されていない間はnull。

      • can_payboolean

        含まれる保存容量を超えた分をクレジットで支払えるかどうか。

      • evictingboolean

        保存容量の条件が有効な間に、支払い手段がないまま含まれる保存容量を超えている状態。古いコンテンツから削除されます。

    • retentionobject必須
      retention
      • content_max_daysinteger | null

        プランのコンテンツ保持期間の上限(日数)。上限がない場合はnull。

      • enforcedboolean

        上限が有効かどうか。

      • effective_atstring | null
    • ai_checksobject必須

      プランのAIチェック。判定1回(判定したリクエストまたはセッション)ごとに1回と数えます。

      ai_checks
      • plan_billingboolean

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

      • includedinteger | null
      • nano_usd_per_checkinteger | null
      • usedinteger

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

リクエスト

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

レスポンス

{
  "tier": "pro",
  "mode": "enforce",
  "month": "2026-12-01",
  "logging": {
    "logged": 120000,
    "included": 100000,
    "overage_tiers": [
      {
        "up_to": 1000000,
        "nano_usd_per_1000": 60000000
      },
      {
        "up_to": 10000000,
        "nano_usd_per_1000": 50000000
      },
      {
        "up_to": null,
        "nano_usd_per_1000": 40000000
      }
    ],
    "overage_units": 20000,
    "projected_charge_nano_usd": 1200000000,
    "charged_credits": 60,
    "store_content": true,
    "reason": "overage",
    "charges_from": "2026-12-01"
  },
  "storage": {
    "bytes": 12400000000,
    "measured_on": "2026-12-02",
    "month_average_bytes": 12000000000,
    "included_bytes": 10000000000,
    "nano_usd_per_gb_month": 500000000,
    "projected_charge_nano_usd": 1200000000,
    "charges_from": "2026-12-01",
    "can_pay": true,
    "evicting": false
  },
  "retention": {
    "content_max_days": 90,
    "enforced": true,
    "effective_at": "2026-11-20T00:00:00Z"
  },
  "ai_checks": {
    "plan_billing": true,
    "included": 6500,
    "nano_usd_per_check": 550000,
    "used": 1840
  }
}

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