DELETE
/
v1
/
organization
Delete organization
curl --request DELETE \
  --url https://api.trycomp.ai/v1/organization \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "deletedOrganization": {
    "id": "org_abc123def456",
    "name": "Acme Corporation"
  },
  "authType": "api-key"
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Response

Organization deleted successfully

success
boolean

Indicates successful deletion

Example:

true

deletedOrganization
object
authType
enum<string>

How the request was authenticated

Available options:
api-key,
session