Delete a custom tool
delete a custom tool.
DELETE
https://api.centerfy.ai/webhooks/inbound/custom-tools/:id Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | authenticates the request; or Authorization: Bearer <key>. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | the custom tool id. |
Example
curl -X DELETE "https://api.centerfy.ai/webhooks/inbound/custom-tools/{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.customTools.delete("<toolId>");
console.log(result); centerfy customTools delete <toolId> MCP tool: centerfy_custom_tools_delete (see MCP server)
Response
{
"status": "success",
"deleted": true,
"custom_tool_id": "<custom_tool_id>",
"removed_agent_assignments": 2
}Errors
400— if id is not a valid uuid.404— if the custom tool does not exist.409— if the tool is registered on the voice engine — delete it from the in-app tool editor instead so the engine-side definition is also torn down.500— on failure.
Notes
Unlinks the tool from every agent, then deletes the tool; the response reports removed_agent_assignments.