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

Get daily lane usage

Per-day traffic across every org that called your lanes, in whole UTC settlement days. Consumers appear only as distinct counts, never identities. Money is in US dollars. 503 when usage analytics are unavailable on this deployment; 429 with Retry-After: 1 when the analytics store is busy.

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

パスパラメータ

  • org_idstring必須

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

クエリパラメータ

  • daysinteger

    Window length in days, counted back from now.

    デフォルト: 30

レスポンス

  • 200

    Daily rows, oldest first.

    レスポンス
    • daysinteger必須
    • rowsarray<object>必須
      rows
      • daystring必須

        UTC settlement day.

      • request_countinteger必須
      • error_countinteger必須
      • input_tokensinteger必須
      • output_tokensinteger必須
      • cost_usdnumber必須

        Settled charged money in US dollars.

      • estimated_cost_usdnumber必須

        List-price estimate of traffic not charged by the platform (customer-key traffic), in US dollars.

      • distinct_api_keysinteger必須

        Count of distinct calling keys (no identities).

      • distinct_orgsinteger必須

        Count of distinct calling orgs (no identities).

      • ttft_p50_msinteger | null必須

        Median time to first token in milliseconds.

      • ttft_p90_msinteger | null必須
      • timeout_countinteger必須
  • 401

    Missing, unknown or revoked API key.

    レスポンス
    • errorstring必須

      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

    The resource does not exist or belongs to another organization.

    レスポンス
    • errorstring必須

      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

    The body or query failed validation.

    レスポンス
    • detailarray<object>必須
      detail
      • typestring
      • locarray<string | integer>
      • msgstring
  • 429

    The usage analytics store is busy; retry after the Retry-After seconds.

    レスポンス
    • errorstring必須

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

  • 503

    Usage analytics are unavailable on this deployment or temporarily failing.

    レスポンス
    • errorstring必須

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

リクエスト

curl https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/provider/usage?days=30 \
  -H "Authorization: Bearer YOUR_API_KEY"

レスポンス

{
  "days": 30,
  "rows": [
    {
      "day": "2026-11-18",
      "request_count": 48210,
      "error_count": 37,
      "input_tokens": 182044901,
      "output_tokens": 21455092,
      "cost_usd": 82.3341,
      "estimated_cost_usd": 4.1022,
      "distinct_api_keys": 214,
      "distinct_orgs": 96,
      "ttft_p50_ms": 380,
      "ttft_p90_ms": 910,
      "timeout_count": 4
    }
  ]
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/provider/usage?days=30