v1

latestOpenAPI 3.1.02026-07-2295105298.6 KB
Team Management

Remove Organization Member

Removes a user from your organization. Also cleans up any stray website_members rows for that user across all websites in the organization within a single transaction. Requires a global API key. Cannot remove the API key's owning user, the organization owner, or the last remaining admin.

delete/api/v1/organizations/members/{user_id}

Response

Member removed successfully

successboolean required
messagestring required
websites_affectedinteger required

Number of stray website_members rows that were cleaned up as part of the cascade.

Example response

{
  "success": true,
  "message": "User removed from organization"
}