GET/api/v1/keys

List API keys in OpenRouter's shape

Needs a provisioning key; a normal inference key gets 403. Revoked keys are hidden unless include_disabled=true. usage is always null here: read spend from GET /api/v1/usage or GET /api/v1/key.

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

クエリパラメータ

  • include_disabledboolean

    Include revoked keys.

    デフォルト: false

レスポンス

  • 200

    The keys.

    レスポンス
    • dataarray<object>必須
      data
      • hashstring

        The key id (never the secret hash).

      • namestring
      • labelstring

        Key prefix and last characters.

      • disabledboolean

        True once revoked.

      • is_provisioningboolean
      • identity_idstring | null
      • limitnumber | null

        Spend cap, USD; null when uncapped.

      • limit_remainingnumber | null

        Cap less this window's spend and reservations, USD; null when uncapped or unreadable in time.

      • limit_resetenum | null
      • usagenull

        Always null; see GET /api/v1/usage.

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

  • 403

    The key is valid but may not perform this action (for example an inference key on a provisioning-key route, or a feature outside your plan).

    レスポンス
    • 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/v1/keys?include_disabled=false \
  -H "Authorization: Bearer YOUR_API_KEY"

レスポンス

{
  "data": [
    {
      "hash": "0b9d4f6e-2a1c-4e8b-9f37-5c6d2e1a8b40",
      "name": "billing-sync",
      "label": "xpl_live_8f2c…a91d",
      "disabled": false,
      "is_provisioning": false,
      "identity_id": "7a3e1c90-4b2d-4f6a-9e18-2d5c0b7f3a61",
      "limit": 50,
      "limit_remaining": 47.25,
      "limit_reset": "daily",
      "usage": null,
      "created_at": "2026-11-02T09:14:22.501Z",
      "updated_at": "2026-11-02T09:14:22.501Z"
    }
  ]
}

https://api.experientiallabs.ai/api/v1/keys?include_disabled=false