Skip to content
VoiceMint Developers

Publish Draft

POST/agents/{agent_id}/publish

Draft -> new version -> live. The draft is removed once published.

Authentication

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

Parameters

NameInTypeDescription
agent_id*pathstring

Request body

application/json

app__services__agents__schemas__PublishRequest

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