---
title: "Create Message"
method: POST
path: "/comms/chat/send-message"
tags: ["provider", "comms"]
---

# Create Message

`POST /comms/chat/send-message`

Create a new message with optional file attachments

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Response `200`

Successful Response

- MessageSummary
  - `id` string, required
  - `messageUid` string, nullable
  - `content` string, nullable
  - `chatId` string, required
  - `status` 'CREATED' | 'QUEUED' | 'SCHEDULED' | 'SENDING' | 'SENT' | 'UNDELIVERED' | 'DELIVERED' | 'READ' | 'FAILED' | 'EXPIRED' | 'OPTED_OUT', required
  - `errorMessage` string, nullable
  - `sendoMessageId` string, nullable
  - `sender` UserTiny, required
    - `id` string, required — The unique identifier for the user.
    - `firstName` string, nullable — The user's first name.
    - `lastName` string, nullable — The user's last name.
    - `phoneNumber` string, nullable — The user's phone number.
    - `email` string, nullable — The user's email address.
    - `type` 'PROVIDER' | 'PATIENT' | 'ASSISTANT', required
    - `locationId` string, nullable — The location of the user.
  - `functionCall` object, nullable
  - `createdDate` string, date-time, required
  - `files` string[], nullable
  - `suggestedMessages` SuggestedMessageSummary[], nullable
    - `id` string, required
    - `chatId` string, required
    - `fromMessageId` string, required
    - `content` string, required
    - `assistantId` string, required
    - `isSelected` boolean, required
    - `createdDate` string, date-time, required
  - `toolCalls` ToolCallSummary[], nullable
    - `id` string, required
    - `callId` string, nullable
    - `messageId` string, nullable
    - `alertId` string, nullable
    - `toolName` string, required
    - `toolArguments` object, required
    - `toolCallId` string, nullable
    - `result` object, nullable
    - `toolCallDescription` string, nullable
    - `hasBeenCalled` boolean
    - `createdDate` string, date-time, required
  - `eventId` string, nullable
  - `type` 'REMINDER' | 'OVERRIDE' | 'FOLLOW_UP' | 'EXPIRED' | 'CONFIRMATION' | 'INTRODUCTORY' | 'CANCELLED' | 'UPDATE'

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) · [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decodahealth/decoda-api/revisions/4939a65a89d2/schema)
