How to auto-print a PDF from Make
Use Make's HTTP module to POST a PDF to the print-jobs API. No PrintBase Make app is included.
For Make scenarios that should end in a physical printer
Overview
Make (formerly Integromat) scenarios already end in HTTP modules. PrintBase does not provide a Make app. Add an HTTP module that POSTs to /v1/print-jobs with a Bearer token stored in the scenario's connection or a team secret.
Map the PDF as base64 content or as content_url. Make's file bundles are not automatically visible to the print agent. If the file is only inside the scenario, use a module that outputs base64 and put that string in content.
Pass an Idempotency-Key header from the source record id. Scenario reruns are retries. Changing the key is how you print a second copy.
Integration steps
- 01
Produce or download the PDF in the scenario
You need bytes or a public URL before the HTTP module. Use POST /v1/print-jobs with Authorization: Bearer and the printer_code from GET /v1/printers.
- 02
Add the HTTP module
POST https://api.printbase.cloud/v1/print-jobs, header Authorization Bearer, header Idempotency-Key.
- 03
JSON body
printer_code as a number, content_type pdf, content or content_url, copies.
- 04
Store the API key outside the blueprint you email around
Use Make's key store or a restricted connection. Use POST /v1/print-jobs with Authorization: Bearer and the printer_code from GET /v1/printers.
- 05
Parse the job id
Write it back to your table. Poll or stop. 201 is queued, not printed.
curl
# Make HTTP module body for a base64 PDF
curl -X POST 'https://api.printbase.cloud/v1/print-jobs' \
-H "Authorization: Bearer $PRINTBASE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"printer_code": '"$PRINTER_CODE"',
"content_type": "pdf",
"content": "<base64 pdf>",
"copies": 1
}'
Details for this setup
PDF path for a PDF inside a Make scenario
Use content_type pdf and exactly one of content (standard base64) or content_url (an http or https URL the agent can download). A private file must be fetched by your server and sent as base64, or exposed as a short-lived URL. On Windows the agent asks a PDF app to print to the named queue; if none is registered, the failure text names Adobe Reader or SumatraPDF as examples. macOS and Linux use lp.
Same API as a hand-written backend
Make does not get a different endpoint. printer_code, auth, and idempotency behave the same.
Questions
Is there a Make app?
No. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.
Can I print raw labels?
Yes. Change content_type to raw and send base64 printer commands.
The scenario times out.
The POST should return quickly with status queued. Do not loop on the printer inside one module for minutes.
Multiple printers?
Map a router in Make to different printer_code values. The API prints the code you send.
Free plan: 100 jobs a month on one computer, no card.