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.Step 2 — Provision a customer
Candidates must be associated with a customer. Create one using your own internal identifier.id — you’ll pass it as customer_id when creating candidates.
Step 3 — Create a candidate
A candidate is an instance of your schema tied to a customer. You provide acandidate_alias — your own identifier for this candidate — which you’ll use in all subsequent API calls. The contract is snapshotted at creation time.
OPEN state:
Step 5 — Submit events
Push events to the candidate using itscandidate_alias. The fulfillment condition is re-evaluated after each one.
204 No Content. After the second event, the candidate automatically transitions to PENDING.
Step 6 — Check the candidate
scheduled_outcome: "CONFIRMED" means the candidate will be confirmed when the review_window (24 hours) elapses.
What’s next
Candidate 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.