DELETE/api/orgs/{org_id}/identities/{identity_id}

Disable a group

Sets active: false: no new keys can be created in the group. Its existing keys keep serving until revoked. The default group cannot be disabled (409). Org admin or the provisioning key.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

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

  • identity_idstringrequired

    Identity id.

Responses

  • 200

    The disabled group.

    Response
    • identity_idstringrequired
    • display_namestringrequired
    • descriptionstring | nullrequired
    • activebooleanrequired

      False blocks minting new keys under it; existing keys keep serving until revoked.

    • is_defaultbooleanrequired

      The org's default identity (holds dashboard-minted keys).

    • created_atstringrequired
    • updated_atstringrequired
    • parent_identity_idstring | null

      The parent group; null for a top-level group.

    • monthly_budgetobject | null

      Set only on a create that also set monthly_budget_nano_usd: that group budget.

      One of

      object

      • budget_idstringrequired
      • periodstringrequired

        YYYY-MM, or * for recurring.

      • scope_kindenumrequired

        keys is a shared budget; key is an older per-key budget.

        "team""identity""key""model""pool""deployment""keys"
      • api_key_idstring | nullrequired
      • identity_idstring | nullrequired
      • alias_idstring | nullrequired
      • pool_idstring | nullrequired
      • deployment_idstring | nullrequired
      • limit_nano_usdintegerrequired

        The cap, integer nano-USD. 0 is a hard zero cap.

      • reserved_nano_usdintegerrequired

        In flight, integer nano-USD.

      • settled_nano_usdintegerrequired

        Spent this month, integer nano-USD.

      • remaining_nano_usdintegerrequired

        Integer nano-USD.

      • created_by_kindenumrequired
        "session""api_key"
      • created_by_api_key_idstring | nullrequired

        The authoring key, when a key wrote the row.

      • namestring | null

        Shared budgets only.

      • reset_periodenum

        Shared budgets only.

        "daily""weekly""monthly""yearly"null
      • api_key_idsarray | null

        Shared budgets only: the keys drawing from it.

  • 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 not a provisioning key (inference keys are refused, reads included), or it is a customer-plan 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 group.

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

  • 409

    The default group.

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

Response

{
  "identity_id": "contractors-7c1e40ab",
  "display_name": "Contractors",
  "description": null,
  "active": false,
  "is_default": false,
  "created_at": "2026-11-02T09:14:00Z",
  "updated_at": "2026-11-22T16:10:00Z",
  "parent_identity_id": "developers-2b8e51c0"
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/identities/acme-support