Draft a mandate from the shopper's words
Turns a plain request into structured limits for the shopper to review. Nothing is stored. Rate limited per visitor.
Request Body
application/json
The shopper's request in their own words.
The shopper's words to turn into a draft.
The shopper's own words.
3 <= length <= 1000Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/mandates/draft" \ -H "Content-Type: application/json" \ -d '{ "request": "A black hoodie in size M under $80" }'{ "draft": { "item": "black hoodie", "category": "hoodie", "quantity": 1, "maxPrice": 80, "currency": "USD", "attributes": { "color": "black", "size": "M" }, "mustAsk": [] }, "ready": { "ok": true }}Get a product at a variant GET
Fresh product detail resolved to the requested variant. Pass options as `option_<Name>=<value>` query parameters, for example `option_Size=M&option_Color=Black`. `relaxed` lists any option the catalog could not honor.
Build the exact mandate to sign POST
Returns the mandate the shopper's device must sign and the exact `signingMessage` (`undo-intent-mandate-v1:<sha256 of the canonical mandate JSON>`). Stateless; nothing is stored.