
Insert every verified document into Oracle Autonomous Data Warehouse through a REST handler built into the database.
Overview
Oracle Autonomous Data Warehouse can receive Cradl AI’s Webhook export directly. Oracle Autonomous Data Warehouse gives you an incoming URL through ORDS REST handler, Cradl AI posts each processed document to it, and you map the fields where you work. Nothing sits in between.
Popular use cases
- Spend analytics: insert invoice headers and lines into related Oracle tables, then analyze spend by supplier and month in Oracle Analytics Cloud.
- Payables matching: compare extracted invoice totals with purchase orders and receipts already in your Autonomous AI Database to flag mismatches before payment.
- Audit trail: store runId and documentId in every inserted row, so each figure in a report traces back to the document it came from.
Before you begin
- A Cradl AI agent with at least one processed document to test with.
- Oracle Autonomous Data Warehouse: Any Autonomous AI Database, including Autonomous AI Lakehouse (formerly Autonomous Data Warehouse).
How to set it up
- In Database Actions, REST-enable an application schema, then under REST › Modules create a module, a template and a POST handler with source type PL/SQL. Oracle Autonomous Data Warehouse docs
- In the handler, read :body once into a BLOB and insert the fields and line items with JSON_TABLE, following Oracle’s nested JSON example. Oracle Autonomous Data Warehouse docs
- In Database Actions, protect the module with a privilege, then copy the handler URL, which looks like https://…/ords/<schema>/<module>/<template>. Oracle Autonomous Data Warehouse docs
- In Cradl AI, add a Webhook export with POST and that URL. Under HTTP headers, add Authorization: Basic for the schema user, then click Test webhook. 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 a supplier invoice, as in the payables matching use case.
Good to know
You write a short PL/SQL handler that runs in the database. To skip code, POST to a SODA for REST collection and query the JSON with SQL.

