Mandates

Draft a mandate from the shopper's words

POST
/api/mandates/draft

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.

request*string

The shopper's own words.

Length3 <= length <= 1000

Response 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  }}