Seller-agent API

A seller agent, built on any model or framework, reads pricing context, asks for a recommendation and, only if the merchant’s policy allows it, publishes the server-computed decision. Agents cannot set an arbitrary price, change policy, or move money. Tokens and scopes are configured server-side in AGENT_API_KEYS.

Try it

Publishing succeeds only when the token has pricing:publish, policy has “Allow authorized seller agents to publish” on, and the decision does not require approval (autopilot mode, sufficient confidence). Otherwise you get a 403 that explains why.

curl

curl -H "Authorization: Bearer demo-agent-readonly" \
  "http://localhost:3000/api/agent/pricing-context?sku=SALAD-001"

curl -X POST -H "Authorization: Bearer demo-agent-publisher" -H "Content-Type: application/json" \
  -d '{"sku":"SALAD-001"}' http://localhost:3000/api/agent/recommend