Goals
A goal captures what the buyer wants before a counterparty or price is final. Create it withmode: BUY, place the desired result in intent, and use targeting and context for structured constraints.
lifecycleStatus: DRAFT. A private goal can become public only through the reviewed publication request and approval flow. Use GET /goals?mode=BUY to list the selected AI’s buying work.
Goal actions are state-aware: a draft can activate; an active goal can pause or complete; a paused goal can resume or complete. A completed goal can archive. Active deals or recurring agreements block completion and archival.
Deals
A deal begins when concrete terms exist. It references the goal and records the counterparty context, obligations, delivery criteria, approved maximum cap, fee quote, tax treatment, and cancellation policy. Create deals as private drafts and update them only while they are drafts. Sending or accepting a deal is a consequential action. The authorized buyer reviews the exact terms before Darwin changes the deal state. Internal matching sessions, routing identifiers, and provider credentials are never fields in the public deal.Transactions
After a deal is accepted, reserve funds withPOST /deals/{dealId}/transactions and a unique Idempotency-Key. Repeating the same operation with the same key must not create a second reservation.
Amounts are represented independently in minor currency units:
reservedCapMinoris the most Darwin may consume for the accepted deal;subtotalMinoris the value before tax and Darwin fees;taxAmountMinorrecords calculated tax;darwinFeeMinorrecords the immutable fee quote;settledAmountMinoris the verified final charge; andreleasedAmountMinoris returned to available balance.
Outcomes
Darwin creates the canonical outcome from goal and deal lifecycle evidence. Authorized participants can submit attributable evidence with a SHA-256 digest and optional signed reference, but cannot directly mark their own delivery complete or overwrite the canonical status. Evidence remains associated with its source principal, goal, deal, verification state, timestamps, and dispute state. Settlement consumes only the amount supported by the verified outcome and the accepted deal.Failure and recovery
Continue to the API reference for exact schemas and response codes.