Send a WhatsApp document

Send one document (PDF, spreadsheet and so on) from a public https link to a one-to-one chat on the QR account. Only invoke for explicit user intent. Uses shared send limits; acceptance is not delivery.

post/api/v1/tools/send_document

Request

  • Base URL: https://whatsync.app
  • URL: https://whatsync.app/api/v1/tools/send_document
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Headers

Idempotency-Keystring

Stable key for a write; body idempotencyKey takes precedence.

Request body

idempotencyKeystring required

Unique key for this intended action. Reuse exactly on retries; use a new key only for a new action.

phoneNumberstring required
urlstring uri required
fileNamestring required
mimeTypestring
captionstring

Response

JSON result. Every response includes X-Request-Id.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.