---
title: "Send a message to a running session"
method: POST
path: "/api/sessions/{sessionId}/messages"
tags: ["Sessions"]
---

# Send a message to a running session

`POST /api/sessions/{sessionId}/messages`

## Request

- Base URL: `https://aximo.autify.com`
- URL: `https://aximo.autify.com/api/sessions/{sessionId}/messages`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/autify/apis/aximo-api/docs/api/sessions/:sessionId/messages/post.ts> (a function with typed inputs; its response is checked against the schema)

Answers a running session, so a caller can complete a `[manual]` step the
agent is waiting on. Poll `GET /api/sessions/{sessionId}` (or the
case-trigger status endpoint): `waitingForUser` stays true until the agent
actually resumes, and never clears for a message the agent's reviewer
rejects. The message is treated exactly like one typed into the chat box.

## Path parameters

- `sessionId` string, uuid, required

## Request body

- object
  - `content` string, required

## Response `201`

Message accepted for the agent to review.

- object
  - `messageId` string, uuid, required
  - `accepted` boolean, required

## Other responses

- `400`: Invalid request body, or the session is not running.
- `401`: Missing or invalid API key.
- `404`: Session not found.
- `429`: Rate limit exceeded — e.g. the daily session limit was reached for the organization, or too many API requests were sent in a short window (retry after the number of seconds in the `Retry-After` header).
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/autify/apis/aximo-api.md) - [All operations](https://skmtc.dev/autify/apis/aximo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/autify/apis/aximo-api/revisions/590722011284?raw)
