Skip to content

DocumentMessage

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

Fields

  • wabaNumberstringrequired

    Your WhatsApp API number to send from, with country code.

    Example: "919705182126"
  • recipientobjectrequired
    3 properties
    • phoneNumberstringrequired

      The contact's phone number, with country code.

      Example: "919999999999"
    • nameoptionalstring

      Optional display name, saved to the contact if it is new.

      Example: "Raj S"
    • emailoptionalstring

      Optional email, saved to the contact if it is new.

      format: email
  • typeunknownrequired
  • urlstringrequired

    Public URL of the document.

    format: uri
    Example: "https://example.com/document.pdf"
  • filenamestringrequired

    File name shown to the contact.

    Example: "report.pdf"
  • captionoptionalstring
    Example: "Here's the report you requested"
Navigation

Type to search…

↑↓ navigate↵ selectEsc close