post
https://public.doubletick.io/whatsapp/message/document
Sends a document message to a customer or WhatsApp group from a URL you provide.
Before you call
- Send
toas the customer's phone number with country code (e.g.+919999999999), orcustomerIdfor a customer without a phone number. fromis optional: your connected WhatsApp number with country code. If omitted, a connected number of your organisation is used.- To send to a WhatsApp group, pass its
groupIdinstead, and leave outfromandto. content.mediaUrlis required: a valid URL, up to 2048 characters. DoubleTick reads the file's content type from this URL, so it must be publicly reachable.content.captionis optional, up to 3000 characters.content.filenameis optional, up to 240 characters. It is the file name the customer sees.messageIdis optional. If you send it, it must be a UUID v4. If you don't, DoubleTick generates one.
How it works
- The message is queued for sending. The response contains
recipient,status(SENTorFAILED, witherrorMessage) andmessageId. - Use the
messageIdwith Get Message Status to check delivery and read status. - If no customer exists for
to, DoubleTick creates one and opens a chat for them.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
201
