Create a REST API for PDF digital signatures with webhooks
Ready for 3.0What this workflow does
This workflow has 27 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- set file path (Edit Fields (Set)): sets 2 fields: pdfPath, keyPath
- Switch: routes items into 4 branches
- Prepare input params (Edit Fields (Set)): sets 2 fields: fileData, uniqueFileName
- Validate Key Gen Params (Code): runs custom JavaScript code
- Validate PDF Sign Params (Code): runs custom JavaScript code
- set downlowd file info (Edit Fields (Set)): sets 1 field: fullFileName
- Switch: routes items into 2 branches
- Generate Keys (Code): runs custom JavaScript code
- Sign PDF (Code): runs custom JavaScript code
- Read download file from Disk (Read/Write Files from Disk): reads a file from disk
…plus 15 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Convert to File
n8n-nodes-base.convertToFile - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - If
n8n-nodes-base.if - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Overview An automation workflow that creates a complete REST API for digitally signing PDF documents using n8n webhooks. This service demonstrates how to implement secure document signing functionality through standardized API endpoints with file upload and…