Advanced Webhooks are your Swiss Army knife for sending parsed data from Docparser to any HTTP API endpoint.
Once set up, each time a document is parsed, Docparser will automatically send the data to your target URL — instantly, and in your preferred format.
Setting Up an Advanced Webhook
To create or edit an Advanced Webhook:
Open your Inbox and go to Integrations → Webhooks → Advanced Webhook.
Click Add Webhook or select an existing one to edit.
Configure each option as described below.
Name
Give your webhook a clear, descriptive name so you can easily identify it later — for example:Invoice API (Production) or Send Leads to CRM.
HTTP Verb
Choose how Docparser sends data to your target API.
POST – Default. Sends new data to your endpoint.
PUT – Updates existing data.
DELETE – Requests deletion of a resource.
GET – Retrieves data (less common, but supported).
Your selection should match what the receiving API expects.
Target URL
Enter the full URL where your parsed data will be sent, e.g.:https://api.example.com/invoices
You can include dynamic replacement patterns (like {{InvoiceNumber}}) inside the URL to personalize requests based on parsed data.
💡 Tip: If you’re testing, use a free service such as webhook.site to inspect the payload Docparser sends.
Content Type
Defines the format and encoding of your data payload:
Form Data – Sends fields as standard form values.
JSON – Sends structured data as JSON.
XML (encoded) – Sends XML with encoded entities.
XML (CDATA escaped) – Sends XML with CDATA wrapping for text fields.
Your choice also sets the default structure in the Body Template Editor.
Repeating Data Behavior
Controls how Docparser sends tabular or repeating data (like invoice line items):
Once per document (default): All parsed data from one document is sent in a single request.
Once per row: Each table row triggers its own HTTP request — ideal for databases or systems expecting one record per entry.
Additional Headers
Add any custom HTTP headers required by your API.
Each header should be on its own line. Common examples:
Authorization: Basic NTNkOWU1NjZjNzVmNmJmMGY5MmQ5YzJlNThmYWI5ZDVhZDJmYTMxJTo=
User-Agent: Docparser
Use this section for authentication, API versioning, or content negotiation.
Webhook Delay
Choose a delay before the webhook fires after parsing completes.
Useful if your receiving system needs time to prepare for new data.
Options: 0.5, 1, 2, 5, 10, or 15 minutes.
Body Template Editor
This is where you customize exactly what data gets sent.
The editor supports the Handlebars.js template language, allowing you to structure the payload however you like.
Insert parsed data using
{{FieldName}}.Loop through lists such as table rows with
{{#each TableName}} … {{/each}}.Click Preview Payload to view an example using your most recent parsed document.
You can reset to the default template anytime by clicking Reset Template.
💡 Tip: Validate your payload using a test endpoint like webhook.site or a tool such as Postman.
When to Use Advanced Webhooks
Use an Advanced Webhook when you want full control over:
Payload structure
Authentication headers
Timing and frequency of requests
Integration with custom or proprietary APIs