thread_id in the Create Deployment response). Omit thread_id to use it, or pass "thread_id": "new" to start a fresh conversation with the same agent — memory and the filesystem carry over, the conversation history does not.
Request
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deployment_id | string | Yes | Deployment ID |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
content | string | Yes | The message text |
thread_id | string | No | Thread to post to. Omit for the default thread, or "new" for a fresh thread |
attachments | array | No | Image, video, or audio inputs — see Attachments |
Attachments
Agents accept image and video inputs natively.| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | One of image, video, or audio |
url | string | Yes | Publicly fetchable URL of the file |
Response
Response fields
| Field | Type | Description |
|---|---|---|
run_id | string | Run identifier — events for this run carry it |
thread_id | string | Thread the message was posted to |
status | string | One of running, waiting_on_human, completed, error |
Mid-run messages
Sending a new message while a run is in progress does not corrupt state: the agent treats it as steering input and folds it into the run in flight.Errors
| Status | Error | When |
|---|---|---|
| 400 | validation_error | Invalid JSON request body |
| 401 | unauthorized | Missing or invalid API key |
| 402 | insufficient_credits | The account does not have enough credits |
| 403 | forbidden | API key lacks deployments:write scope |
| 404 | not_found | Deployment or thread does not exist |
| 409 | deployment_not_ready | The deployment is still provisioning |

