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

Get imported historical usage

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

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

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

Responses

  • 200

    Imported attribution.

    Response
    • modelsarray<object>required
      models
      • sourceenumrequired
        "codex""claude-code"
      • modelstringrequired

        Catalog slug when matched, else the raw model id.

      • model_matchedbooleanrequired

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

      • request_countintegerrequired
      • input_tokensintegerrequired
      • output_tokensintegerrequired
      • cached_input_tokensintegerrequired
      • reasoning_tokensintegerrequired
      • cost_usdnumberrequired

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

    • totalsobjectrequired
      totals
      • request_countintegerrequired
      • input_tokensintegerrequired
      • output_tokensintegerrequired
      • cost_usdnumberrequired

        Dollars, attribution only.

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

  • 404

    Unknown organization, or not the key's own organization.

    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 https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/usage/imported \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "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