---
title: "Post Input"
method: POST
path: "/api/agent-chat/sessions/{session_id}/input"
tags: ["Agent Chat"]
---

# Post Input

`POST /api/agent-chat/sessions/{session_id}/input`

Typed user input — message | command | interrupt.

Fire-and-forget at the HTTP layer. The Claude CLI runs in the dramatiq
`agent_chat_turn` actor; the caller consumes the resulting events via
GET /sessions/{id}/stream. Returns 202 on accept.

## Path parameters

- `session_id` string, required

## Cookies

- `ex_access` string, nullable
- `ex_org` string, nullable

## Request body

- union
  - MessageInput
    - `kind` 'message'
    - `text` string, required
    - `client_msg_id` string, nullable
    - `automated` boolean
  - CommandInput
    - `kind` 'command'
    - `command` 'pause' | 'resume' | 'stop', required
    - `step_id` string, nullable
  - InterruptInput
    - `kind` 'interrupt'

## Response `202`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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