Skip to main content
PATCH
Edit my last message

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.

Path Parameters

message_id
string<uuid>
required

Body

application/merge-patch+json

JSON Merge Patch (RFC 7396).

body
string
required
Required string length: 1 - 4000
Example:

"Nausea is better today. Can I swap tonight's dinner?"

Response

The edited message.

id
string<uuid>
required
Example:

"0190f5c4-2e3f-7a41-9b56-7c8d9e0f1a23"

conversation_id
string<uuid>
required
Example:

"0190f5c4-1d2e-7f30-8a45-6b7c8d9e0f12"

sender
object
required
body
string
required

Empty when the message was deleted.

Example:

"Great job on your protein yesterday. How is the nausea today?"

created_at
string<date-time>
required

ISO 8601 in UTC.

Example:

"2026-10-26T14:05:00Z"

deleted
boolean
required
Example:

false

reactions
object[]
required
edited_at
string<date-time> | null
Example:

null

seen_by_other_side
boolean

True when the other side has read up to this message.

Example:

true

attachment
object | null

A protocol card, a notice in the thread, or a photo the patient sent their coach.

feedback
object | null

The patient's rating, on the AI Coach's messages only.