Skip to main content
Vibe, draft runs, workflow runs and thread watching return application/x-ndjson. Each line is one JSON event; a network chunk can contain part of a line or several lines, so keep an input buffer when decoding.

Start execution

Run input accepts text up to 32,000 characters, up to eight attachments, dry, optional threadId, nullable coordinator and up to 16 connector decisions. Draft execution also requires flow.

Run events

Check the HTTP status before reading the stream. Once streaming has started, an error event can describe a pause or failure inside a successful HTTP response. The terminal event determines the run outcome.

Continue or reconnect

For a pause, call the same run endpoint with the saved threadId and new input or connector decisions. For display reconnection, read the saved thread or open /api/workflows/{id}/threads/{threadId}/watch. The final execution contains output, step traces, itemized bills, compute/service-fee totals, transaction/payment identity and optional proof links. Payment fields explain their units.

Vibe events

Vibe emits status, delta, patch, banner_start, workflow_ready, done and error. Apply patches to the current graph and use the included Flow on the ready/done events. See the Vibe endpoint for the complete patch union.