Skip to content

Run omnibot on one of your conversations

POST
/assistant/conversations/{name}:run
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.

name
required

Your conversation’s name

string

Your conversation’s name

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
context

What the person handed over with the prompt, read as data ahead of it; ignored on a resume

Array<object> | null
<= 20 items
object
description
required

What it is: a kind, or page

string
<= 100 characters
value
required

A name or dotted address, or a route and its query; never a rendered value

string
<= 2000 characters
key
additional properties
any
forwardedProps

An embedded skill to run; ignored on a resume

object
skill

An embedded skill to run, its prompt ahead of the person’s message

object
arguments

The skill’s arguments, by name

object
key
additional properties
string
name
required

The skill, as omniglass mcp skill lists it

string
<= 100 characters
key
additional properties
any
key
additional properties
any
messages

The client’s view of the conversation; only its last user message is read, as the prompt

Array<object> | null
object
content

Text, or an array of parts whose text parts are read

id
string
role
required

Who said it; only the last user message is read

string
key
additional properties
any
resume

The answer to the interrupt the last run ended on

Array<object> | null
object
interruptId
required

The interrupt being answered: the call the run waits on

string
payload

The answer, {“approved”: true} to run the call

status
required

Resolved answers it with the payload; cancelled declines it

string
Allowed values: resolved cancelled
key
additional properties
any
runId

The run’s id, echoed in its events

string
threadId

Ignored: the conversation is the thread

string
key
additional properties
any

OK

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

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"
}