Skip to content
VoiceMint Developers

Update Agent

PATCH/agents/{agent_id}

Edit the LIVE agent directly (the API clients' path, unchanged). Each successful edit is also recorded as a new version, so history stays complete. The UI uses the draft + publish endpoints instead.

Authentication

Authorization: Bearer vm_sk_… with the agents.write permission (or all.write). See Authentication. SDK: client.agents.update (Python), client.agents.update (Node).

Parameters

NameInTypeDescription
agent_id*pathstring

Request body

application/json

FieldTypeDescription
byokobject
call_settingsCallSettings
default_languagestring
descriptionstring
greetingstring
instructionsstring
knowledge_base_idsstring[]
llmLlmConfig
namestring
promptsobject
statusstring
tagsstring[]
toolsToolConfig[]
voiceVoiceConfig

Response

200 application/json

FieldTypeDescription
byokobject
call_settingsCallSettings
created_at*string
default_languagestring
descriptionstring
greetingstring
id*string
instructionsstring
knowledge_base_idsstring[]
live_versioninteger
llmLlmConfigLLM model configuration. The model is normalised against the catalogue on every validation: legacy ids are remapped to their current replacement, the provider is corrected from the model, and unknown ids are rejected. Because stored documents are re-validated on load, an agent can never run on a retired model even if one was written before this guard existed.
name*string
org_idstring
owner_id*string
phone_numbersstring[]
promptsobject
statusstring
one of draft, active
tagsstring[]
toolsToolConfig[]
updated_at*string
voiceVoiceConfigVoice used when the agent speaks (live voice lands later in Phase 1).
{
  "created_at": "2026-12-05T10:00:00Z",
  "id": "string",
  "name": "string",
  "owner_id": "string",
  "updated_at": "2026-12-05T10:00:00Z"
}

Errors

401Missing, wrong, revoked or expired key.
403The key lacks agents.write, the route is not available to keys, or the key's IP allow-list refuses this client.
402Not enough credits, or the key reached its spending cap.
404Not found for this account.
422The request failed validation; `detail` lists the fields.
429Over a rate limit; retry after `Retry-After` seconds.

All statuses: Errors.

Example

curl -X PATCH "https://api.voicemint.io/api/v1/agents/AGENT_ID" \
  -H "Authorization: Bearer $VOICEMINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'