Skip to Content
ReferenceAPIMessagesSend a message

Messages API

Send message

Send a message through a patient's channel.

POST/v1/messages
capability messages.send · v1health dataserver-scoped workspace

Request

Path, query, and JSON body fields accepted by this operation.

  • patientIdstring<uuid>
    body
  • channel"patient_app"
    bodydefault "patient_app"
  • bodystringrequired
    bodymin length 1max length 4000

Response

Successful responses use Dawn's data envelope.

  • dataMessagerequired
    • idstring<uuid>required
    • workspaceIdstring<uuid>required
    • patientIdstring<uuid>required
    • channel"patient_app"required
    • senderone of 2 shapesrequired
      • kind"member"required
      • idstring<uuid>required
    • bodystringrequired
      min length 1max length 4000
    • createdAtstring<date-time>required
  • metaobject

Errors

Error responses use the shared error envelope.

  • 403Messaging is disabled or the requested patient is unavailable.
  • 422The message is invalid.
  • 503The message could not be sent.
Last updated on