Delete an opportunity
Permanently delete an opportunity.
DELETE
https://api.centerfy.ai/webhooks/inbound/opportunities/: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 opportunity id. |
Example
curl -X DELETE "https://api.centerfy.ai/webhooks/inbound/opportunities/{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.opportunities.delete("<opportunityId>");
console.log(result); centerfy opportunities delete <opportunityId> MCP tool: centerfy_opportunities_delete (see MCP server)
Response
{
"status": "success",
"deleted": true,
"opportunity_id": "9e4c5f61-7d8a-4b92-8c3d-4e5f6a7b8c93"
}Errors
404— if the opportunity is not in this sub-account.