---
title: "Send a message in a website chat"
method: POST
path: "/messages/chats/{token}"
tags: ["Website Chat"]
---

# Send a message in a website chat

`POST /messages/chats/{token}`

REQUIRED SCOPES <code>['website-chat:write']</code><br>Add a new message to an existing website chat identified by its token

## Path parameters

- `token` string, required

## Request body

- object
  - `number` string — The phone number of the sender
  - `message` string — The content of the message
  - `name` string — The name of the sender
  - `optedIn` boolean — Whether the sender has opted in
  - `email` string — The email of the sender

## Response `201`

Message sent successfully

- object
  - `message` string

## Other responses

- `400` — Bad request
- `401` — Unauthenticated
- `403` — Forbidden
- `404` — Chat not found
- `500` — Server error

---

[API](https://skmtc.net/salesmessage/apis/salesmessage-public-api.md) · [All operations](https://skmtc.net/salesmessage/apis/salesmessage-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesmessage/salesmessage-public-api/revisions/e96b3e58b041/schema)
