Integration · n8n

Connect DokuScan to n8n.
Workflows that process documents on their own.

A Webhook node receives the extracted data, an HTTP Request node sends documents for processing. Works with n8n Cloud and with self-hosted n8n.

Try for free

API and webhooks included in every purchased scan package

Requirements

Receive results in n8n

1

Create a workflow, add the "Webhook" node and choose the HTTP method POST. For testing, copy the "Test URL" and start "Listen for test event".

2

In DokuScan, create a webhook under "API & Webhooks" with this URL and the event scan.completed, then scan a test document.

3

The data appears in the node under body.data. The extracted fields are under body.data.extracted_data. Add further nodes, for example Google Sheets, a database or email.

4

For permanent operation, activate the workflow and enter the "Production URL" of the node in the DokuScan webhook.

What the message looks like

For every finished scan, DokuScan sends a POST with this JSON body. The structure of extracted_data follows the fields of your template.

{
  "event": "scan.completed",
  "timestamp": "2026-10-18T09:15:21+00:00",
  "data": {
    "scan_id": 4711,
    "filename": "lieferschein.pdf",
    "template_id": 12,
    "status": "completed",
    "confidence": 92,
    "extracted_data": { "lieferant": "Baustoffe Huber GmbH", "rows": [] },
    "validation_errors": [],
    "is_partial": false
  }
}

Send documents from n8n to DokuScan

1

Add the "HTTP Request" node. Method: POST, URL: https://app.dokuscan.com/api/v1/scans

2

Set headers: Authorization with the value Bearer and your API key, and Accept with the value application/json.

3

Send the body as "Form-Data": template_id as a form field, file as "n8n Binary File" with the name of the binary field (usually data).

PDF, JPG and PNG up to 20 MB are accepted. The upload responds immediately with the scan ID, processing runs in the background. The result then arrives via webhook.

Good to know

Self-hosted n8n

DokuScan only sends to publicly reachable HTTPS addresses. HTTP, localhost and internal addresses are rejected.

Process rows individually

Table rows arrive as a list. Use the "Split Out" node to process each row individually.

Verify the signature

Enable the option "Raw Body" in the Webhook node and calculate the HMAC-SHA256 of the raw content with the "Crypto" node. Compare the result with the header X-DokuScan-Signature (after the prefix sha256=).

Frequently asked questions

Is there a DokuScan node for n8n?

Not yet. The connection runs through the Webhook node and the HTTP Request node and therefore through the open interfaces of DokuScan.

Does it work with n8n Cloud and self-hosting?

Yes, as long as the webhook URL is reachable from the internet via HTTPS.

How do I detect failed scans?

Additionally create a webhook for the event scan.failed. The message contains error_message and error_reason.

More integrations

Connect DokuScan and n8n in a few minutes.

10 free scans to try it out. API and webhooks are included in every purchased scan package.

Start for free