---
title: "DocumentMessage"
description: "A file from a public URL. Requires an active chat window."
---

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

Path: Zacx Public API

A file from a public URL. Requires an active chat window.

## Fields

- `DocumentMessage.wabaNumber` (string, required) — Your WhatsApp API number to send from, with country code.
  - example `"919705182126"`
- `DocumentMessage.recipient` (object, required)
  - `DocumentMessage.recipient.phoneNumber` (string, required) — The contact's phone number, with country code.
    - example `"919999999999"`
  - `DocumentMessage.recipient.name` (string, optional) — Optional display name, saved to the contact if it is new.
    - example `"Raj S"`
  - `DocumentMessage.recipient.email` (string, optional) — Optional email, saved to the contact if it is new.
    - format `email`
- `DocumentMessage.type` (unknown, required)
- `DocumentMessage.url` (string, required) — Public URL of the document.
  - format `uri`; example `"https://example.com/document.pdf"`
- `DocumentMessage.filename` (string, required) — File name shown to the contact.
  - example `"report.pdf"`
- `DocumentMessage.caption` (string, optional)
  - example `"Here's the report you requested"`


Source: https://zacx.io/api/schemas/DocumentMessage/index.md
