GET/api/orgs/{org_id}/keys/{key_id}/response-cache

Get a key's response cache mode

One key's mode (follow, on or off), the organization default, and whether the key's requests use the cache without a header (effective, before any blocker). Its creator or an org admin, or the organization's own key.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

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

  • key_idstringrequired

    The API key id.

Responses

  • 200

    The mode.

    Response
    • key_idstring
    • modeenum

      follow uses the organization default; on and off override it for this key.

      "follow""on""off"
    • org_enabledboolean

      The organization default.

    • effectiveboolean

      Whether this key's requests use the cache without a header, before any blocker.

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

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

    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

    The resource does not exist or belongs to another 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/keys/6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33/response-cache' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "key_id": "6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33",
  "mode": "follow",
  "org_enabled": true,
  "effective": true
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/keys/6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33/response-cache