{"id":2075,"date":"2026-11-24T19:20:06","date_gmt":"2026-11-24T19:20:06","guid":{"rendered":"https:\/\/vectalk.com.br\/blog\/send-pdf-document-whatsapp-api\/"},"modified":"2026-11-24T19:20:16","modified_gmt":"2026-11-24T19:20:16","slug":"send-pdf-document-whatsapp-api","status":"publish","type":"post","link":"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/","title":{"rendered":"How to send PDFs and documents via the WhatsApp API (with a file name)"},"content":{"rendered":"\n<p><em>Updated on November 24, 2026<\/em><\/p>\n\n\n\n<p>To send a PDF via the WhatsApp API, make a <code>POST \/&lt;PHONE_NUMBER_ID&gt;\/messages<\/code> request with <code>\"type\": \"document\"<\/code> and, inside the <code>document<\/code> object, either the <code>id<\/code> of previously uploaded media or a public <code>link<\/code>, plus a <code>filename<\/code> field with the name and extension the customer will see (for example, <code>invoice-order-4821.pdf<\/code>). Meta accepts PDF, TXT, Word, Excel and PowerPoint files up to 100 MB, with an optional caption of up to 1,024 characters.<\/p>\n\n\n\n<p>This guide goes deeper than our general article on <a href=\"https:\/\/vectalk.com.br\/blog\/en\/send-media-whatsapp-api\/\">sending images, PDFs, audio and video via the WhatsApp API<\/a>: how the file name is displayed, which MIME types to use, when to choose a link or a media_id, and how Brazilian companies send payment slips and invoices as PDFs without getting category, cost or privacy wrong.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The minimal document payload<\/h2>\n\n\n\n<p>Inside the 24-hour window opened by the customer, a document is a free-form message. The JSON below uses a file already uploaded to the media endpoint:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-json\">{\n  \"messaging_product\": \"whatsapp\",\n  \"recipient_type\": \"individual\",\n  \"to\": \"5584999999999\",\n  \"type\": \"document\",\n  \"document\": {\n    \"id\": \"1037543291543636\",\n    \"filename\": \"invoice-order-4821.pdf\",\n    \"caption\": \"Here is the invoice for order #4821, due on Nov 28.\"\n  }\n}<\/code><\/pre>\n\n\n\n<p>The fields of the <code>document<\/code> object, according to the <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/document-messages\" target=\"_blank\" rel=\"noreferrer noopener\">document messages documentation<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Field<\/th><th>Required<\/th><th>What it does<\/th><\/tr><\/thead><tbody><tr><td><code>id<\/code><\/td><td>One of the two<\/td><td>ID of the media uploaded to the <code>\/media<\/code> endpoint (recommended)<\/td><\/tr><tr><td><code>link<\/code><\/td><td>One of the two<\/td><td>HTTPS URL where the file is hosted (Meta marks it as &#8220;not recommended&#8221;)<\/td><\/tr><tr><td><code>filename<\/code><\/td><td>No<\/td><td>File name <strong>with extension<\/strong>. The app uses the extension to pick the icon<\/td><\/tr><tr><td><code>caption<\/code><\/td><td>No<\/td><td>Text under the document, up to 1,024 characters<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Use <code>id<\/code> <strong>or<\/strong> <code>link<\/code>, never both. The response returns the message <code>wamid<\/code>; delivery, read and failure events arrive later through the status webhook.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The file name: why <code>filename<\/code> matters<\/h2>\n\n\n\n<p>Without <code>filename<\/code>, the customer gets a document with a generic name that is hard to find later in the chat or in the downloads folder. With it, the file shows the name you chose and the right icon, because WhatsApp reads the extension.<\/p>\n\n\n\n<p>Good practices for generating the name:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Always include the extension.<\/strong> <code>invoice-1520.pdf<\/code>, not <code>invoice-1520<\/code>. The docs ask for the &#8220;filename, with extension&#8221;.<\/li>\n\n\n<li><strong>Make the extension match the real file.<\/strong> A <code>.pdf<\/code> that is actually HTML (an error page from your server) will fail or open incorrectly.<\/li>\n\n\n<li><strong>Use an identifier that helps the customer.<\/strong> Order number, invoice number or billing month: <code>statement-2026-11.pdf<\/code>.<\/li>\n\n\n<li><strong>Keep sensitive data out of the name.<\/strong> Avoid tax IDs, full names or amounts in <code>filename<\/code>. The name is visible in notifications and file lists.<\/li>\n\n\n<li><strong>Avoid accents and spaces.<\/strong> This is not a documented requirement, but it prevents encoding issues in other systems that handle the file later.<\/li>\n\n<\/ul>\n\n\n\n<p>A simple Node.js function to build the name:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-js\">function fileName(prefix, reference, extension = 'pdf') {\n  const base = `${prefix}-${reference}`\n    .normalize('NFD')\n    .replace(\/[\u0300-\u036f]\/g, '')\n    .toLowerCase()\n    .replace(\/[^a-z0-9-]+\/g, '-')\n    .replace(\/-+\/g, '-')\n    .replace(\/^-|-$\/g, '');\n  return `${base}.${extension}`;\n}\n\nconsole.log(fileName('Invoice order', 4821)); \/\/ invoice-order-4821.pdf<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Supported document types and MIME types<\/h2>\n\n\n\n<p>The <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/business-phone-numbers\/media\" target=\"_blank\" rel=\"noreferrer noopener\">Cloud API media page<\/a> lists the supported documents, all with a 100 MB limit:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Format<\/th><th>Extension<\/th><th>MIME type<\/th><\/tr><\/thead><tbody><tr><td>PDF<\/td><td><code>.pdf<\/code><\/td><td><code>application\/pdf<\/code><\/td><\/tr><tr><td>Text<\/td><td><code>.txt<\/code><\/td><td><code>text\/plain<\/code><\/td><\/tr><tr><td>Word<\/td><td><code>.doc<\/code><\/td><td><code>application\/msword<\/code><\/td><\/tr><tr><td>Word<\/td><td><code>.docx<\/code><\/td><td><code>application\/vnd.openxmlformats-officedocument.wordprocessingml.document<\/code><\/td><\/tr><tr><td>Excel<\/td><td><code>.xls<\/code><\/td><td><code>application\/vnd.ms-excel<\/code><\/td><\/tr><tr><td>Excel<\/td><td><code>.xlsx<\/code><\/td><td><code>application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet<\/code><\/td><\/tr><tr><td>PowerPoint<\/td><td><code>.ppt<\/code><\/td><td><code>application\/vnd.ms-powerpoint<\/code><\/td><\/tr><tr><td>PowerPoint<\/td><td><code>.pptx<\/code><\/td><td><code>application\/vnd.openxmlformats-officedocument.presentationml.presentation<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Meta warns that other file types may be sent via the API, but they are not supported and may not be handled as expected. If you need to send a CSV, an invoice XML or a ZIP, test with an internal number first and consider converting it (CSV to XLSX, for example) or putting a download link in the text.<\/p>\n\n\n\n<p>When uploading, the <code>type<\/code> field must be the MIME type from the table, and it has to match the actual content. A mismatched MIME type is a common cause of error <code>131053<\/code> (&#8220;Unable to upload the media used in the message&#8221;). On Linux or macOS, <code>file -I file.pdf<\/code> shows the real type. More troubleshooting in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-error-131053-media-upload\/\">WhatsApp API error 131053<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Link or media_id: how to decide<\/h2>\n\n\n\n<p>Meta recommends <code>id<\/code> (prior upload) and labels <code>link<\/code> as not recommended. That doesn&#8217;t forbid links, but it changes the risk: with <code>link<\/code>, the send depends on your server delivering the file at the moment Meta fetches it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Situation<\/th><th>Best option<\/th><th>Why<\/th><\/tr><\/thead><tbody><tr><td>Same PDF for many customers (catalog, price list, standard contract)<\/td><td>Upload once and reuse the <code>id<\/code><\/td><td>The file is already at Meta; the ID is valid for 30 days<\/td><\/tr><tr><td>One file per customer (payment slip, invoice, lab report)<\/td><td>Upload right before sending<\/td><td>The file is never exposed at a public URL<\/td><\/tr><tr><td>One file per customer, without uploading<\/td><td><code>link<\/code> with a signed, short-lived URL<\/td><td>Shrinks the window in which the document is reachable<\/td><\/tr><tr><td>File generated on demand by a slow service<\/td><td>Upload once the PDF is ready<\/td><td>Avoids timeouts while Meta tries to download it<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>An uploaded media ID expires after 30 days. If you reuse files, store the upload date and renew before then. Details in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/\">WhatsApp media ID expiration and reuse<\/a>.<\/p>\n\n\n\n<p>The upload is a <code>multipart\/form-data<\/code> request to <code>POST \/&lt;PHONE_NUMBER_ID&gt;\/media<\/code> with <code>file<\/code>, <code>type<\/code> (<code>application\/pdf<\/code>) and <code>messaging_product=whatsapp<\/code>; the response returns the <code>id<\/code> that goes into <code>document.id<\/code>. Upload examples in cURL, Node.js and Python are in the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/send-media-whatsapp-api\/\">media sending guide<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Payment slips and invoices as PDF: the Brazilian context<\/h2>\n\n\n\n<p>In Brazil, two documents dominate this kind of message:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Boleto banc\u00e1rio:<\/strong> a bank payment slip with a barcode that the customer pays at a bank, in a banking app or at lottery outlets. Many companies also offer <strong>PIX<\/strong>, the Central Bank&#8217;s instant payment system, as an alternative.<\/li>\n\n\n<li><strong>Nota fiscal eletr\u00f4nica (NF-e):<\/strong> the electronic tax invoice for the sale. Customers usually receive the <strong>DANFE<\/strong>, the PDF representation of that invoice.<\/li>\n\n<\/ul>\n\n\n\n<p>The same logic applies to invoices and statements anywhere. Three rules to get it right:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Inside the 24-hour window<\/strong> (the customer messaged you in the last 24 hours), the PDF goes as a free-form message, as shown above. Since October 1, 2026, each number gets 1,000 free service messages per month, and billing starts at the 1,001st.<\/li>\n\n\n<li><strong>Outside the window<\/strong>, templates only. To send the slip or invoice to someone who hasn&#8217;t messaged you, create a template with a <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-template-video-document-header\/\">document header<\/a>. A reminder about the <strong>customer&#8217;s own<\/strong> bill or invoice is a utility message: for Brazilian recipients, BRL 0.0350 per delivered message since October 1, 2026. Also since October 1, 2026, utility templates sent inside the customer service window are charged.<\/li>\n\n\n<li><strong>Collecting third-party debt is prohibited<\/strong> by the WhatsApp Commerce Policy.<\/li>\n\n<\/ol>\n\n\n\n<p>Example of a template with the payment slip in the header (the <code>boleto_disponivel<\/code> template must be approved with a document-type header):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-json\">{\n  \"messaging_product\": \"whatsapp\",\n  \"to\": \"5584999999999\",\n  \"type\": \"template\",\n  \"template\": {\n    \"name\": \"boleto_disponivel\",\n    \"language\": { \"code\": \"pt_BR\" },\n    \"components\": [\n      {\n        \"type\": \"header\",\n        \"parameters\": [\n          {\n            \"type\": \"document\",\n            \"document\": { \"id\": \"1037543291543636\", \"filename\": \"boleto-pedido-4821.pdf\" }\n          }\n        ]\n      },\n      {\n        \"type\": \"body\",\n        \"parameters\": [\n          { \"type\": \"text\", \"text\": \"Maria\" },\n          { \"type\": \"text\", \"text\": \"28\/11\/2026\" }\n        ]\n      }\n    ]\n  }\n}<\/code><\/pre>\n\n\n\n<p>The full component and parameter structure is in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/send-whatsapp-template-message-api\/\">how to send a WhatsApp template message via API<\/a>. For reminder sequences about pending payment slips and PIX, see <a href=\"https:\/\/vectalk.com.br\/blog\/en\/recover-pix-boleto-abandoned-cart-whatsapp\/\">recovering PIX, boleto and abandoned carts<\/a>, and to pull the invoice from an ERP, the Bling + WhatsApp example.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Privacy: documents contain personal data<\/h2>\n\n\n\n<p>Payment slips, invoices, contracts and lab reports carry names, tax IDs (CPF for individuals, CNPJ for companies), addresses and amounts. Brazil&#8217;s General Data Protection Law, the LGPD (<a href=\"https:\/\/www.planalto.gov.br\/ccivil_03\/_ato2015-2018\/2018\/lei\/l13709.htm\" target=\"_blank\" rel=\"noreferrer noopener\">Law 13,709\/2018<\/a>), requires, among other principles, that data processing have a defined purpose, be limited to what is necessary and come with security measures. In practice, when sending PDFs:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Confirm the destination number belongs to the data subject before sending the document.<\/li>\n\n\n<li>Prefer uploads over permanent public URLs. If you use <code>link<\/code>, use a signed URL with a short expiration.<\/li>\n\n\n<li>Don&#8217;t put personal data in <code>filename<\/code> or <code>caption<\/code> beyond what is necessary.<\/li>\n\n\n<li>Delete PDFs generated only for sending from your temporary storage, according to your retention policy.<\/li>\n\n<\/ul>\n\n\n\n<p>This is a general explanation of the law and does not replace advice from a lawyer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors when sending documents<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Likely cause<\/th><th>What to do<\/th><\/tr><\/thead><tbody><tr><td>Error <code>131053<\/code><\/td><td>Declared MIME type differs from content, or unsupported type<\/td><td>Check with <code>file -I<\/code> and use a type from the table<\/td><\/tr><tr><td>File arrives with a generic name<\/td><td>Missing <code>filename<\/code><\/td><td>Always send <code>filename<\/code> with an extension<\/td><\/tr><tr><td>Wrong icon in the app<\/td><td><code>filename<\/code> extension doesn&#8217;t match the file<\/td><td>Fix the extension to match the real type<\/td><\/tr><tr><td>Sending by <code>link<\/code> fails<\/td><td>URL requires login, expired or returns an HTML page<\/td><td>Test the URL from outside your network or upload it<\/td><\/tr><tr><td>Sending by <code>id<\/code> fails<\/td><td>ID older than 30 days or from another number<\/td><td>Upload again from the same number<\/td><\/tr><tr><td>Error <code>131047<\/code><\/td><td>More than 24 hours since the customer&#8217;s last message<\/td><td>Send a template with a document header<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to do it with Vectalk<\/h2>\n\n\n\n<p>With Vectalk, the document JSON is the same as in the Cloud API. Only the base URL and the token change:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Send:<\/strong> <code>POST https:\/\/apis.vectalk.com.br\/api\/messages<\/code> with <code>type: \"document\"<\/code> and <code>document.link<\/code> or <code>document.id<\/code>, plus <code>filename<\/code> and an optional <code>caption<\/code>.<\/li>\n\n\n<li><strong>Upload:<\/strong> <code>POST https:\/\/apis.vectalk.com.br\/api\/media<\/code> as <code>multipart\/form-data<\/code> with <code>file<\/code>, <code>type<\/code> and <code>messaging_product<\/code>, using an instance token. The response returns the <code>id<\/code> to use in <code>document.id<\/code>.<\/li>\n\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-bash\">curl -X POST https:\/\/apis.vectalk.com.br\/api\/messages \\\n  -H \"Authorization: Bearer $VECTALK_TOKEN\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\n    \"messaging_product\": \"whatsapp\",\n    \"to\": \"5584999999999\",\n    \"type\": \"document\",\n    \"document\": {\n      \"link\": \"https:\/\/files.yourcompany.com\/invoices\/1520.pdf\",\n      \"filename\": \"invoice-1520.pdf\",\n      \"caption\": \"Your invoice for order #4821\"\n    }\n  }'<\/code><\/pre>\n\n\n\n<p>The routes are documented under <a href=\"https:\/\/docs.vectalk.com.br\/api-reference\/messages\/send-document\">Send document<\/a> and <a href=\"https:\/\/docs.vectalk.com.br\/api-reference\/media\/upload\">Media upload<\/a>. Each delivered message is deducted from the platform&#8217;s prepaid balance, with no credit card registered with Meta. For the big picture, read the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/official-whatsapp-api\/\">official WhatsApp API<\/a> guide and create your account at <a href=\"https:\/\/apps.vectalk.com.br\/register\">apps.vectalk.com.br\/register<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is the maximum PDF size on the WhatsApp API?<\/h3>\n\n\n\n<p>100 MB, the same limit as every supported document: PDF, TXT, Word, Excel and PowerPoint.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is the filename field required?<\/h3>\n\n\n\n<p>No, but it is recommended. Without it, the customer sees a generic name. With it, the file shows the right name and icon, because the app uses the extension to pick the icon.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I send a PDF to a customer who hasn&#8217;t messaged me in days?<\/h3>\n\n\n\n<p>Only with an approved template that has a document header. A free-form document message requires the 24-hour window opened by the customer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I send CSV, XML or ZIP files?<\/h3>\n\n\n\n<p>The API may accept other types, but Meta says they are not supported and may not be displayed as expected. Test first or convert to a format from the table.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does sending a PDF cost more than sending text?<\/h3>\n\n\n\n<p>No. Meta charges per delivered message based on category, not content type. Inside the window, a PDF is a service message; outside it, you pay for the template (utility, for the customer&#8217;s own bill or invoice).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Official sources consulted on November 24, 2026:<\/strong> <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/document-messages\" target=\"_blank\" rel=\"noreferrer noopener\">Document messages<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/business-phone-numbers\/media\" target=\"_blank\" rel=\"noreferrer noopener\">Media (Cloud API)<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/support\/error-codes\" target=\"_blank\" rel=\"noreferrer noopener\">Error codes<\/a>, <a href=\"https:\/\/www.planalto.gov.br\/ccivil_03\/_ato2015-2018\/2018\/lei\/l13709.htm\" target=\"_blank\" rel=\"noreferrer noopener\">Law 13,709\/2018 (LGPD)<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/api-reference\/messages\/send-document\">Vectalk: send document<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/api-reference\/media\/upload\">Vectalk: media upload<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ready-to-use JSON to send a PDF, spreadsheet or document via the WhatsApp Business API with the right file name, caption, supported types and invoice examples.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-2075","post","type-post","status-publish","format-standard","hentry","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Send PDF via WhatsApp API with a file name | Vectalk<\/title>\n<meta name=\"description\" content=\"How to send a PDF via the WhatsApp API: filename, caption, supported MIME types, 100 MB limit, link vs media_id, and invoices or payment slips as PDF.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Send PDF via WhatsApp API with a file name | Vectalk\" \/>\n<meta property=\"og:description\" content=\"How to send a PDF via the WhatsApp API: filename, caption, supported MIME types, 100 MB limit, link vs media_id, and invoices or payment slips as PDF.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Vectalk\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-24T19:20:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-24T19:20:16+00:00\" \/>\n<meta name=\"author\" content=\"wanderleyfcunha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"wanderleyfcunha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/send-pdf-document-whatsapp-api\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/send-pdf-document-whatsapp-api\\\/\"},\"author\":{\"name\":\"wanderleyfcunha\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"headline\":\"How to send PDFs and documents via the WhatsApp API (with a file name)\",\"datePublished\":\"2026-11-24T19:20:06+00:00\",\"dateModified\":\"2026-11-24T19:20:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/send-pdf-document-whatsapp-api\\\/\"},\"wordCount\":1572,\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/send-pdf-document-whatsapp-api\\\/\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/send-pdf-document-whatsapp-api\\\/\",\"name\":\"Send PDF via WhatsApp API with a file name | Vectalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-24T19:20:06+00:00\",\"dateModified\":\"2026-11-24T19:20:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"description\":\"How to send a PDF via the WhatsApp API: filename, caption, supported MIME types, 100 MB limit, link vs media_id, and invoices or payment slips as PDF.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/send-pdf-document-whatsapp-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/send-pdf-document-whatsapp-api\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/send-pdf-document-whatsapp-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to send PDFs and documents via the WhatsApp API (with a file name)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\",\"name\":\"Blog Vectalk\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\",\"name\":\"wanderleyfcunha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"caption\":\"wanderleyfcunha\"},\"sameAs\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Send PDF via WhatsApp API with a file name | Vectalk","description":"How to send a PDF via the WhatsApp API: filename, caption, supported MIME types, 100 MB limit, link vs media_id, and invoices or payment slips as PDF.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/","og_locale":"en_US","og_type":"article","og_title":"Send PDF via WhatsApp API with a file name | Vectalk","og_description":"How to send a PDF via the WhatsApp API: filename, caption, supported MIME types, 100 MB limit, link vs media_id, and invoices or payment slips as PDF.","og_url":"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/","og_site_name":"Blog Vectalk","article_published_time":"2026-11-24T19:20:06+00:00","article_modified_time":"2026-11-24T19:20:16+00:00","author":"wanderleyfcunha","twitter_card":"summary_large_image","twitter_misc":{"Written by":"wanderleyfcunha","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/#article","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/"},"author":{"name":"wanderleyfcunha","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"headline":"How to send PDFs and documents via the WhatsApp API (with a file name)","datePublished":"2026-11-24T19:20:06+00:00","dateModified":"2026-11-24T19:20:16+00:00","mainEntityOfPage":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/"},"wordCount":1572,"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/","url":"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/","name":"Send PDF via WhatsApp API with a file name | Vectalk","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/#website"},"datePublished":"2026-11-24T19:20:06+00:00","dateModified":"2026-11-24T19:20:16+00:00","author":{"@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"description":"How to send a PDF via the WhatsApp API: filename, caption, supported MIME types, 100 MB limit, link vs media_id, and invoices or payment slips as PDF.","breadcrumb":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vectalk.com.br\/blog\/en\/send-pdf-document-whatsapp-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vectalk.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"How to send PDFs and documents via the WhatsApp API (with a file name)"}]},{"@type":"WebSite","@id":"https:\/\/vectalk.com.br\/blog\/#website","url":"https:\/\/vectalk.com.br\/blog\/","name":"Blog Vectalk","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vectalk.com.br\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b","name":"wanderleyfcunha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","caption":"wanderleyfcunha"},"sameAs":["https:\/\/vectalk.com.br\/blog"]}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/2075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/comments?post=2075"}],"version-history":[{"count":1,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/2075\/revisions"}],"predecessor-version":[{"id":2078,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/2075\/revisions\/2078"}],"wp:attachment":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/media?parent=2075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/categories?post=2075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/tags?post=2075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}