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.
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.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 | Request | Body | Needs 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=5 | none | No |
| Create cart Opens an empty cart owned by your agent. The returned id is remembered. | POST /api/v1/carts | none | Yes |
| 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} | none | Yes |
| 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} | none | Yes |
| List orders This agent's most recent orders. | GET /api/v1/orders?limit=5 | none | Yes |
| Cancel order Only works before anything is sent to the supplier. | POST /api/v1/orders/{order_id}/cancel | none | Yes |
Good to know
- Checkout needs an agent with an active mandate and the
buyer.ordersscope. A request outside the mandate comes back as 403 with the rule inerror.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.