agent-editor

Agent Editor Chat

Send a message to the agent editor AI. Returns SSE stream.

Auth and workspace scoping are independent here because this endpoint is dual-mode: catalog edits have no workspace, agent edits do.

post/v3/agent-editor/chat

Request

  • Base URL
    https://api.mentium.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Headers

mentium-workspace-idstring nullable

Request body

messagestring required
target_kind'agent' | 'catalog'

Whether editing an agent or a catalog template

draft_idstring nullable

Draft agent ID to continue editing. If None, a new draft is created.

agent_idstring nullable

Existing agent ID to create an edit-draft from.

catalog_entry_idstring nullable

Catalog entry ID when target_kind is 'catalog'.

agent_type'text' | 'phone'

Agent type: 'text' or 'phone'

yaml_contentstring nullable

Current agent.yaml from the frontend. When provided, the editor draft is updated with this content before the AI runs.

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.