Remove a member
Remove a member from the sub-account. Their login itself is not deleted — they just lose access to this sub-account.
DELETE
https://api.centerfy.ai/webhooks/inbound/users/:id Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | Authenticates the request; or use Authorization: Bearer <key>. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The member’s user id (user_id from List team members). |
Example
curl -X DELETE "https://api.centerfy.ai/webhooks/inbound/users/{id}" \
-H "x-api-key: $CENTERFY_API_KEY" import { CenterfyClient } from "@centerfy/sdk";
const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });
const result = await centerfy.users.remove("<userId>");
console.log(result); centerfy users remove <userId> MCP tool: centerfy_users_remove (see MCP server)
Response
{
"status": "success",
"removed": true,
"user_id": "8c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
}Errors
403— if the member holds an agency-level role.409— if they are the last active sub_account_owner.404— if the user is not an active member of this sub-account.