Files & Documents

Learn the specifics of how to send messages with a document on WhatsApp.

Sending documents to customers is easy with WhatsApp. Documents should have names in the form of text, up to 240 characters. If no name is given, WhatsApp will assign one. 

You can send documents in any valid MIME-type, e.g., PDF. Document file sizes can be up to 100MB.

ℹ️ Do you want to send a document as a media message template? Check how to integrate documents in your media message template here.


How to send a document

curl –XPOST\
  -H 'Content-Type: application/json' \
  -H 'apikey: <API KEY>' \
  -d '{
    "from" : "{{whatsAppBusinessNumber}}",
    "to" : "{{receiverPhoneNumber}}",
    "channel" : "whatsapp",
    "content" : {
        "contentType" : "document",
        "document" : {
            "url": "",
            "caption" : "An optional caption",
            "filename" : "An optional filename"