---
title: "Create a direct member chat message. Roles: members of common groups (or their dependents), and recipient is primary."
method: POST
path: "/api/chats/members"
tags: ["Chat"]
---

# Create a direct member chat message. Roles: members of common groups (or their dependents), and recipient is primary.

`POST /api/chats/members`

## Request body

- MemberChatMessageRequest
  - `body` string, required
  - `recipientMemberId` integer, required

## Response `200`

OK

- ChatMessageResponseMemberChatMessageCore
  - `success` boolean
  - `error` string
  - `message` MemberChatMessageCore
    - `audit` Audit
      - `createdTime` string, date-time
      - `modifiedTime` string, date-time
      - `modifiedBy` string
    - `chatMessageId` integer
    - `body` string
    - `senderMemberId` integer
    - `sendTime` string, date-time
    - `deletedTime` string, date-time
    - `deletedBy` string
    - `recipientMemberId` integer

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

---

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