Skip to main content
POST
/
api
/
canary
/
authentication
/
organization
/
delete
Delete Organization
curl --request POST \
  --url http://localhost:3000/api/canary/authentication/organization/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "organizationId": "org_12345"
}
'
{
  "statusCode": 400,
  "message": [
    "Invalid input data"
  ],
  "error": "Bad Request"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
organizationId
string
required

The ID of the organization to delete

Example:

"org_12345"

Response

Organization deleted successfully