---
title: "Send Whatsapp Document Message"
method: POST
path: "/whatsapp/message/document"
tags: ["Outgoing Messages"]
---

# Send Whatsapp Document Message

`POST /whatsapp/message/document`

Send Whatsapp Document Message

## Request body

- SendWhatsappDocumentMessageDto
  - `from` string, phone — The phone number from which the message is sent, with the country code.
  - `to` string, phone — The phone number to which the message is sent, with the country code. Required when not using groupId.
  - `groupId` string — The unique identifier of the WhatsApp group to send the message to. Mutually exclusive with "to".
  - `messageId` string — Message ID (UUID v4) to be used for the message. If not provided, a random UUID v4 will be generated
  - `content` SendDocumentMessageContentDto, required
    - `mediaUrl` string, required — URL of the media to be sent
    - `caption` string — Caption for the media
    - `filename` string — The filename of the document

## Response `201`

## Other responses

- `400` — Incorrect payload
- `401` — Unauthorized

---

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