# Append session messages

URL: https://docs.clinia.com/api/rest/post-patients-patientId-sessions-sessionId-messages

> Appends user/assistant messages to a session, in order, creating the session if this is its first write, and queues memory formation over them. The returned `ingestion` is the receipt to poll. Tool-call turns are recorded separately by the MCP layer and are not accepted here.

New ids are limited to `[A-Za-z0-9][A-Za-z0-9.~:-]{0,127}`, but you can keep referring to previous ids as they were defined.

Deprecated: use `POST …/ingestions/sessions`, which accepts the same messages under the session's id.

## `POST /v1/patients/{patientId}/sessions/{sessionId}/messages`

Parameters, request body and responses: operation `append-messages` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).