Skip to main content
POST
Execute a task and stream

Authorizations

X-API-Key
string
header
default:YOUR_AUTUMN_API_KEY
required

Your Autumn API key.

Path Parameters

task_id
string
required

The task_id returned by POST /task or POST /task/start.

Example:

"8fab6f34"

Body

application/json
message
string | null

Instruction to include with the execution.

input_files
string[] | null

Task-local filenames returned by POST /validate-upload.

wait
boolean
default:false

Wait for the turn to finish (200). Default false: queue and return (202).

Response

Server-sent events: task, tool, text, error, done. A failure after the stream opens is an error event.

The response is of type string.