# Generate PDFs from Airtable


## No extension, two ways around it

You won't find a **PDFMonkey extension inside Airtable**. We'd rather say it here than have you hunt for it. What we do have are **official integrations with [Zapier](/integrations/zapier/), [Make](/integrations/make/) and [n8n](/integrations/n8n/)**, the tools most Airtable bases are already plugged into. And if a bit of JavaScript doesn't scare you, an Airtable automation script can call our API directly.

A lot of teams run their orders, clients, events or trainings in [Airtable](https://www.airtable.com/). At some point a record reaches a stage, like "Won" or "To invoice", and **somebody has to produce a document from it**. Usually that means copy-pasting into a word processor, and that's the part you can hand over to PDFMonkey: an invoice or quote, a certificate for every attendee, a client report pulling in linked records, a delivery note per order. Images work too (WebP, PNG or JPG), if your template uses the Image output type.

## With Zapier, Make or n8n

1. Design your template in PDFMonkey, with the visual Builder or in code. Name the variables after your Airtable fields, it makes mapping easier later. Publish it.
2. In your automation tool, start from an Airtable trigger, for instance a new or updated record.
3. Add the PDFMonkey **Generate Document** step and map your Airtable fields to your template variables. Line items, like the rows of an invoice, can be sent as a list.
4. Then send the file where it belongs: back into the record as an attachment, to your client by email, or into storage.

![Line items mapped in the PDFMonkey Generate Document action in Zapier: product, quantity, unit price and total for each row](/images/pages/integrations/zapier/zapier-line-items-mapping.webp)

*Here in Zapier: each line item field becomes a column of the table in your document.*

Do step 4 in the same run. **PDFMonkey download links expire after one hour**, so a link saved for later won't work.

Our guides go through the setup step by step: [Zapier](/docs/integrations/zapier/), [Make](/docs/integrations/make/) and [n8n](/docs/integrations/n8n/).

## With an Airtable automation script

If your Airtable plan includes automation scripts, a **Run a script** action can call the [PDFMonkey API](/docs/api/documents/) with `fetch()`. Store your PDFMonkey API key as an Airtable **secret**, add the record ID as an input variable, and adapt the table, field and template names below:

```js
// Airtable automation → "Run a script" action
// Input variable: recordId — Secret: PDFMONKEY_API_KEY
const { recordId } = input.config();
const table = base.getTable('Invoices');
const record = await table.selectRecordAsync(recordId);

const response = await fetch('https://api.pdfmonkey.io/api/v1/documents/sync', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${input.secret('PDFMONKEY_API_KEY')}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    document: {
      document_template_id: 'YOUR_TEMPLATE_ID',
      status: 'pending',
      payload: {
        customerName: record.getCellValueAsString('Customer'),
        total: record.getCellValue('Total'),
      },
      meta: { _filename: `Invoice ${record.getCellValueAsString('Number')}.pdf` },
    },
  }),
});

const body = await response.json();
// Wrong API key, unpublished template…: the API returns errors, not a document
if (!response.ok) {
  throw new Error(JSON.stringify(body.errors ?? body));
}

const { document_card } = body;
if (document_card.status !== 'success') {
  throw new Error(document_card.failure_cause);
}

// Airtable downloads the file and keeps its own copy
await table.updateRecordAsync(recordId, {
  PDF: [{ url: document_card.download_url, filename: document_card.filename }],
});
```

We used the `/sync` endpoint here because it waits for the document and returns it in a single request, which keeps the script short. Airtable scripts have an execution time limit, though. If your documents are heavy, create them with the regular asynchronous endpoint instead and let a [webhook](/docs/generating-documents/webhooks/) tell you when they're ready.

Whichever route you take, you can [create a free PDFMonkey account](https://dashboard.pdfmonkey.io/register) and try it on one record first. And if your base has a setup we didn't think of, tell us about it!

## FAQ

<div class="not-prose my-8 border-t border-taupe-900/20">
    <details class="group border-b border-taupe-900/20" open>
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q1</i>Does PDFMonkey have a native Airtable integration?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>No, there is no PDFMonkey extension inside Airtable. You connect the two through our official integrations for Zapier, Make or n8n, which all have Airtable triggers, or with an Airtable automation script that calls the PDFMonkey REST API.</p>
      </div>
    </details>
    <details class="group border-b border-taupe-900/20" >
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q2</i>Can I attach the generated PDF back to the Airtable record?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>Yes. Write the download URL into an attachment field in the same run, and Airtable downloads the file and keeps its own copy. Do it right away: PDFMonkey download URLs expire after one hour.</p>
      </div>
    </details>
    <details class="group border-b border-taupe-900/20" >
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q3</i>Should I use Zapier, Make or n8n?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>Whichever one you already use. All three have an official PDFMonkey integration and can react to new or updated Airtable records. n8n can also be self-hosted, if that matters to you.</p>
      </div>
    </details>
    <details class="group border-b border-taupe-900/20" >
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q4</i>Is there a free plan?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>Yes. The Free plan includes 20 documents per month, forever, with no credit card required. Every new account also starts with a 30-day trial that includes 300 documents. Paid plans start at €5 per month with Starter (300 documents per month).</p>
      </div>
    </details>
    <details class="group border-b border-taupe-900/20" >
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q5</i>Do I need to know HTML to design my template?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>No. When you create a template, you pick one of two modes: the visual drag-and-drop Builder, or a Code template written in HTML, CSS and Liquid. A template uses one mode or the other, never both. Your Airtable data is sent the same way in both cases.</p>
      </div>
    </details>
    <details class="group border-b border-taupe-900/20" >
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q6</i>Where is my data hosted?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>In the European Union. PDFMonkey&rsquo;s application servers, file storage and rendering engines run in Paris, France, and its database runs in Frankfurt, Germany. A GDPR Data Processing Agreement is available.</p>
      </div>
    </details>
</div>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"No, there is no PDFMonkey extension inside Airtable. You connect the two through our official integrations for Zapier, Make or n8n, which all have Airtable triggers, or with an Airtable automation script that calls the PDFMonkey REST API."},"name":"Does PDFMonkey have a native Airtable integration?"},{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Yes. Write the download URL into an attachment field in the same run, and Airtable downloads the file and keeps its own copy. Do it right away: PDFMonkey download URLs expire after one hour."},"name":"Can I attach the generated PDF back to the Airtable record?"},{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Whichever one you already use. All three have an official PDFMonkey integration and can react to new or updated Airtable records. n8n can also be self-hosted, if that matters to you."},"name":"Should I use Zapier, Make or n8n?"},{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Yes. The Free plan includes 20 documents per month, forever, with no credit card required. Every new account also starts with a 30-day trial that includes 300 documents. Paid plans start at €5 per month with Starter (300 documents per month)."},"name":"Is there a free plan?"},{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"No. When you create a template, you pick one of two modes: the visual drag-and-drop Builder, or a Code template written in HTML, CSS and Liquid. A template uses one mode or the other, never both. Your Airtable data is sent the same way in both cases."},"name":"Do I need to know HTML to design my template?"},{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"In the European Union. PDFMonkey\u0026rsquo;s application servers, file storage and rendering engines run in Paris, France, and its database runs in Frankfurt, Germany. A GDPR Data Processing Agreement is available."},"name":"Where is my data hosted?"}]}</script>


## Other no-code integrations

PDFMonkey also works with [Zapier](/integrations/zapier/), [Make](/integrations/make/), [n8n](/integrations/n8n/), [Bubble](/integrations/bubble/) and [Glide](/integrations/glide/). If your data lives in a spreadsheet instead, have a look at [Google Sheets](/integrations/google-sheets/).
