---
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

---

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