Whatsapp icon integrated with an authentication API, showcased on a green square.

Channel | WhatsApp Business

With more than 2 billion people using WhatsApp around the world to send 60 billion messages every day, the chat app has revolutionized the way we communicate. With an enterprise-grade API, companies can now send notifications and provide customer service through WhatsApp in a secure, reliable, and customer-friendly way.

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.

image_wa_conversation_rounded_borders_attachment_pdf_message_0.35x

How to send a document

curl –XPOST https://api.tyntec.com/conversations/v3/messages\
  -H 'Content-Type: application/json' \
  -H 'apikey: <API KEY>' \
  -d '{
{
    "from" : "{{whatsAppBusinessNumber}}",
    "to" : "{{receiverPhoneNumber}}",
    "channel" : "whatsapp",
    "content" : {
        "contentType" : "document",
        "document" : {
            "url": "https://s1.q4cdn.com/806093406/files/doc_downloads/test.pdf",
            "caption" : "An optional caption",
            "filename" : "An optional filename"
        }
    }
}