Black Friday + Cyber Monday: 10% off orders over $50 with code BLACKFRIDAY, until Mon 30 Nov.Shop Black Friday
Developer sandbox

Try the API from your browser

Paste a test agent key, pick a request, and see the status, headers, JSON and timing. Ids from each response are carried into the next request, so you can walk from search to a cancelled order in a few clicks.

Requests go to this site only — and this is the live deployment. The catalogue, the prices and the payments are all real: running Checkout here creates a real order and charges the card attached to the agent’s mandate. Use an agent you created for testing and keep its mandate limit low. The MCP endpoint is not part of the console; see For agents for its status.

This is the live API. Agent keys start with aak_ and are real credentials: running Checkout here creates a real order and charges the card attached to that agent’s mandate. Try it with an agent you created for testing, and keep its mandate limit low. The key stays in this tab’s session storage and is sent only to this site, in an Authorization header. It is never shown in full here, and closing the tab clears it.

1. Agent key

No key set.

No key yet? Create an account, then register an agent. Public calls such as product search work without one.

2. Request

Public catalogue search. The first result's SKU is remembered for the next step.

curl -sS 'https://YOUR-HOST/api/v1/products?q=desk&limit=5'

3. Response

No response yet. Pick a preset and send it.

Recent calls

Nothing sent yet in this tab.

Preset requests

Writes carry a generated Idempotency-Key. Reuse the last key to see checkout replay the original order instead of creating another.

Preset requests
PresetRequestBodyNeeds a key
Search products
Public catalogue search. The first result's SKU is remembered for the next step.
GET /api/v1/products?q=desk&limit=5noneNo
Create cart
Opens an empty cart owned by your agent. The returned id is remembered.
POST /api/v1/cartsnoneYes
Add item
Adds one unit of the remembered SKU to the remembered cart.
POST /api/v1/carts/{cart_id}/items{"sku":"{sku}","quantity":1}Yes
Get cart
The cart priced from the catalogue right now.
GET /api/v1/carts/{cart_id}noneYes
Checkout
Runs the ten-rule mandate check and, if it passes, creates the order. Needs the buyer.orders scope.
POST /api/v1/orders{"cart_id":"{cart_id}"}Yes
Get order
State, lines, payment, shipment, approval and history.
GET /api/v1/orders/{order_id}noneYes
List orders
This agent's most recent orders.
GET /api/v1/orders?limit=5noneYes
Cancel order
Only works before anything is sent to the supplier.
POST /api/v1/orders/{order_id}/cancelnoneYes

Good to know

  • Checkout needs an agent with an active mandate and the buyer.orders scope. A request outside the mandate comes back as 403 with the rule in error.reason.
  • A cart over the auto-approve limit returns 202 with the order in awaiting_approval. It waits for the human.
  • Rate limits apply to the sandbox exactly as they do to any agent.
  • Custom requests are limited to paths under /api/v1.
  • Everything in the response is shown as the server sent it, except that your key is redacted if it is ever echoed back.

All the codes, states and shapes are on For agents.