Close the organization
People only, with a fresh second factor: only an owner closes an organization, and `confirm` must be its name exactly.
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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
org_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
confirm | string | Yes | The organization's name, exactly. |
Answer
200. The organization, closed, with its closure.
{
"id": "org_3ahrz6dmv29gqy5ckt18fp",
"name": "example",
"standing": "good",
"plan": "example",
"role": null,
"created_at": "2026-11-23T12:00:00.000Z",
"closure": null
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
name | string | Yes | |
standing | "good" | "past_due" | "suspended" | "closed" | Yes | The organization's standing; past due and suspended answer account_restricted on creates and wakes, and closed (its owner closed it) on every call. |
plan | string | Yes | |
role | "owner" | "admin" | "member" | "viewer" | null | Yes | The calling person's role; null for an API key. |
created_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
closure | Closure | null | Yes | The 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
| Client | Call |
|---|---|
| TypeScript | pod.organisations.close(orgId, name) |
| Python | pod.organisations.close(org_id, name) |