---
title: "Send a message to a coding agent, streaming the reply (SSE)"
method: POST
path: "/api/v0beta1/agent-sessions/stream"
tags: ["AgentSessions"]
---

# Send a message to a coding agent, streaming the reply (SSE)

`POST /api/v0beta1/agent-sessions/stream`

## Request body

- AgentSessionSendRequest
  - `message` string, required
  - `agent` 'claude' | 'codex'
  - `session_id` string
  - `sandbox_id` string
  - `new_session` boolean
  - `repo_url` string

## Response `200`

A `text/event-stream` of the send. Frames are named by the SSE `event:` field: `status`, `delta`, terminal `done` (the full `AgentSessionSendResponse`), or `error`.

## Other responses

- `400` — Error
- `401` — Error
- `403` — Error
- `404` — Error
- `409` — Error

## Changes

> 7 revisions in range; 1 could not be searched.

- **2026-08-26** `7356672619e1` — 1 breaking
  - the `repo_url` request property's minLength was increased from `0` to `1`
- **2026-08-14** `664536fccd0e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/amika/apis/amika-api/changes/api/v0beta1/agent-sessions/stream/post.md)

---

[API](https://skmtc.dev/amika/apis/amika-api.md) · [All operations](https://skmtc.dev/amika/apis/amika-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/amika/amika-api/revisions/b63d287ac419/schema)
