> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ryzeapi.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Forward message

> Resends a message to another chat with the forwarded flag

**Auth:** `TokenAccount` or `TokenInstance` • **Rate-limit:** `Global` (100/min) • **Idempotent:** no

Forwards **one message** to **one recipient**. For multiple destinations, make multiple calls.

Supports forwarding of: text, image, video, audio, document, sticker, contact, location.<br />Does not support: reactions, polls, buttons.

## Examples

### To a contact

Forwards the message identified by `messageId` to an individual contact in `to` (phone number or `@s.whatsapp.net` JID). The message arrives at the recipient with the "Forwarded" mark.

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://ryzeapi.cloud/api/chat/forward/$Instance_Name" \
    -H "token: $Token_Instance" \
    -H "Content-Type: application/json" \
    -d '{
      "messageId": "3EB08FCF27E532F1B0F5",
      "to": "5511987654321"
    }'
  ```

  ```javascript JavaScript theme={null}
  await fetch(`https://ryzeapi.cloud/api/chat/forward/${process.env.Instance_Name}`, {
    method: "POST",
    headers: {
      "token":        process.env.Token_Instance,
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      messageId: "3EB08FCF27E532F1B0F5",
      to:        "5511987654321"
    })
  });
  ```

  ```python Python theme={null}
  import os, requests

  requests.post(
      f"https://ryzeapi.cloud/api/chat/forward/{os.environ['Instance_Name']}",
      headers={
          "token":        os.environ["Token_Instance"],
          "Content-Type": "application/json"
      },
      json={
          "messageId": "3EB08FCF27E532F1B0F5",
          "to":        "5511987654321"
      }
  )
  ```

  ```go Go theme={null}
  package main

  import (
      "net/http"
      "os"
      "strings"
  )

  func main() {
      body := strings.NewReader(`{
          "messageId": "3EB08FCF27E532F1B0F5",
          "to": "5511987654321"
      }`)
      req, _ := http.NewRequest("POST", "https://ryzeapi.cloud/api/chat/forward/"+os.Getenv("Instance_Name"), body)
      req.Header.Set("token", os.Getenv("Token_Instance"))
      req.Header.Set("Content-Type", "application/json")
      http.DefaultClient.Do(req)
  }
  ```
</CodeGroup>

### To a group

Same operation, but with `to` pointing to a group JID (`@g.us`). Useful to relay notices or media received in another chat to an entire group at once.

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://ryzeapi.cloud/api/chat/forward/$Instance_Name" \
    -H "token: $Token_Instance" \
    -H "Content-Type: application/json" \
    -d '{
      "messageId": "3EB08FCF27E532F1B0F5",
      "to": "120363406289005073@g.us"
    }'
  ```

  ```javascript JavaScript theme={null}
  await fetch(`https://ryzeapi.cloud/api/chat/forward/${process.env.Instance_Name}`, {
    method: "POST",
    headers: {
      "token":        process.env.Token_Instance,
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      messageId: "3EB08FCF27E532F1B0F5",
      to:        "120363406289005073@g.us"
    })
  });
  ```

  ```python Python theme={null}
  import os, requests

  requests.post(
      f"https://ryzeapi.cloud/api/chat/forward/{os.environ['Instance_Name']}",
      headers={
          "token":        os.environ["Token_Instance"],
          "Content-Type": "application/json"
      },
      json={
          "messageId": "3EB08FCF27E532F1B0F5",
          "to":        "120363406289005073@g.us"
      }
  )
  ```

  ```go Go theme={null}
  package main

  import (
      "net/http"
      "os"
      "strings"
  )

  func main() {
      body := strings.NewReader(`{
          "messageId": "3EB08FCF27E532F1B0F5",
          "to": "120363406289005073@g.us"
      }`)
      req, _ := http.NewRequest("POST", "https://ryzeapi.cloud/api/chat/forward/"+os.Getenv("Instance_Name"), body)
      req.Header.Set("token", os.Getenv("Token_Instance"))
      req.Header.Set("Content-Type", "application/json")
      http.DefaultClient.Do(req)
  }
  ```
</CodeGroup>

## Success response

```json 200 OK theme={null}
{
  "success": true,
  "message": "Message forwarded successfully",
  "messageId": "3EB08FCF27E532F1B0F7",
  "originalId": "3EB08FCF27E532F1B0F5",
  "destinationJid": "5511987654321@s.whatsapp.net"
}
```

| Field            | Description                          |
| ---------------- | ------------------------------------ |
| `messageId`      | **New** ID generated by the forward. |
| `originalId`     | ID of the original message.          |
| `destinationJid` | JID of the recipient.                |

## Path parameters

<ParamField path="instance" type="string" required>
  Instance name.
</ParamField>

## Headers

<ParamField header="token" type="string" required>
  TokenAccount or TokenInstance.
</ParamField>

## Request body

<ParamField body="messageId" type="string" required>
  ID of the original message (must exist in the instance database).
</ParamField>

<ParamField body="to" type="string" required>
  Destination: phone number (`5511...`), private JID (`...@s.whatsapp.net` or `...@lid`), group JID (`@g.us`), or newsletter (`@newsletter`).
</ParamField>

## Notes

<Note>
  * Very old media (>14 days) may have its encrypted bytes expired on WhatsApp servers, in that case the forward fails.
  * The "Forwarded" flag appears naturally for the recipient.
  * The new message is ingested by the events pipeline and triggers `message.exchange` (outgoing) on the webhook/WebSocket.
</Note>

## Error responses

| HTTP | `error.message`                                   | When                            |
| ---- | ------------------------------------------------- | ------------------------------- |
| 400  | `Invalid request body`                            | Malformed JSON.                 |
| 400  | `messageId is required` or `to is required`       | Missing field.                  |
| 401  | `Invalid token`                                   | ,                               |
| 404  | `Instance not found` or `message not found`       | ,                               |
| 500  | `unsupported message type for forwarding: <type>` | Reaction, poll, or interactive. |
| 503  | `Instance is not connected to WhatsApp`           | No active session.              |
