Baserow
Prerequisites
- A PolyDoc account and API key — sign up for free, no credit card required. The free plan includes 150 PDF conversions per month.
- A Baserow account — sign up for free, or self-host the open-source edition.
Use Case 1: Auto-Generate PDFs on New Rows
Fire a webhook every time a row is created in Baserow, route it through an automation platform, and call PolyDoc to generate a PDF.Baserow webhook (row created) -> Automation tool -> PolyDoc API -> Email/Storage
Set up your table
Open your Baserow database and set up a table with the fields your PDF template expects (e.g. customer_name, invoice_number, total). Add a sample row for testing.
/img/guides/baserow/baserow-uc1-table-setup.pngConfigure a webhook on row creation
Go to your database settings and open Webhooks. Create a new webhook with the event type Row created. Paste the target URL from your automation tool (e.g. a Make or n8n webhook endpoint).
/img/guides/baserow/baserow-uc1-configure-webhook.pngConnect to an automation tool
In your automation platform, create a new scenario/workflow triggered by the webhook. Add a step to parse the incoming Baserow payload and extract the row fields.
/img/guides/baserow/baserow-uc1-automation-tool.pngAdd the PolyDoc API step
Add an HTTP request step that calls PolyDoc:
- URL:
https://api.polydoc.tech/pdf/convert - Method: POST
- Headers:
- Body: JSON mapping the Baserow row fields to your PolyDoc template
/img/guides/baserow/baserow-uc1-polydoc-step.pngDeliver the PDF
Add an output step (email, cloud storage, or Slack) to deliver the PDF. Create a test row in Baserow and verify the full chain fires correctly.
/img/guides/baserow/baserow-uc1-deliver-pdf.pngUse Case 2: Generate PDFs via the Baserow API
Use Baserow's REST API to fetch row data from a script, then call PolyDoc to generate a PDF — no automation platform needed.Script -> Baserow API (fetch row) -> PolyDoc API -> PDF
Get your Baserow API token
In Baserow, go to Settings → API tokens and generate a new token. Grant it read access to the tables you need. Copy the token.
/img/guides/baserow/baserow-uc2-api-token.pngFetch row data via the REST API
From your script (Node.js, Python, etc.), fetch a row using the Baserow REST API:
GET https://api.baserow.io/api/database/rows/table/TABLE_ID/ROW_ID/- Header:
Authorization: Token YOUR_BASEROW_TOKEN
/img/guides/baserow/baserow-uc2-fetch-row.pngCall PolyDoc API with the data
Call the PolyDoc API with the row data mapped to your template fields. Use the same endpoint, headers, and body structure described in Use Case 1.
/img/guides/baserow/baserow-uc2-polydoc-call.pngSave or send the PDF
The API response contains the binary PDF data. Save it to disk, upload it to cloud storage, or attach it to an email — depending on your use case.
/img/guides/baserow/baserow-uc2-save-pdf.png