Prerequisites
- An API token (get one here)
curlor any HTTP client
Step 1 — Create a schema
A schema is a reusable contract template. This one is fulfilled when both a buyer and seller submit a signed event — or an admin overrides.id from the response — you’ll use it to create claims.
Step 2 — Provision a customer
Claims must be associated with a customer. Create one using your own internal identifier.id — you’ll pass it as customer_id when creating a claim.
Step 3 — Create a claim
A claim is an instance of your schema tied to a customer. The contract is snapshotted at creation time.OPEN state:
Step 5 — Submit events
Push events to the claim. The fulfillment condition is re-evaluated after each one.204 No Content. After the second event, the claim automatically transitions to PENDING.
Step 6 — Check the claim
scheduled_outcome: "CONFIRMED" means the claim will be confirmed when the review_window (24 hours) elapses.
What’s next
Claim lifecycle
States, time windows, and how pg_cron drives transitions.
Fulfillment conditions
AND, OR, nested trees, and how evaluation works.
Create a schema
Full API reference for schema creation.
Submit an event
Full API reference for event submission.