API reference

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

Path and query parameters
FieldTypeWhat it is
id (path)requiredintegerThe organization id.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
confirmrequiredstringExactly "delete this organization".

Example

{
  "confirm": "string"
}

Answer 200

Deleted.

Fields of the 200 answer
FieldTypeWhat it is
okboolean
keysRevokedinteger
membersRemovedinteger

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.

Antimatter