Skip to main content
POST
Message the AI Coach

Authorizations

Authorization
string
header
default:Bearer sandbox_any_token_works
required

A 15-minute token bound to one patient and one enrollment, issued by POST /v1/oauth/token with the token-exchange grant. Treat it as opaque. When it expires, exchange a fresh assertion; there is no refresh token.

Headers

Idempotency-Key
string
required

A unique key per logical request, for example a UUID. Retrying with the same key and the same body within 24 hours returns the first response (with Idempotent-Replayed: true) instead of creating a duplicate. The same key with a different body is refused with 422 idempotency_key_reused.

Required string length: 8 - 255

Path Parameters

conversation_id
string<uuid>
required

Body

application/json
body
string
required
Required string length: 1 - 4000
Example:

"Nausea is better today. Can I swap dinner?"

Response

Message stored; the reply is on its way.

message
object
required
reply
object
required