
Store document data in your own database with an instant API and admin app.
Overview
Directus can receive Cradl AI’s Webhook export directly. Directus gives you an incoming URL through Flow webhook trigger, Cradl AI posts each processed document to it, and you map the fields where you work. Nothing sits in between.
Popular use cases
- Invoice register: create an item in an invoices collection for every document, with line items in a related collection, ready for the Directus REST and GraphQL APIs.
- Customer portal: store extracted policy or contract fields in Directus collections that your own front end already reads through the Directus API.
- Review queue: save each run as an item with a draft status field, so staff can approve or correct it in the Directus Data Studio.
Before you begin
- A Cradl AI agent with at least one processed document to test with.
- Directus: Directus Cloud (Core 5 flows, Team 20, Enterprise unlimited) or self-hosted.
How to set it up
- In Directus, create a flow, choose the Webhook trigger with method POST, and copy the URL shown in the trigger panel. Directus docs
- In Directus, add a Create Data operation for your collection and map fields in its payload, for example {{$trigger.body.output.policyNumber.value}}, using your agent’s field IDs. Directus docs
- In Cradl AI, add a Webhook export. Under Endpoint, choose POST and paste the URL. Under HTTP headers, add Authorization with Bearer and a static token. Cradl AI docs
- In Cradl AI, choose a recent run under Test delivery and click Test webhook, then check that the new item appears in your collection. Cradl AI docs
What Cradl AI sends
Each processed document arrives as one JSON request with two parts. output holds every field under its field ID, with the value, the text as read, a confidence score and a readable name. context holds the run and document IDs. The request is signed with HMAC SHA-256 in the X-Cradl-Signature header.
This example is an insurance policy, as in the customer portal use case.
Good to know
Turn on Asynchronous on the trigger so Cradl AI gets an immediate response while the flow runs.

