Write to draft
Authentication
API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.
Path parameters
Request
Optimistic-concurrency control. The draftRevision the client’s edit was based on. When present, the server runs a field-level conflict check and rejects with 409 DraftConflictError if the same field was changed by another edit since. Omit for last-write-wins semantics (which is also how a client force-overwrites after a 409). Referencing a non-existent base revision returns 409 { errors: ["base_revision_unavailable"] }.
Top-level system prompt shown to the agent every turn.
LLM model powering the agent. See CreateAgentRequest.slmModel for org-level access notes.
IANA timezone identifier used for date/time interpretation in prompts and tool calls.
Knowledge base attached to the agent for retrieval-augmented responses.
TTS (voice) configuration. Same shape as CreateAgentRequest.synthesizer.
Language configuration. Same shape as CreateAgentRequest.language.
Pre-call API webhook config. Same shape as CreateAgentRequest.preCallAPI.
Response
An AgentVersion document. Represents either a committed revision (status: published, with branch + revisionNumber) or an in-progress draft revision (status: draft, with draftId + draftRevision). Fields that do not apply to a given row are null.

