Send verified document data to Pega


The Cradl AI builder with the Export to Webhook panel open: endpoint URL, signing secret, HTTP headers and a test delivery.

Create cases for claims, onboarding and lending directly from documents.

Overview

Pega can receive Cradl AI’s Webhook export directly. Pega gives you an incoming URL through Service REST rule, Cradl AI posts each processed document to it, and you map the fields where you work. Nothing sits in between.

Popular use cases

  • Insurance claims: create a claim case in Pega from each claim form, with policy number, incident date and claimed amount filled into the case data.
  • Loan applications: start a lending case from payslips and bank statements, passing employer, income and account details into the case for underwriting.
  • Customer onboarding: create an onboarding case from ID documents and signed forms, so Pega routes it to the right team with the extracted fields.

Before you begin

  • A Cradl AI agent with at least one processed document to test with.
  • Pega: Pega Platform (Pega Infinity).

How to set it up

  1. In Pega Dev Studio, create a service package with Basic authentication and a Service REST rule in it. Give the rule a POST method that maps the JSON body with a data transform and creates the case. Pega docs
  2. In Cradl AI, add a Webhook export to your agent, choose POST and paste the URL into Endpoint. Under HTTP headers, add Authorization with “Basic” and the operator’s encoded credentials. Cradl AI docs
  3. In Cradl AI, choose a recent run under Test delivery and click Test webhook, then check that Pega created the case with the right data. 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 claim form, as in the insurance claims use case.

{  "output": {    "policyNumber": {      "rawValue": "HO-882140",      "value": "HO-882140",      "confidence": 0.913,      "page": 0,      "name": "Policy Number"    },    "policyholderName": {      "rawValue": "Michael Reed",      "value": "Michael Reed",      "confidence": 0.959,      "page": 0,      "name": "Policyholder Name"    },    "incidentDate": {      "rawValue": "06/03/2026",      "value": "2026-06-03",      "confidence": 0.958,      "page": 0,      "name": "Incident Date"    },    "claimType": {      "rawValue": "Water damage",      "value": "Water damage",      "confidence": 0.936,      "page": 0,      "name": "Claim Type"    },    "claimedAmount": {      "rawValue": "$4,850.00",      "value": "4850",      "confidence": 0.987,      "page": 0,      "name": "Claimed Amount"    }  },  "context": {    "runId": "cradl:run:eee4d543…",    "documentId": "cradl:document:349e99a0…"  }}

Good to know

Pega recommends OAuth 2.0, but Cradl AI sends fixed headers and can’t fetch tokens. Use Basic auth with a dedicated operator whose access group can create the case type.

Document automation for the agentic era.

Build your first agent in minutes, and let your business users review and train it from day one.