Generate PDFs with Airtable
Generate PDFs with Airtable is our core part of our product — the very reason Typeflow.us exists is so you can generate PDFs based on Airtable from Google Docs documents. On this page, we'll dive into the different endpoints you can use to generate PDFs programmatically.
Generate a PDF with Airtable
This endpoint allows you to generate a PDF based on Airtable data from a Google Docs document.
Optional attributes
- Name
flow_id
- Type
- string
- Description
The flow_id is linked to your configuration
- Name
record_id
- Type
- string
- Description
The record_id comes from Airtable and is a record_id from your Airtable table. This record_id must exist or be in your table_id
- Name
table_id
- Type
- string
- Description
The table_id comes from Airtable and is a table_id from your Airtable table. This table_id must exist and your record_id must be in this table_id. Your PDF will be generated on this table_id
Request
curl -G https://app.typeflow.us/api/generate-doc \
-H "Authorization: Bearer {token}" \
-d flow_id="{flow_id}" \
-d record_id="{record_id}" \
-d table_id="{table_id}"
Response
{
"success": "done",
"pdfUrl": "https://rggxnnmlghpybzoqwsso.supabase.co/storage/v1/object/public/pdf/1e96de76-fb1e-404d-899b-9c2c01b352a1/1vHdjiLuxLGqsGZlCYqOFlAo129cyHwRAbqaxyTRV8rY-x.pdf",
"fileNameAirtable": "Users - Invoices Demo <> Lorenzo final template - 08/07/2025",
"fileId": "a6facdd1-8a88-413e-bbdc-e43fdf4c0ecX"
}
Generate Bulk PDFs
This endpoint allows you to generate multiple PDFs based on Airtable data from a Google Docs document.
Required attributes
- Name
flow_id
- Type
- string
- Description
The flow_id is linked to your configuration
- Name
table_id
- Type
- string
- Description
The table_id comes from Airtable and is a table_id from your Airtable table. This table_id must exist and your record_id must be in this table_id. Your PDF will be generated on this table_id
- Name
record_id
- Type
- string
- Description
List of record_id from Airtable. Those record_id must exist or be in your table_id
Request
curl https://app.typeflow.us/api/bulk-generate-doc \
-H "Authorization: Bearer {token}" \
-d 'flow_id'="79b0e417b" \
-d 'table_id'="tab123456789" \
-d 'record_id'="rec123456789,rec123456789,rec123456789"
Response
{
"success": true,
"message": "Processed 3/3 documents successfully",
"results": {
"total": 3,
"processed": 3,
"successful": 3,
"failed": 0,
"details": [
{
"recordId": "rec6c0be5yGcKyNOD",
"processed": true
},
{
"recordId": "recNIlKgV5KAtlaWE",
"processed": true
},
{
"recordId": "recYuXpkVVZOAAtWF",
"processed": true
}
]
}
}