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
| Name | In | Type | Description |
|---|---|---|---|
agent_id* | path | string |
Request body
application/json
| Field | Type | Description |
|---|---|---|
byok | object | |
call_settings | CallSettings | |
default_language | string | |
description | string | |
greeting | string | |
instructions | string | |
knowledge_base_ids | string[] | |
llm | LlmConfig | |
name | string | |
prompts | object | |
status | string | |
tags | string[] | |
tools | ToolConfig[] | |
voice | VoiceConfig |
Response
200 application/json
| Field | Type | Description |
|---|---|---|
byok | object | |
call_settings | CallSettings | |
created_at* | string | |
default_language | string | |
description | string | |
greeting | string | |
id* | string | |
instructions | string | |
knowledge_base_ids | string[] | |
live_version | integer | |
llm | LlmConfig | LLM 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_id | string | |
owner_id* | string | |
phone_numbers | string[] | |
prompts | object | |
status | stringone of draft, active | |
tags | string[] | |
tools | ToolConfig[] | |
updated_at* | string | |
voice | VoiceConfig | Voice 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
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks agents.write, the route is not available to keys, or the key's IP allow-list refuses this client. |
402 | Not enough credits, or the key reached its spending cap. |
404 | Not found for this account. |
422 | The request failed validation; `detail` lists the fields. |
429 | Over 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 '{}'