Update an agent

update an AI agent.

PATCH https://api.centerfy.ai/webhooks/inbound/agents/:id

Headers

HeaderRequiredValueDescription
x-api-keyYesyour sub-account API key (cfy_…)Authenticates the request; or use Authorization: Bearer <key>.
Content-TypeYesapplication/jsonThe request body is JSON.

Path parameters

NameTypeRequiredDescription
idstring (uuid)YesThe agent id.

Body parameters

NameTypeRequiredDefaultDescription
namestringNo—The agent’s display name; if present, must be a non-empty string.
voice_idstringNo—The voice — accepts a friendly voice name (e.g. “Marissa”) or a raw voice id. If present, must be a non-empty string.
llm_modelstringNo—The LLM model; if present, must be a non-empty string.
languagestringNo—The agent language code; if present, must be a non-empty string.
max_durationnumberNo—Maximum call duration; if present, must be a number.
temperaturenumberNo—LLM sampling temperature; if present, must be a number.
silence_timeoutnumberNo—Silence timeout; if present, must be a number.
voice_activity_timeoutnumberNo—Voice-activity timeout; if present, must be a number. The alternate spelling ‘voice_activbity_timeout’ is also accepted.
background_noisebooleanNo—Whether ambient background noise is enabled; if present, must be a boolean. When set to true, ‘background_type’ is required.
background_typestringNo—Ambient noise profile; if present, must be one of: call_center, coffee_shop, conventional_hall. Required when setting background_noise=true.
voicemail_detectionbooleanNo—Whether voicemail detection is enabled; if present, must be a boolean. When set to true, ‘voicemail_type’ is required.
voicemail_typestringNo—Voicemail action; if present, must be one of: leave_message, hangup. Required when setting voicemail_detection=true; when ‘leave_message’, ‘voicemail_message’ is required.
voicemail_messagestringNo—The message left on voicemail; if present, must be a string. Required when voicemail_type=‘leave_message’.
backcchannelingbooleanNo—Whether backchanneling is enabled; if present, must be a boolean. The alternate spelling ‘backchanneling’ is also accepted.
is_activebooleanNo—Whether the agent is active; if present, must be a boolean.
webhookbooleanNo—Whether an outbound webhook is enabled; if present, must be a boolean. When set to true, ‘webhook_url’ is required.
webhook_urlstringNo—The outbound webhook URL; if present, must be a string. Required when setting webhook=true.
recordingbooleanNo—Whether call recording is enabled; if present, must be a boolean.

Request body

{
  "name": "Front Desk Assistant (v2)",
  "temperature": 0.6,
  "is_active": false
}

Example

curl -X PATCH "https://api.centerfy.ai/webhooks/inbound/agents/{id}" \
  -H "x-api-key: $CENTERFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Front Desk Assistant (v2)",
  "temperature": 0.6,
  "is_active": false
}'
import { CenterfyClient } from "@centerfy/sdk";

const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });

const result = await centerfy.agents.update("<agentId>", {
  "name": "Front Desk Assistant (v2)",
  "temperature": 0.6,
  "is_active": false
});
console.log(result);
centerfy agents update <agentId> '{"name":"Front Desk Assistant (v2)","temperature":0.6,"is_active":false}'

MCP tool: centerfy_agents_update (see MCP server)

Response

{
  "status": "success",
  "agent": {
    "id": "<agent_id>",
    "name": "Front Desk Assistant (v2)",
    "is_active": false,
    "updated_at": "2026-06-12T10:25:00.000Z"
  }
}

Notes

Partial update — every field is optional, but the body must contain at least one updatable field. Sending one field never wipes the rest; existing configuration is preserved for fields you omit. Errors: 400 (invalid agent id / validation failure / empty body), 401 (unauthenticated), 404 (agent not found), 500 (server error). Success is 200.

© 2026 Centerfy AI. All rights reserved.