Run omnibot on one of your conversations
const url = 'https://example.com/api/v1/assistant/conversations/example:run';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"context":[{"description":"example","value":"example"}],"forwardedProps":{"skill":{"arguments":{"additionalProperty":"example"},"name":"example"}},"messages":[{"content":"example","id":"example","role":"example"}],"resume":[{"interruptId":"example","payload":"example","status":"resolved"}],"runId":"example","threadId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/assistant/conversations/example:run \ --header 'Content-Type: application/json' \ --data '{ "context": [ { "description": "example", "value": "example" } ], "forwardedProps": { "skill": { "arguments": { "additionalProperty": "example" }, "name": "example" } }, "messages": [ { "content": "example", "id": "example", "role": "example" } ], "resume": [ { "interruptId": "example", "payload": "example", "status": "resolved" } ], "runId": "example", "threadId": "example" }'Runs your prompt (the last user message) as your omnibot, over the stored conversation, and streams the run as AG-UI events (text/event-stream). A call your agent policy asks about ends the run on an interrupt naming it; run again with resume to answer it. A run that reaches its step limit without an answer finishes with the result {“stopped”: “step_limit”, “steps”: N}. The run’s tool calls are audited as omnibot’s, on your behalf. Only you, as yourself, run your conversations: anyone else’s is a 404, and an agent or an impersonation session is a 403. A resume that names no waiting call, a prompt while one waits, or a run while another holds the conversation is a 409. Context entries the person hands over with a prompt (references and the page, at most 20) are framed as data ahead of it. forwardedProps.skill names an embedded skill whose prompt, with its arguments, the run carries out; an unknown skill or a missing argument is a 422. The run talks to the model the assistant settings configure, read as it starts; with none, the server’s recording, if it has one. A recording answers only the prompts it was recorded for: any other question is a 422 (type urn:omniglass:omnibot-replay-unmatched) that touches nothing; the list route names the prompts. A server with no model, or a configured model whose key no longer resolves, is a 503. Gated by assistant:use.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your conversation’s name
Your conversation’s name
Request Bodyrequired
Section titled “ Request Bodyrequired ”object
A URL to the JSON Schema for this object.
What the person handed over with the prompt, read as data ahead of it; ignored on a resume
object
What it is: a kind, or page
A name or dotted address, or a route and its query; never a rendered value
An embedded skill to run; ignored on a resume
object
An embedded skill to run, its prompt ahead of the person’s message
object
The skill’s arguments, by name
object
The skill, as omniglass mcp skill lists it
The client’s view of the conversation; only its last user message is read, as the prompt
object
Text, or an array of parts whose text parts are read
Who said it; only the last user message is read
The answer to the interrupt the last run ended on
object
The interrupt being answered: the call the run waits on
The answer, {“approved”: true} to run the call
Resolved answers it with the payload; cancelled declines it
The run’s id, echoed in its events
Ignored: the conversation is the thread
Responses
Section titled “ Responses ”OK
default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{ "$schema": "/api/v1/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "about:blank"}