Close the organization

People only, with a fresh second factor: only an owner closes an organization, and `confirm` must be its name exactly.

POST/v1/organisations/{org_id}/close

People only, with a fresh second factor: only an owner closes an organization, and confirm must be its name exactly. In one change every key and service grant is revoked (refused everywhere within 60 seconds), the standing becomes closed, so anything still naming the organization is refused with account_restricted, and the closure is recorded. The billing subscription then ends; an open invoice stays open. An owner may reopen it until closure.reopen_until; after that the organization's encryption key is destroyed, its members are removed, and only the records the data retention page lists are kept. Closing a closed organization is conflict.

For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with person_required.

Request

curl -X POST "https://api.pod.mapier.ai/v1/organisations/org_3ahrz6dmv29gqy5ckt18fp/close" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"confirm":"example"}'

Parameters

NameInTypeRequiredWhat it is
org_idpathstringYes
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
confirmstringYesThe organization's name, exactly.

Answer

200. The organization, closed, with its closure.

200
{
  "id": "org_3ahrz6dmv29gqy5ckt18fp",
  "name": "example",
  "standing": "good",
  "plan": "example",
  "role": null,
  "created_at": "2026-11-23T12:00:00.000Z",
  "closure": null
}
FieldTypeAlwaysWhat it is
idstringYes
namestringYes
standing"good" | "past_due" | "suspended" | "closed"YesThe organization's standing; past due and suspended answer account_restricted on creates and wakes, and closed (its owner closed it) on every call.
planstringYes
role"owner" | "admin" | "member" | "viewer" | nullYesThe calling person's role; null for an API key.
created_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
closureClosure | nullYesThe last closure, or null if it was never closed.

Errors

The refusals this call is known for: invalid, person_required, forbidden, not_found, conflict. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.organisations.close(orgId, name)
Pythonpod.organisations.close(org_id, name)