Skip to main content
POST
Stream thread run

Authorizations

x-api-key
string
header
required

Project API key. Create and manage keys in the dashboard under Project → API Keys. Send as header: x-api-key:

Headers

x-end-user-token
string

Optional host-issued identity token for the end user (HMAC/JWT). Used when the agent identity policy requires proof.

x-username
string
default:(project default user)

External user (end user) to act as. Optional — if omitted, Flowra uses the project’s default external user. Send a stable username (e.g. customer_alice) only when you need another end-user context.

Path Parameters

thread_id
string
required

Thread ID

Example:

"b737d8af-a9e0-4251-9714-3fdc1126e5fb"

Body

application/json
input
object
command
object

Run command forwarded as-is (e.g. { "resume": { "decisions": [...] } } for human-in-the-loop). Required when resuming without new messages.

Example:
stream_mode
string[]

Stream modes

Example:
stream_subgraphs
boolean
default:true

Stream subgraphs

Example:

true

stream_resumable
boolean
default:true

Stream resumable

Example:

true

assistant_id
string

Assistant ID

Example:

"flowra-assistant"

on_disconnect
string
default:continue

Action on disconnect

Example:

"continue"

workflowId
string<uuid>

Workflow ID (agent workflow) to use for this conversation

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

model
string

Optional model id override for this run (session-scoped). When set, wins over the agent workflow default model.

Example:

"openai/gpt-4o-mini"

reasoningEffort
enum<string>

Optional reasoning effort override for this run (session-scoped). none disables workflow default reasoning. low|medium|high when the model supports reasoning_effort.

Available options:
none,
low,
medium,
high
Example:

"none"

Response

Operation completed successfully