Publish agent
Publishes the current draft. The agent is checked as if it were about to take a call and saved as a new revision that is no longer a draft, so ordinary calls can use it again.
if_revision is required and must be the agent’s current revision: the revision of the last response that returned the agent. An archived agent has to be restored first.
Authorizations
Your workspace secret key, sk_live_ followed by 32 hex characters. Create one in the console under Developers.
Path Parameters
The agent's id (agt_…).
Body
x >= 1Response
Published
How the agent takes turns with the caller. Always present; agents saved before this block existed read back with the defaults.
Other languages callers may speak. Speech recognition listens for them as well as the primary language. Optional; the primary language is never repeated here. Always returned; [] when there are none.
4hi, en, gu, mr, bn, ta, te, kn, ml, pa, od Replace the whole analysis block. Omit output_schema to remove structured extraction. Requires enabled=true to run.
Archive to block new calls; false restores availability subject to draft validation. Accepted call snapshots remain unchanged.
off, office The phone number this agent's outbound calls ring from when the call or its campaign does not choose one; null when unset (the Mirai shared line).
Drafts may have empty prompt or greeting, but cannot run calls.
Send call.processed when this agent has post-call tools, analysis or a flow (a flow agent's event carries the call's flow outcome). Set false to turn the event off.
500Present only on a flow agent.
Replace the entire input declaration. Null removes it and restores legacy string variables.
130 <= x <= 1800112000At most 40 tools: 10 pre_call, 20 on_call, 10 post_call. A PATCH replaces the whole list; null empties it. To edit one tool, use PUT/DELETE /v2/agents/{id}/tools/{name}.
40