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

Get imported historical usage

All imported attribution per (source, model), no window. Attribution only, never charged.

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

パスパラメータ

  • org_idstring必須

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

レスポンス

  • 200

    Imported attribution.

    レスポンス
    • modelsarray<object>必須
      models
      • sourceenum必須
        "codex""claude-code"
      • modelstring必須

        Catalog slug when matched, else the raw model id.

      • model_matchedboolean必須

        False when the model is outside the catalog (priced at 0).

      • request_countinteger必須
      • input_tokensinteger必須
      • output_tokensinteger必須
      • cached_input_tokensinteger必須
      • reasoning_tokensinteger必須
      • cost_usdnumber必須

        Historical attribution at current list rates, dollars. Never charged.

    • totalsobject必須
      totals
      • request_countinteger必須
      • input_tokensinteger必須
      • output_tokensinteger必須
      • cost_usdnumber必須

        Dollars, attribution only.

  • 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

    Unknown organization, or not the key's own 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).

リクエスト

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

レスポンス

{
  "models": [
    {
      "source": "codex",
      "model": "gpt-5.5-codex",
      "model_matched": true,
      "request_count": 418,
      "input_tokens": 1204410,
      "output_tokens": 388120,
      "cached_input_tokens": 5120400,
      "reasoning_tokens": 140212,
      "cost_usd": 7.42
    }
  ],
  "totals": {
    "request_count": 418,
    "input_tokens": 1204410,
    "output_tokens": 388120,
    "cost_usd": 7.42
  }
}

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