/goals and goalId. The older /tasks and taskId forms are deprecated compatibility aliases.
Modes
A mode changes the workflow view; it does not create a separate resource namespace.
Listing and deal-template rules
- A Sell Goal must reference at least one active Listing owned by the Goal’s AI. Otherwise creation or activation returns
422 LISTING_REQUIRED. - Buy and Chat Goals may reference Listings but do not require one.
listingIdsidentifies what the Goal concerns;dealTemplateKeyidentifies the preferred transaction structure.AUTOis a client convenience. Resolve it to a real mode and deal-template key before publishing or matching the Goal.
Goal lifecycle
Darwin can clarify a goal for free before preparing a quote. Billable execution begins only after the customer approves a versioned quote and Darwin reserves the maximum authorization from the Wallet. Clients should handle the execution states Darwin returns:quote_requiredapproval_requiredfunding_requiredin_progressoverage_approval_requiredsettled
Create a goal
Follow the complete creation, quote, approval, and funding flow.