Uadezap icon

Uadezap

Consume Uadezap API

Message → Send Document

AI-generated

Summary

Send a document via the Uadezap API.

Inputs

  • phoneNumber (required) — WhatsApp number with country code (e.g., 5511999999999) or group ID (e.g., 120363422509947345@g.us).
  • documentUrl (required) — Public URL of the document to send.
  • documentCaption — Optional caption for the document.

Output shape

array

Returns a single-element array containing the API response (or an error object). On success, the element is the raw JSON returned by the Uadezap /send-document endpoint. On failure, the element is { success: false, error: , operation: 'sendDocument', phoneNumber: }.

Examples

Example 1: Send a PDF to a contact

Set phoneNumber to '5511999999999', documentUrl to 'https://example.com/report.pdf', and optionally documentCaption to 'Monthly Report'.

Discussion