Integrate document extraction with your systems in real-time
TableFlow uses webhooks to push real-time notifications when document extractions are completed or updated. This allows your systems to automatically process extraction results without polling the API.
TableFlow extracts data according to your template
When processing completes, TableFlow sends a webhook notification to your endpoint
Your system receives the webhook with extraction details
You can then retrieve the full extraction data using the API
Webhooks contain metadata about the extraction. To retrieve the full
extraction data including extracted fields and tables, use the API with the
extraction ID from the webhook.
First, create an endpoint in your application that can receive HTTP POST requests. This endpoint will receive the webhook payloads from TableFlow.For testing, you can use Svix Play to quickly set up a temporary webhook endpoint.
Navigate to your workspace settings in the TableFlow dashboard. Under the “Webhooks” section, add your endpoint URL and select the events you want to receive:
TableFlow signs all webhook requests with a signature in the svix-signature header. You can use this signature to verify that the webhook is genuinely from TableFlow.
You can filter webhooks based on their content to only receive specific notifications:
Copy
function handler(webhook) { // Only receive webhooks for PDF files if (webhook.payload.file_type?.key !== "document") { webhook.cancel = true; } // Only receive webhooks for specific templates if (webhook.payload.template_id !== "dk4g1tUg1uHLs8YU") { webhook.cancel = true; } return webhook;}