API reference · Organizations
Delete an organization
DELETE/api/orgs/{id}Signed in session
Revokes every key it holds and cannot be undone, so the confirmation phrase has to be typed. The ledger is left in place: the money trail outlives the team.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | integer | The organization id. |
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| confirmrequired | string | Exactly "delete this organization". |
Example
{
"confirm": "string"
}Answer 200
Deleted.
| Field | Type | What it is |
|---|---|---|
| ok | boolean | |
| keysRevoked | integer | |
| membersRemoved | integer |
Errors
- 400OpenAI shaped error.
- 403OpenAI shaped error.
- 404OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.