SMAO API Documentation
Distributor API v1Organizations

Delete organization

DELETE
/organizations/{organizationId}

Permanently delete a partner-managed organization and all associated data including subscriptions, invitations, assistants, calls, contacts, knowledge, and S3 storage. This action is irreversible.

Authorization

DistributorApiKey
AuthorizationBearer <token>

Long-lived distributor API key scoped to a channel partner on the shared smao instance.

In: header

Path Parameters

organizationId*string

MongoDB ObjectId of the organization.

Match^[a-fA-F0-9]{24}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/organizations/665abc123def456789012345"
{  "status": "success",  "message": "Organization deleted."}