Platform
Zapier, Make, n8n and Bubble
DevilPDF is a plain JSON API, so it works with any tool that can send an HTTP request. This page has the exact settings for the four most common ones.
Native DevilPDF apps for Zapier and Make are in review with those platforms. Until they are listed, use the built-in HTTP modules described here. They call the same API and do the same thing.
Every setup below makes this one request:
| Setting | Value |
|---|---|
| Method | POST |
| URL | https://devilpdf.com/v1/render |
| Header | Authorization: Bearer dp_live_... |
| Header | Content-Type: application/json |
| Body | { "template": "invoice", "data": { ... } } |
The response is JSON. The field you want in the next step is url, the link to the finished file.
#Zapier
Use the Webhooks by Zapier action (available on paid Zapier plans).
- Add an action step and choose Webhooks by Zapier, event Custom Request.
- Method:
POST. URL:https://devilpdf.com/v1/render. - Data Pass-Through:
False. - Data: your JSON body. Insert fields from earlier steps where the values go.
{
"template": "invoice",
"data": {
"number": "{{invoice_number}}",
"customer": { "name": "{{customer_name}}" },
"items": [{ "name": "{{product}}", "quantity": 1, "unit_price": {{amount}} }]
},
"filename": "invoice-{{invoice_number}}"
}- Headers:
Authorization=Bearer dp_live_...andContent-Type=application/json. - Test the step. Use the
urlfield in later steps: attach it to an email, post it to Slack, save it to Drive.
The double braces above stand for Zapier's field picker. They are filled in by Zapier before the request is sent.
#Make
Use the HTTP → Make a request module.
- URL:
https://devilpdf.com/v1/render. Method:POST. - Headers: add
Authorizationwith the valueBearer dp_live_.... - Body type:
Raw. Content type:JSON (application/json). - Request content: your JSON body, with values mapped from earlier modules.
- Turn on Parse response.
The module outputs the document. Map data.url into the next module.
To work with the file itself rather than a link, add a second HTTP → Get a file module with the URL set to data.url. Its output plugs into Google Drive, Dropbox, email attachments and so on.
#n8n
#Community node
Self-hosted n8n can install the DevilPDF community node.
- Go to Settings → Community Nodes → Install.
- Enter
n8n-nodes-devilpdfand install. - Add a DevilPDF API credential with your API key.
- Add the DevilPDF node to a workflow, pick a template, and map your data.
#HTTP Request node
On n8n Cloud, or if you prefer not to install anything, use the built-in HTTP Request node.
- Method:
POST. URL:https://devilpdf.com/v1/render. - Authentication: Generic Credential Type → Header Auth. Name:
Authorization. Value:Bearer dp_live_.... - Send Body: on. Body Content Type:
JSON. Specify Body:Using JSON.
{
"template": "invoice",
"data": {
"number": "{{ $json.invoice_number }}",
"customer": { "name": "{{ $json.customer_name }}" },
"items": {{ JSON.stringify($json.items) }}
}
}The node outputs the document. Use {{ $json.url }} downstream. To get the binary file into the workflow, add a second HTTP Request node that fetches {{ $json.url }} with Response Format set to File.
#Bubble
Use the API Connector plugin.
- Install API Connector from the plugins tab and add an API named
DevilPDF. - Authentication: Private key in header. Key name:
Authorization. Key value:Bearer dp_live_.... - Add a call named
Render. Use as: Action. Data type: JSON. Method:POST. URL:https://devilpdf.com/v1/render. - Add a shared header
Content-Typewith the valueapplication/json. - Body type: JSON. Put dynamic values in angle brackets so Bubble exposes them as parameters:
{
"template": "invoice",
"data": {
"number": "<invoice_number>",
"customer": { "name": "<customer_name>" },
"items": <items_json>
}
}- Fill in test values and click Initialize call. Bubble reads the response and learns its fields.
In a workflow, add the action Plugins → DevilPDF - Render, fill the parameters from your page, and use Result of step → url to open the PDF or save it to a field.
Keep the key marked private so it stays on Bubble's server. For items_json, build the array as JSON text, for example with a list's :format as text operator.
#Tips for every tool
- Start with the built-in templates.
invoice,quote,receipt,statement,report,packing-slipandcertificatework immediately.GET /v1/templates/invoiceshows the fields each one accepts. - Send numbers as numbers.
"unit_price": 49, not"49", where your tool lets you choose. Text that looks like a number still works in calculations. - Long documents or flaky steps? Add
"async": trueand receive the result with a webhook instead of holding the request open. Zapier, Make and n8n can all receive webhooks as a trigger. - Links expire. Hosted links last from 24 hours to 30 days depending on your plan. If the document needs to live longer, save the file in the same workflow.
- Use a separate API key per tool, so you can revoke one without breaking the others.