Skip to content
VoiceMint Developers

Save Draft

PUT/agents/{agent_id}/draft

Replace the draft with a full config. The live agent is untouched.

Authentication

Authorization: Bearer vm_sk_… with the agents.write permission (or all.write). See Authentication.

Parameters

NameInTypeDescription
agent_id*pathstring

Request body

application/json

FieldTypeDescription
byokobject
call_settingsCallSettings
default_languagestring
descriptionstring
greetingstring
instructionsstring
knowledge_base_idsstring[]
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
promptsobject
statusstring
one of draft, active
tagsstring[]
toolsToolConfig[]
voiceVoiceConfigVoice used when the agent speaks (live voice lands later in Phase 1).

Response

200 application/json

FieldTypeDescription
base_versioninteger
config*AgentConfigEvery editable field of an agent: what a version or a draft holds.
updated_at*string
updated_bystring
{
  "base_version": 0,
  "config": {
    "name": "string"
  },
  "updated_at": "2026-12-05T10:00:00Z",
  "updated_by": "string"
}

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 PUT "https://api.voicemint.io/api/v1/agents/AGENT_ID/draft" \
  -H "Authorization: Bearer $VOICEMINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string"
}'