---
title: "Send a text message to an WhatsApp User"
method: POST
path: "/rest/sendMessage/{instance_key}/text"
tags: ["SendMessageController"]
---

# Send a text message to an WhatsApp User

`POST /rest/sendMessage/{instance_key}/text`

Note that while sending to single chat, the id should not contain @s.whatsapp.net. <br>
   However, while sending to groups, the id should end with @g.us <br>

## Path parameters

- `instance_key` string, required

## Request body

- object
  - `messageData` TextMessage
    - `to` string
    - `text` string
    - `linkPreview` boolean

## Response `200`

Success

---

[API](https://skmtc.net/megaapi/apis/documentation-megaapi.md) · [All operations](https://skmtc.net/megaapi/apis/documentation-megaapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/megaapi/documentation-megaapi/versions/09ca1205343e/schema)
