---
title: "Send a chat message (anonymous)"
method: POST
path: "/public/widget/chat/messages"
tags: ["Widget"]
---

# Send a chat message (anonymous)

`POST /public/widget/chat/messages`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/public/widget/chat/messages`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/public/widget/chat/messages/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- SendChatMessageRequest
  - `sessionId` string, required
  - `clinicId` string, required
  - `content` string, required
  - `clientInfo` WidgetClientInfoDto
    - `name` string, required
    - `email` string, required
    - `phone` string, required
    - `referralSource` string, nullable: "How did you hear about us" (ITE-413), answered by the client at booking. Written to `Client.ReferralSource` — marketing attribution — only when this booking creates the client; an existing client's answer is never overwritten by a later booking. Ignored for returning clients. Free text: usually one of IReadOnlyList&lt;string&gt; ReferralSourceOptions.Presets, but anything is accepted and stored verbatim.

## Response `200`

OK

- WidgetChatMessageDto
  - `id` string
  - `sessionId` string
  - `content` string
  - `from` string
  - `createdAt` string, date-time

## Changes

- **2026-08-26** `a57456aa87b0`: 3 info
  - added the new optional request property `clientInfo/oneOf[#/components/schemas/WidgetClientInfoDto]/referralSource` (media type: application/json)
  - added the new optional request property `clientInfo/oneOf[#/components/schemas/WidgetClientInfoDto]/referralSource` (media type: text/json)
  - added the new optional request property `clientInfo/oneOf[#/components/schemas/WidgetClientInfoDto]/referralSource` (media type: application/*+json)

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/public/widget/chat/messages/post.md)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
