> ## Documentation Index
> Fetch the complete documentation index at: https://developer.omni.z-api.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Reply to message

> Reply to existing messages via WhatsApp

export const ZapiResponseText = ({lang = 'pt'}) => ({
  pt: 'A estrutura de resposta é idêntica à da Z-API. Seu código existente que processa esses retornos continuará funcionando sem alterações.',
  en: 'The response structure is identical to Z-API. Your existing code that processes these returns will continue working without changes.',
  es: 'La estructura de la respuesta es idéntica a la de Z-API. El código que ya tienes para procesar esas respuestas seguirá funcionando sin cambios.'
})[lang];

## Overview

To reply to an existing message, simply include the `messageId` attribute in the body of any send endpoint (text, image, audio, etc). The `messageId` is the ID of the original message you want to reply to.

You can get the `messageId` in two ways:

* **Sent messages** — returned in the API response when sending
* **Received messages** — received via webhook

### Example

Replying to a message with text using the `/send-text` endpoint:

```json theme={null}
{
  "phone": "5511999999999",
  "message": "Thanks for reaching out!",
  "messageId": "3999984263738042930CD6ECDE9VDWSA"
}
```

This works for `/send-image`, `/send-audio`, `/send-video`, `/send-document`, `/send-sticker`, and `/send-contact` as well — just add the `messageId` field.

<Note>
  <ZapiResponseText lang="en" />
</Note>

<Warning>
  The `privateAnswer` attribute (private reply in groups) from Z-API is **not compatible** with the official API and is not available in this version.
</Warning>
