A webhook lets a pipeline talk to a system MakeBox has no dedicated connector for — your own API, an automation tool, another web service — by sending it an HTTP request.
In the connector taxonomy, a webhook endpoint is a Destination: it’s where output goes when it leaves MakeBox for your own system.
A pipeline can call your endpoint in two ways:
- A Webhook Destination sends each rendered document to your endpoint — one request per row.
- The Webhook Events node tells your endpoint how a run is going — started, progressing, finished, failed — without the documents.
Sending documents: the Webhook Destination
Add a Destination node, choose Webhook, and enter a Webhook URL. In a live (Active) run, MakeBox sends an HTTP POST to that URL for every row, carrying the rendered PDF:
{
"delivery_id": "…",
"document_id": "…",
"filename": "INV-001.pdf",
"content_type": "application/pdf",
"encoding": "base64",
"content": "JVBERi0xLjcK…",
"metadata": {
"job_id": "…",
"pipeline_id": "…",
"document_index": 0,
"timestamp": "…"
}
}content is the PDF, base64-encoded — decode it to get the file. Every request carries an X-Webhook-Event: document.delivered header and an X-Webhook-Timestamp header.
Per-row URLs. The URL’s path and query can use placeholders filled from each row, such as https://api.example.com/invoices/{{invoice_id}}. Values are URL-encoded. The host can’t contain placeholders — every row goes to the same server.
Limits and retries.
- PDFs larger than 7 MB aren’t sent; that row is recorded as failed.
- Each attempt waits up to 10 seconds for a response. A failed attempt — an error response, a timeout, or an endpoint that can’t be reached — is retried, up to 3 attempts in all, and a single delivery never takes longer than 20 seconds overall.
delivery_idstays the same across retries, so your endpoint can recognise a repeat.
What the run records. Each row records whether its delivery was sent or failed, the HTTP status, and the number of attempts. A failed delivery doesn’t stop the rest of the run, and it isn’t retried after the run.
Test runs don’t send. In a test run, the node shows where the document would go — the host and path for the first row — and nothing is posted.
Requests from a Webhook Destination aren’t signed. To make sure only MakeBox can call your endpoint, include a long, hard-to-guess token in the URL path and check it on your side.
Reporting progress: the Webhook Events node
Add a Webhook Events node to a pipeline and MakeBox calls your endpoint as each run moves along. The node has three settings:
- Webhook URL — where to send the notifications.
- Events — which moments to report. Job Completed and Job Failed are on by default.
- HMAC Secret — optional; lets your endpoint check that a request really came from MakeBox.
| Event | Sent when |
|---|---|
| Job Started / Job Progress / Job Completed / Job Failed | A job starts, makes progress, finishes, or fails |
| Batch Started / Batch Progress / Batch Completed / Batch Failed | The same moments for a batch of documents |
Progress events are throttled, so a long run sends a steady trickle rather than one request per document.
The request MakeBox sends
Each notification is an HTTP POST with a JSON body:
{
"event": "job.completed",
"timestamp": "…",
"job_id": "…",
"pipeline_id": "…",
"data": {
"status": "completed",
"progress_percentage": 100,
"completed_count": 42,
"failed_count": 0,
"total_documents": 42
}
}data describes the job — its status and how many documents succeeded or failed. The notification doesn’t include the PDF itself; to receive the documents, add a Webhook Destination as well, or have your system fetch them from wherever the pipeline saved them.
Every request carries an X-Webhook-Event header naming the event and an X-Webhook-Timestamp header.
Signed requests
If you set an HMAC Secret, each request also carries an X-Webhook-Signature header of the form sha256=<hex digest> — an HMAC-SHA256 of the raw request body, exactly as received, keyed with your secret. Your endpoint recomputes the HMAC over the body bytes before parsing the JSON — re-serialising the parsed JSON can change the bytes and break the match — and rejects any request whose signature doesn’t match. A match proves the request came from MakeBox and wasn’t altered on the way.
Timeouts and retries
- Success — any
2xxresponse. - Timeout — each attempt waits up to 30 seconds for a response.
- Retries — if an attempt fails — an error response, a timeout, or an endpoint that can’t be reached — MakeBox tries again, up to 3 attempts in all, waiting longer before each one (1 second, then 2).
- After the last attempt — the notification is kept as a failed delivery so it can be retried later, rather than silently dropped.
Because of retries, your endpoint can occasionally receive the same event twice. Use job_id together with event to recognise a repeat.
To start a pipeline when another system calls MakeBox, use a webhook trigger — see Trigger node.
Target URL rules
These apply to both the Webhook Destination and the Webhook Events node. For safety, MakeBox refuses to call addresses that point at private or internal networks, and it doesn’t follow redirects — the URL you configure must answer the request itself. Use a public HTTPS endpoint.
See also
- What is a connector — Destination vs Channel, and what’s live today
- What is a pipeline? — triggers vs outputs
- Slack — notifying people rather than systems