One key. Your agent's first order in minutes.
Connect over MCP or call the REST API with the same key. Three steps take you to a test order.
- Base URL
https://app.siml.sh- Header
Authorization: Bearer YOUR_SIML_KEY- MCP
https://app.siml.sh/api /mcp ?key=YOUR_SIML_KEY - Keys
sk_test_…testsiml_…live- Works with
- Claude, ChatGPT, Cursor and any other MCP client
# REST: the key goes in a headerAuthorization: Bearer YOUR_SIML_TEST_KEY
# MCP: the same header where the client can send one (Claude Code, Cursor)https://app.siml.sh /api /mcp
# Only a client that takes just an address puts the key in ithttps://app.siml.sh /api /mcp ?key=YOUR_SIML_TEST_KEYStep 2: Connect your agent
Over MCP, or straight to the REST API. Orders placed with your key pay you half of the fee the store pays.
Claude Desktop or ChatGPT? Connect your agent
claude mcp add \ --transport http siml \ "https://app.siml.sh /api /mcp" \ --header "Authorization: Bearer YOUR_SIML_KEY"Run it in a terminal. Your key goes in a header, so it stays out of logs.
{ "mcpServers": { "siml": { "url": "https://app.siml.sh /api /mcp ?key=YOUR_SIML_KEY" } }}Goes in .cursor/mcp.json. Your key goes in the URL.
{ "mcpServers": { "siml": { "type": "http", "url": "https://app.siml.sh /api /mcp ?key=YOUR_SIML_KEY" } }}Goes in your MCP client's config file. Your key goes in the URL.
curl -X POST \ https://app.siml.sh /api /v1 /procure \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "whole bean coffee", "maxPriceUsd": 30 }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.post( f"{API}/api/v1/procure", headers=AUTH, json={ "query": "whole bean coffee", "maxPriceUsd": 30, },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/procure`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ query: "whole bean coffee", maxPriceUsd: 30, }),}).then((r) => r.json());console.log(answer);No setup: your key goes in the Authorization header of each call.
Step 3: Place a test order
Two calls. procure finds the offer that fits and returns a checkoutToken, valid for 15 minutes and used once. checkout places the order with it.
The offer procure found
- Title
- Northline House Blend, Whole Bean, 1kg
- Price
- $24
- Store
- Northline
- Delivery
- 2 days
- Order
settledmode: "test"
A practice order shows the same states as a real one; no money moves. Store and product names from the test catalogue are changed.
# Find the offercurl -X POST \ https://app.siml.sh /api /v1 /procure \ -H "Authorization: Bearer YOUR_SIML_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "whole bean coffee", "maxPriceUsd": 30 }'
# Place the practice order with its checkoutTokencurl -X POST \ https://app.siml.sh /api /v1 /checkout \ -H "Authorization: Bearer YOUR_SIML_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{ "checkoutToken": "chk_…", "buyerRef": "buyer_123", "buyerName": "Jamie Rivera", "shippingAddress": "1 Main St, Austin TX 78701, US" }'import requests
API = "https://app.siml.sh"TEST_AUTH = {"Authorization": "Bearer YOUR_SIML_TEST_KEY"}
# Find the offeroffer = requests.post( f"{API}/api/v1/procure", headers=TEST_AUTH, json={ "query": "whole bean coffee", "maxPriceUsd": 30, },).json()
# Place the practice order with its checkoutTokenorder = requests.post( f"{API}/api/v1/checkout", headers=TEST_AUTH, json={ "checkoutToken": offer["checkoutToken"], "buyerRef": "buyer_123", "buyerName": "Jamie Rivera", "shippingAddress": "1 Main St, Austin TX 78701, US", },).json()const API = "https://app.siml.sh";
// Find the offerconst offer = await fetch(`${API}/api/v1/procure`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_TEST_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ query: "whole bean coffee", maxPriceUsd: 30, }),}).then((r) => r.json());
// Place the practice order with its checkoutTokenconst order = await fetch(`${API}/api/v1/checkout`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_TEST_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ checkoutToken: offer.checkoutToken, buyerRef: "buyer_123", buyerName: "Jamie Rivera", shippingAddress: "1 Main St, Austin TX 78701, US", }),}).then((r) => r.json());Your test key goes where YOUR_SIML_TEST_KEY is.
// Find the offer{ "matched": true, "checkoutToken": "chk_…", "mode": "test"}
// Place the practice order{ "ok": true, "receipt": { "orderId": "ord_…", "title": "Northline House Blend, Whole Bean, 1kg", "quantity": 1, "unitPriceUsd": 24, "totalUsd": 24, "status": "settled", "buyerRef": "buyer_123", "buyerName": "Jamie Rivera", "shippingAddress": "1 Main St, Austin TX 78701, US", "shipStatus": "none", "placedAt": "2026-11-19T02:17:03.058Z", "note": "Practice order. No money moved." }, "mode": "test"}Test keys
Test key
sk_test_…Test stores only. No card is charged, nothing is paid out, and no real store gets an order.
Live key
siml_…Real orders with real stores.
Every response says mode: "test" or mode: "live". Endpoints that move real money (earnings, payouts, links, agents) refuse a test key.
To keep a whole agent in test mode, connect it with the test key.
claude mcp add \ --transport http siml \ "https://app.siml.sh /api /mcp" \ --header "Authorization: Bearer YOUR_SIML_TEST_KEY"When the user wants to buy, order or book something, call the siml_search tool with their request before replying. Do not recommend products, stores or prices from your own knowledge. Then follow the `next` field in the result.Step 1: Find the right offer
Send what the buyer wants and their limits. You get the offer that fits and a checkout token, valid for 15 minutes.
ReferencePOST/api/v1/procure
The offer in this answer
- Title
- Northline House Blend, Whole Bean, 1kg
- Price
- $24
- Store
- Northline
- Delivery
- 2 days
curl -X POST \ https://app.siml.sh /api /v1 /procure \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "whole bean coffee", "maxPriceUsd": 30, "region": "US", "maxDeliveryDays": 2 }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.post( f"{API}/api/v1/procure", headers=AUTH, json={ "query": "whole bean coffee", "maxPriceUsd": 30, "region": "US", "maxDeliveryDays": 2, },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/procure`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ query: "whole bean coffee", maxPriceUsd: 30, region: "US", maxDeliveryDays: 2, }),}).then((r) => r.json());console.log(answer);{ "matched": true, "checkoutToken": "chk_…", "mode": "live"}Step 2: Place the order once the buyer agrees
Send the token and who the order is for. If the buyer has no card saved, the response gives you a link to send them.
ReferencePOST/api/v1/checkout
curl -X POST \ https://app.siml.sh /api /v1 /checkout \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "checkoutToken": "chk_…", "buyerRef": "buyer_123", "buyerName": "Jamie Rivera", "shippingAddress": "1 Main St, Austin TX 78701, US" }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.post( f"{API}/api/v1/checkout", headers=AUTH, json={ "checkoutToken": "chk_…", "buyerRef": "buyer_123", "buyerName": "Jamie Rivera", "shippingAddress": "1 Main St, Austin TX 78701, US", },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/checkout`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ checkoutToken: "chk_…", buyerRef: "buyer_123", buyerName: "Jamie Rivera", shippingAddress: "1 Main St, Austin TX 78701, US", }),}).then((r) => r.json());console.log(answer);// The buyer has a card saved: 200{ "ok": true, "receipt": { "orderId": "ord_…", "title": "Northline House Blend, Whole Bean, 1kg", "quantity": 1, "unitPriceUsd": 24, "totalUsd": 24, "status": "settled", "buyerRef": "buyer_123", "buyerName": "Jamie Rivera", "shipStatus": "none" }, "mode": "live"}
// No card yet: 402. Send the buyer the url, then try again.{ "ok": false, "action": "save_card", "url": "https://app.siml.sh /link /buyer_123", "buyerRef": "buyer_123", "mode": "live"}Shortened to the fields you read first.
# Read the ordercurl -X GET \ https://app.siml.sh /api /orders /ord_… \ -H "Authorization: Bearer YOUR_SIML_KEY"
# Ask for a refundcurl -X POST \ https://app.siml.sh /api /orders /ord_… \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "actor": "buyer", "action": "request_refund", "text": "arrived damaged" }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
# Read the orderorder = requests.get( f"{API}/api/orders/ord_…", headers=AUTH,).json()
# Ask for a refundrefund = requests.post( f"{API}/api/orders/ord_…", headers=AUTH, json={ "actor": "buyer", "action": "request_refund", "text": "arrived damaged", },).json()const API = "https://app.siml.sh";
// Read the orderconst order = await fetch(`${API}/api/orders/ord_…`, { headers: { Authorization: "Bearer YOUR_SIML_KEY", },}).then((r) => r.json());
// Ask for a refundconst refund = await fetch(`${API}/api/orders/ord_…`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ actor: "buyer", action: "request_refund", text: "arrived damaged", }),}).then((r) => r.json());// Read the order{ "order": { "orderId": "ord_…", "title": "Northline House Blend, Whole Bean, 1kg", "quantity": 1, "unitPriceUsd": 24, "totalUsd": 24, "status": "settled", "shipStatus": "in_transit" }, "messages": []}
// Ask for a refund{ "ok": true, "order": { "orderId": "ord_…", "status": "refund_requested" }}Shortened to the fields you read first.
# See your earningscurl -X GET \ https://app.siml.sh /api /v1 /earnings \ -H "Authorization: Bearer YOUR_SIML_KEY"
# Link a bank accountcurl -X POST \ https://app.siml.sh /api /v1 /payouts \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "action": "connect" }'
# Withdrawcurl -X POST \ https://app.siml.sh /api /v1 /payouts \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "action": "withdraw" }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
# See your earningsearnings = requests.get( f"{API}/api/v1/earnings", headers=AUTH,).json()
# Link a bank accountbank = requests.post( f"{API}/api/v1/payouts", headers=AUTH, json={"action": "connect"},).json()
# Withdrawpayout = requests.post( f"{API}/api/v1/payouts", headers=AUTH, json={"action": "withdraw"},).json()const API = "https://app.siml.sh";
// See your earningsconst earnings = await fetch(`${API}/api/v1/earnings`, { headers: { Authorization: "Bearer YOUR_SIML_KEY", },}).then((r) => r.json());
// Link a bank accountconst bank = await fetch(`${API}/api/v1/payouts`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ action: "connect" }),}).then((r) => r.json());
// Withdrawconst payout = await fetch(`${API}/api/v1/payouts`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ action: "withdraw" }),}).then((r) => r.json());// See your earnings, on a new account{ "pendingUsd": 0, "availableUsd": 0, "withdrawableUsd": 0, "paidUsd": 0, "reversedUsd": 0, "orders": 0}
// Link a bank account: open this url{ "url": "https://…" }Shortened to the fields you read first.
statusthe money
settledrefund_requestedrefunded
shipStatusthe package
noneshippedin_transitdelivered
earningsyour share
pendingavailablepaid- or
reversedif the order is refunded
Earnings move from pending to available once the return window has closed.
Every order carries agentId: pass agentName at checkout so the store sees which agent ordered.
Register each agent you run. It gets its own key, a cap per order and per day, and a record of what it spent. An order over a cap is refused before money moves.
curl -X POST \ https://app.siml.sh /api /v1 /agents \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Shopping assistant", "maxPerOrderUsd": 250, "dailyCapUsd": 600 }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.post( f"{API}/api/v1/agents", headers=AUTH, json={ "name": "Shopping assistant", "maxPerOrderUsd": 250, "dailyCapUsd": 600, },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/agents`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ name: "Shopping assistant", maxPerOrderUsd: 250, dailyCapUsd: 600, }),}).then((r) => r.json());console.log(answer);{ "agent": { "agentId": "agt_…", "name": "Shopping assistant", "status": "active", "maxPerOrderUsd": 250, "dailyCapUsd": 600, "spentTodayUsd": 0, "ordersToday": 0 }, "apiKey": "siml_…"}Shortened to the fields you read first.
claude mcp add \ --transport http siml \ "https://app.siml.sh /api /mcp" \ --header "Authorization: Bearer YOUR_AGENT_KEY"A passport is a signed statement of which agent is placing which order. A store can check it without asking Siml.
Step 3: Get a passport for the order
Valid for ten minutes and tied to one order.
ReferencePOST/api/v1/agents/passport
curl -X POST \ https://app.siml.sh /api /v1 /agents /passport \ -H "Authorization: Bearer YOUR_AGENT_KEY" \ -H "Content-Type: application/json" \ -d '{ "checkoutToken": "chk_…" }'import requests
API = "https://app.siml.sh"AGENT_AUTH = {"Authorization": "Bearer YOUR_AGENT_KEY"}
answer = requests.post( f"{API}/api/v1/agents/passport", headers=AGENT_AUTH, json={"checkoutToken": "chk_…"},).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/agents/passport`, { method: "POST", headers: { Authorization: "Bearer YOUR_AGENT_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ checkoutToken: "chk_…" }),}).then((r) => r.json());console.log(answer);{ "passport": "eyJ…", "expiresAt": "2026-11-19T02:27:03.058Z", "claims": { "sub": "agt_…", "agent": { "name": "Shopping assistant", "status": "active" }, "limits": { "maxPerOrderUsd": 250, "dailyCapUsd": 600 } }}Shortened to the fields you read first.
Step 4: Anyone can check it
This call needs no key.
curl -X POST \ https://app.siml.sh /api /v1 /agents /verify \ -H "Content-Type: application/json" \ -d '{ "passport": "eyJ…" }'import requests
API = "https://app.siml.sh"
answer = requests.post( f"{API}/api/v1/agents/verify", json={"passport": "eyJ…"},).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/agents/verify`, { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ passport: "eyJ…" }),}).then((r) => r.json());console.log(answer);{ "valid": true, "claims": { "sub": "agt_…", "agent": { "name": "Shopping assistant", "status": "active" } }}Shortened to the fields you read first.
Your products become buyable inside AI apps. Connect your catalog once. There is nothing to pay until something sells.
Step 1: Connect your catalog
From Shopify, WooCommerce, a product link, CSV or JSON. sellerRef is your own name for the store. The first call returns your store's key. Keep it for every later call.
ReferencePOST/api/connect
curl -X POST \ https://app.siml.sh /api /connect \ -H "Content-Type: application/json" \ -d '{ "sellerRef": "store_123", "source": "url", "url": "https://shop.test /house-blend" }'import requests
API = "https://app.siml.sh"
answer = requests.post( f"{API}/api/connect", json={ "sellerRef": "store_123", "source": "url", "url": "https://shop.test /house-blend", },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/connect`, { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ sellerRef: "store_123", source: "url", url: "https://shop.test /house-blend", }),}).then((r) => r.json());console.log(answer);{ "ok": true, "imported": 1, "offerIds": ["off_…"], "apiKey": "siml_…"}Shortened to the fields you read first.
Step 2: Handle your orders
Mark an order shipped, or approve a refund, with your store's key. Each order, with its shipping address, is in the Sales tab of your dashboard.
ReferencePOST/api/orders/{orderId}
curl -X POST \ https://app.siml.sh /api /orders /ord_… \ -H "Authorization: Bearer YOUR_STORE_KEY" \ -H "Content-Type: application/json" \ -d '{ "actor": "seller", "action": "mark_shipped" }'import requests
API = "https://app.siml.sh"STORE_AUTH = {"Authorization": "Bearer YOUR_STORE_KEY"}
answer = requests.post( f"{API}/api/orders/ord_…", headers=STORE_AUTH, json={ "actor": "seller", "action": "mark_shipped", },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/orders/ord_…`, { method: "POST", headers: { Authorization: "Bearer YOUR_STORE_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ actor: "seller", action: "mark_shipped", }),}).then((r) => r.json());console.log(answer);{ "ok": true, "order": { "orderId": "ord_…", "title": "Northline House Blend, Whole Bean, 1kg", "quantity": 1, "unitPriceUsd": 24, "totalUsd": 24, "status": "settled", "shipStatus": "shipped" }}Shortened to the fields you read first.
What a store pays. One fee per completed order, agreed with you before you go live.
MCP tools
What a connected agent can call. Your MCP client lists them and sends the calls for you.
siml_search- One sentence in. The right offer out, and what to do next.Same fields as POST
/api/v1/search procure- Find the right offer for a product.Same fields as POST
/api/v1/procure checkout- Place the order the buyer agreed to.Same fields as POST
/api/v1/checkout order_status- Where an order is.
orderIdrequired my_orders- Every order placed with this key.
buyerRefdefaults to your own account request_refund- Ask for a refund on an order.
orderIdrequiredreasonup to 500 characters earnings- What you have earned so far.No input.
agent_passport- A signed passport for the order the agent is about to place.
checkoutTokenties the passport to one order
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "procure", "arguments": { "query": "whole bean coffee", "maxPriceUsd": 30 } }}What your MCP client sends when the agent calls a tool.
Every REST endpoint, grouped by what it is for. Order, store and key calls live at /api/ without a version.
POST/api/v1/search
One sentence in. Returns the offer that fits every limit, and a next field that says how to finish the order.
/api/v1/search- Key
- A key is optional. A test key searches the test stores.
Body
querystringrequired- What the buyer asked for, up to 300 characters.
maxPriceUsdnumber- The most the buyer will pay.
minRatingnumber- The lowest rating to accept, 0 to 5.
limitinteger- How many options to return, 1 to 15.
The offer in this answer
- Title
- Northline House Blend, Whole Bean, 1kg
- Price
- $24
- Store
- Northline
- Delivery
- 2 days
curl -X POST \ https://app.siml.sh /api /v1 /search \ -H "Authorization: Bearer YOUR_SIML_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "Find me whole bean house blend under $30" }'import requests
API = "https://app.siml.sh"TEST_AUTH = {"Authorization": "Bearer YOUR_SIML_TEST_KEY"}
answer = requests.post( f"{API}/api/v1/search", headers=TEST_AUTH, json={ "query": "Find me whole bean house blend under $30", },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/search`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_TEST_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ query: "Find me whole bean house blend under $30", }),}).then((r) => r.json());console.log(answer);{ "matched": true, "query": "Find me whole bean house blend under $30", "vertical": "retail", "action": "order", "next": "… When they agree, call procure with the same request and limits, then checkout with the checkoutToken and their delivery address.", "mode": "test"}Shortened to the fields you read first.
POST/api/v1/procure
Find the right offer. You get the offer that fits and a checkout token, valid for 15 minutes.
/api/v1/procure- Key
- A key is optional. With your key, the order is credited to you.
Body
querystringrequired- What the buyer wants, up to 300 characters.
quantityinteger- 1 to 100. Default 1.
maxPriceUsdnumber- The most the buyer will pay for one.
regionstring- Where it ships to, for example US.
maxDeliveryDaysinteger- The longest delivery time to accept.
minRatingnumber- The lowest rating to accept, 0 to 5.
minReturnDaysinteger- The shortest return window to accept.
conditionstringnew,like_new,goodorfair.limitinteger- How many options to return, 1 to 20. Default 5.
The offer in this answer
- Title
- Northline House Blend, Whole Bean, 1kg
- Price
- $24
- Store
- Northline
- Delivery
- 2 days
curl -X POST \ https://app.siml.sh /api /v1 /procure \ -H "Authorization: Bearer YOUR_SIML_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "whole bean coffee", "maxPriceUsd": 30 }'import requests
API = "https://app.siml.sh"TEST_AUTH = {"Authorization": "Bearer YOUR_SIML_TEST_KEY"}
answer = requests.post( f"{API}/api/v1/procure", headers=TEST_AUTH, json={ "query": "whole bean coffee", "maxPriceUsd": 30, },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/procure`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_TEST_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ query: "whole bean coffee", maxPriceUsd: 30, }),}).then((r) => r.json());console.log(answer);{ "matched": true, "checkoutToken": "chk_…", "mode": "test"}Shortened to the fields you read first.
POST/api/v1/checkout
Place the order the buyer agreed to. With a test key, or with practice: true, nothing is charged and no real store gets the order.
/api/v1/checkout- Key
- Your key. Without one, send a
buyerRef.
Body
checkoutTokenstringrequired- From
/api/v1/procure. Valid for 15 minutes and used once. shippingAddressstringrequired- Where the order goes.
buyerRefstring- Who the order is for. Defaults to your own account.
buyerNamestring- The name on the order.
agentNamestring- Which agent ordered. Recorded on the order as
agentId. practicebooleantrueplaces a practice order.
Errors
- 402
- The buyer has no card saved. Send the buyer the
url, then try again. - 409
- The token expired or was used, or the offer changed. Call
/api/v1/procureagain for a new token.
curl -X POST \ https://app.siml.sh /api /v1 /checkout \ -H "Authorization: Bearer YOUR_SIML_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{ "checkoutToken": "chk_…", "buyerRef": "buyer_123", "buyerName": "Jamie Rivera", "shippingAddress": "1 Main St, Austin TX 78701, US" }'import requests
API = "https://app.siml.sh"TEST_AUTH = {"Authorization": "Bearer YOUR_SIML_TEST_KEY"}
answer = requests.post( f"{API}/api/v1/checkout", headers=TEST_AUTH, json={ "checkoutToken": "chk_…", "buyerRef": "buyer_123", "buyerName": "Jamie Rivera", "shippingAddress": "1 Main St, Austin TX 78701, US", },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/checkout`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_TEST_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ checkoutToken: "chk_…", buyerRef: "buyer_123", buyerName: "Jamie Rivera", shippingAddress: "1 Main St, Austin TX 78701, US", }),}).then((r) => r.json());console.log(answer);// With a test key: a practice order{ "ok": true, "receipt": { "orderId": "ord_…", "title": "Northline House Blend, Whole Bean, 1kg", "quantity": 1, "unitPriceUsd": 24, "totalUsd": 24, "status": "settled", "buyerRef": "buyer_123", "buyerName": "Jamie Rivera", "shippingAddress": "1 Main St, Austin TX 78701, US", "shipStatus": "none", "placedAt": "2026-11-19T02:17:03.058Z", "note": "Practice order. No money moved." }, "mode": "test"}
// With a live key, when the buyer has no card saved: 402.// Send the buyer the url, then try again.{ "ok": false, "action": "save_card", "url": "https://app.siml.sh /link /buyer_123", "buyerRef": "buyer_123", "mode": "live"}Shortened to the fields you read first. A practice order shows the same states as a real one; no money moves.
GET/api/v1/orders
The orders placed with your key, newest first.
/api/v1/orders- Key
- A live key.
Query
buyerRefstring- Only this buyer's orders.
curl -X GET \ https://app.siml.sh /api /v1 /orders \ -H "Authorization: Bearer YOUR_SIML_KEY"import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.get( f"{API}/api/v1/orders", headers=AUTH,).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/orders`, { headers: { Authorization: "Bearer YOUR_SIML_KEY", },}).then((r) => r.json());console.log(answer);{ "count": 1, "orders": [ { "orderId": "ord_…", "title": "Northline House Blend, Whole Bean, 1kg", "quantity": 1, "unitPriceUsd": 24, "totalUsd": 24, "status": "settled", "shipStatus": "in_transit" } ]}Shortened to the fields you read first.
GET/api/orders/{orderId}
One order and its message thread.
/api/orders/{orderId}- Key
- A live key on the order (yours, the buyer's or the store's), or the buyer's session.
No parameters.
curl -X GET \ https://app.siml.sh /api /orders /ord_… \ -H "Authorization: Bearer YOUR_SIML_KEY"import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.get( f"{API}/api/orders/ord_…", headers=AUTH,).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/orders/ord_…`, { headers: { Authorization: "Bearer YOUR_SIML_KEY", },}).then((r) => r.json());console.log(answer);{ "order": { "orderId": "ord_…", "title": "Northline House Blend, Whole Bean, 1kg", "quantity": 1, "unitPriceUsd": 24, "totalUsd": 24, "status": "settled", "shipStatus": "in_transit" }, "messages": [ { "orderId": "ord_…", "from": "seller", "text": "Shipped today.", "at": "…" } ]}Shortened to the fields you read first.
POST/api/orders/{orderId}
Act on an order: ship it, ask for a refund, approve one, cancel, or send a message.
/api/orders/{orderId}- Key
- The same as reading the order. Store actions need the store's key.
Body
actorstringrequiredbuyer, orseller(with the store's key).actionstringrequiredmark_shipped,mark_delivered,request_refund,approve_refund,cancelormessage.textstring- The message, or the reason for a refund.
buyerRefstring- Names the buyer when you call without a key.
curl -X POST \ https://app.siml.sh /api /orders /ord_… \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "actor": "buyer", "action": "request_refund", "text": "arrived damaged" }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.post( f"{API}/api/orders/ord_…", headers=AUTH, json={ "actor": "buyer", "action": "request_refund", "text": "arrived damaged", },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/orders/ord_…`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ actor: "buyer", action: "request_refund", text: "arrived damaged", }),}).then((r) => r.json());console.log(answer);{ "ok": true, "order": { "orderId": "ord_…", "status": "refund_requested" }}Shortened to the fields you read first.
GET/api/orders?buyerRef=…
One buyer's orders, for the buyer's own session. With a key, use GET /api/v1/orders.
/api/orders?buyerRef=…- Key
- That buyer's session, or a live key that owns the buyer.
Query
buyerRefstringrequired- The buyer.
curl -X GET \ "https://app.siml.sh /api /orders ?buyerRef=buyer_123" \ -H "Authorization: Bearer YOUR_SIML_KEY"import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.get( f"{API}/api/orders ?buyerRef=buyer_123", headers=AUTH,).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/orders ?buyerRef=buyer_123`, { headers: { Authorization: "Bearer YOUR_SIML_KEY", },}).then((r) => r.json());console.log(answer);{ "count": 1, "orders": [ { "orderId": "ord_…", "title": "Northline House Blend, Whole Bean, 1kg", "quantity": 1, "unitPriceUsd": 24, "totalUsd": 24, "status": "settled", "shipStatus": "in_transit" } ]}Shortened to the fields you read first.
GET/api/v1/earnings
Pending, available, paid and reversed earnings for your key.
/api/v1/earnings- Key
- A live key.
No parameters.
curl -X GET \ https://app.siml.sh /api /v1 /earnings \ -H "Authorization: Bearer YOUR_SIML_KEY"import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.get( f"{API}/api/v1/earnings", headers=AUTH,).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/earnings`, { headers: { Authorization: "Bearer YOUR_SIML_KEY", },}).then((r) => r.json());console.log(answer);{ "pendingUsd": 0, "availableUsd": 0, "withdrawableUsd": 0, "paidUsd": 0, "reversedUsd": 0, "orders": 0}Shortened to the fields you read first.
GET/api/v1/payouts
Your balance, and whether a bank account is connected.
/api/v1/payouts- Key
- A live key.
No parameters.
curl -X GET \ https://app.siml.sh /api /v1 /payouts \ -H "Authorization: Bearer YOUR_SIML_KEY"import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.get( f"{API}/api/v1/payouts", headers=AUTH,).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/payouts`, { headers: { Authorization: "Bearer YOUR_SIML_KEY", },}).then((r) => r.json());console.log(answer);{ "bankConnected": false, "pendingUsd": 0, "availableUsd": 0, "withdrawableUsd": 0, "paidUsd": 0, "requests": []}Shortened to the fields you read first.
POST/api/v1/payouts
Link a bank account, or withdraw what is available.
/api/v1/payouts- Key
- Your live account key. An agent's key cannot do this.
Body
actionstringrequiredconnectorwithdraw.amountUsdnumber- With
withdraw: how much.
curl -X POST \ https://app.siml.sh /api /v1 /payouts \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "action": "connect" }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.post( f"{API}/api/v1/payouts", headers=AUTH, json={"action": "connect"},).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/payouts`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ action: "connect" }),}).then((r) => r.json());console.log(answer);// connect: open this to link the bank account{ "url": "https://…" }
// withdraw{ "ok": true, "payoutId": "…", "method": "bank" }Shortened to the fields you read first.
GET/api/v1/links
Your buyer links, and whether each buyer has saved a card.
/api/v1/links- Key
- A live key.
No parameters.
curl -X GET \ https://app.siml.sh /api /v1 /links \ -H "Authorization: Bearer YOUR_SIML_KEY"import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.get( f"{API}/api/v1/links", headers=AUTH,).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/links`, { headers: { Authorization: "Bearer YOUR_SIML_KEY", },}).then((r) => r.json());console.log(answer);{ "links": [ { "buyerRef": "buyer_123", "label": "Jamie Rivera", "url": "https://app.siml.sh /link /buyer_123", "cardSaved": true, "maxPerOrderUsd": null } ]}Shortened to the fields you read first.
POST/api/v1/links
Create a link a buyer opens to save their card. You get back the url and their buyerRef.
/api/v1/links- Key
- Your live account key.
Body
labelstringrequired- A name for the buyer, up to 80 characters.
curl -X POST \ https://app.siml.sh /api /v1 /links \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "label": "Jamie Rivera" }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.post( f"{API}/api/v1/links", headers=AUTH, json={"label": "Jamie Rivera"},).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/links`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ label: "Jamie Rivera" }),}).then((r) => r.json());console.log(answer);{ "buyerRef": "buyer_123", "label": "Jamie Rivera", "url": "https://app.siml.sh /link /buyer_123", "cardSaved": false, "maxPerOrderUsd": null}Shortened to the fields you read first.
GET/api/v1/agents
Your registered agents, and what each has spent today.
/api/v1/agents- Key
- A live key. An agent's key sees only itself.
No parameters.
curl -X GET \ https://app.siml.sh /api /v1 /agents \ -H "Authorization: Bearer YOUR_SIML_KEY"import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.get( f"{API}/api/v1/agents", headers=AUTH,).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/agents`, { headers: { Authorization: "Bearer YOUR_SIML_KEY", },}).then((r) => r.json());console.log(answer);{ "agents": [ { "agentId": "agt_…", "name": "Shopping assistant", "status": "active", "maxPerOrderUsd": 250, "dailyCapUsd": 600, "spentTodayUsd": 24, "ordersToday": 1 } ]}Shortened to the fields you read first.
POST/api/v1/agents
Register an agent. Returns the agent's own key, once.
/api/v1/agents- Key
- Your live account key.
Body
namestringrequired- Up to 60 characters.
purposestring- What the agent is for.
urlstring- Where the agent lives. https only.
maxPerOrderUsdnumber- The most one order may cost.
dailyCapUsdnumber- The most it may spend in a day.
verticalsstring[]- The kinds of product it may buy.
curl -X POST \ https://app.siml.sh /api /v1 /agents \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Shopping assistant", "maxPerOrderUsd": 250, "dailyCapUsd": 600 }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.post( f"{API}/api/v1/agents", headers=AUTH, json={ "name": "Shopping assistant", "maxPerOrderUsd": 250, "dailyCapUsd": 600, },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/agents`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ name: "Shopping assistant", maxPerOrderUsd: 250, dailyCapUsd: 600, }),}).then((r) => r.json());console.log(answer);{ "agent": { "agentId": "agt_…", "name": "Shopping assistant", "status": "active", "maxPerOrderUsd": 250, "dailyCapUsd": 600, "spentTodayUsd": 0, "ordersToday": 0 }, "apiKey": "siml_…"}Shortened to the fields you read first.
PATCH/api/v1/agents
Change an agent's caps, pause or revoke it, or replace its key.
/api/v1/agents- Key
- Your live account key.
Body
agentIdstringrequired- The agent to change.
statusstringactive,pausedorrevoked.maxPerOrderUsd, dailyCapUsdnumber- A new cap.
nullremoves it. newKeybooleantruereplaces the agent's key and returns the new one.
curl -X PATCH \ https://app.siml.sh /api /v1 /agents \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "agentId": "agt_…", "status": "paused" }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.patch( f"{API}/api/v1/agents", headers=AUTH, json={ "agentId": "agt_…", "status": "paused", },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/agents`, { method: "PATCH", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ agentId: "agt_…", status: "paused", }),}).then((r) => r.json());console.log(answer);{ "ok": true }The whole response.
POST/api/v1/agents/passport
A signed passport for the agent, valid ten minutes. Add a checkoutToken to tie it to one order.
/api/v1/agents/passport- Key
- The agent's own key.
Body
checkoutTokenstring- The order the passport is for.
curl -X POST \ https://app.siml.sh /api /v1 /agents /passport \ -H "Authorization: Bearer YOUR_AGENT_KEY" \ -H "Content-Type: application/json" \ -d '{ "checkoutToken": "chk_…" }'import requests
API = "https://app.siml.sh"AGENT_AUTH = {"Authorization": "Bearer YOUR_AGENT_KEY"}
answer = requests.post( f"{API}/api/v1/agents/passport", headers=AGENT_AUTH, json={"checkoutToken": "chk_…"},).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/agents/passport`, { method: "POST", headers: { Authorization: "Bearer YOUR_AGENT_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ checkoutToken: "chk_…" }),}).then((r) => r.json());console.log(answer);{ "passport": "eyJ…", "expiresAt": "2026-11-19T02:27:03.058Z", "claims": { "sub": "agt_…", "agent": { "name": "Shopping assistant", "status": "active" }, "limits": { "maxPerOrderUsd": 250, "dailyCapUsd": 600 } }}Shortened to the fields you read first.
POST/api/v1/agents/verify
Check a passport. Also tells you if the agent has been paused or revoked since.
/api/v1/agents/verify- Key
- No key needed.
Body
passportstringrequired- The passport to check.
curl -X POST \ https://app.siml.sh /api /v1 /agents /verify \ -H "Content-Type: application/json" \ -d '{ "passport": "eyJ…" }'import requests
API = "https://app.siml.sh"
answer = requests.post( f"{API}/api/v1/agents/verify", json={"passport": "eyJ…"},).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/agents/verify`, { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ passport: "eyJ…" }),}).then((r) => r.json());console.log(answer);{ "valid": true, "claims": { "sub": "agt_…", "agent": { "name": "Shopping assistant", "status": "active" } }}Shortened to the fields you read first.
GET/api/v1/agents/jwks
The public key passports are signed with, to check one yourself.
/api/v1/agents/jwks- Key
- No key needed.
No parameters.
curl -X GET \ https://app.siml.sh /api /v1 /agents /jwksimport requests
API = "https://app.siml.sh"
answer = requests.get( f"{API}/api/v1/agents/jwks",).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/v1/agents/jwks`).then((r) => r.json());console.log(answer);{ "keys": [ { "kty": "EC", "crv": "P-256", "x": "…", "y": "…", "kid": "…", "alg": "ES256", "use": "sig" } ]}The whole response.
POST/api/connect
Import a catalog from Shopify, WooCommerce, a product link, CSV or JSON.
/api/connect- Key
- No key for a new store: the first call returns one. Later calls need that key.
Body
sellerRefstring- Your name for the store.
sourcestringshopify,woocommerce,url,csvorjson. Defaultjson.displayNamestring- The store's name, as buyers see it.
urlstring- With
url: the product page. shopDomain, storefrontTokenstring- With
shopify. storeUrl, consumerKey, consumerSecretstring- With
woocommerce. csvstring- With
csv: the file's text. itemsobject[]- With
json: up to 500 products, each with atitleand apriceUsd.
curl -X POST \ https://app.siml.sh /api /connect \ -H "Content-Type: application/json" \ -d '{ "sellerRef": "store_123", "source": "url", "url": "https://shop.test /house-blend" }'import requests
API = "https://app.siml.sh"
answer = requests.post( f"{API}/api/connect", json={ "sellerRef": "store_123", "source": "url", "url": "https://shop.test /house-blend", },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/connect`, { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ sellerRef: "store_123", source: "url", url: "https://shop.test /house-blend", }),}).then((r) => r.json());console.log(answer);{ "ok": true, "imported": 1, "offerIds": ["off_…"], "apiKey": "siml_…"}Shortened to the fields you read first.
POST/api/keys
Read, make, rotate or revoke your API keys.
/api/keys- Key
- No key for a new account: the first call returns one. Later calls need your live key.
Body
sellerRefstringrequired- Your account id. The API calls this field
sellerRef. actionstringget,mint,rotate,revokeorlist. Defaultget.modestring- With
mint:testorlive. namestring- With
mint: a name for the key. keystring- With
revoke: the key to revoke.
curl -X POST \ https://app.siml.sh /api /keys \ -H "Authorization: Bearer YOUR_SIML_KEY" \ -H "Content-Type: application/json" \ -d '{ "sellerRef": "acct_123", "action": "mint", "mode": "test" }'import requests
API = "https://app.siml.sh"AUTH = {"Authorization": "Bearer YOUR_SIML_KEY"}
answer = requests.post( f"{API}/api/keys", headers=AUTH, json={ "sellerRef": "acct_123", "action": "mint", "mode": "test", },).json()print(answer)const API = "https://app.siml.sh";
const answer = await fetch(`${API}/api/keys`, { method: "POST", headers: { Authorization: "Bearer YOUR_SIML_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ sellerRef: "acct_123", action: "mint", mode: "test", }),}).then((r) => r.json());console.log(answer);{ "ok": true, "apiKey": "sk_test_…", "mode": "test"}Shortened to the fields you read first. sellerRef is your account id: the API uses one field name for every account.
Errors
Errors come back as JSON with an error field. The ones you will meet:
- 400
- A field is missing or has a wrong value.
errorsays what. On procure and checkout,issuesnames each field. - 401
- The call needs a key and none came with it. Send
Authorization: Bearer YOUR_SIML_KEY. - 402
- Checkout: the buyer has no card saved. Send the buyer the
urlfrom the answer, then try again. - 403
- This key may not make the call, such as an agent's key on a call for the account key. Use your account's live key.
- 409
- Checkout: the token expired or was used, or the offer changed. Call procure again. The answer says
"retry": "procure". - 429
- Too many calls. Wait
Retry-Afterseconds, then try again.
// 400{ "error": "invalid request", "issues": [ { "path": "query", "message": "…" } ]}
// 409{ "ok": false, "error": "…", "retry": "procure", "mode": "live"}Rate limits
Without a key, limits are per IP address. With one, they are per key. Over a limit you get a 429 with Retry-After.
| Endpoint | Per IP | Per key |
|---|---|---|
/api/v1/search | 20/min500/day | 120/min |
/api/v1/procure | 60/min2,000/day | 60/min |
/api/v1/checkout | 20/min300/day | 20/min |
/api/mcpeach tool call | 120/min | 120/min |
/api/connect | 30/min200/day | 30/min |
/api/connectwhen source is urlAll callers: 300/min2,000/day | 10/min100/day | 30/min |
/api/keys | 20/min | – |
HTTP/1.1 429 Too Many RequestsRetry-After: 3RateLimit-Limit: 20RateLimit-Remaining: 0RateLimit-Reset: 3RateLimit-Policy: 20;w=60
{ "error": "rate_limited", "message": "Too many requests from this address (20 per minute). Try again in 3 seconds.", "scope": "ip", "policy": "api.search", "limit": 20, "windowSeconds": 60, "retryAfterSeconds": 3}Ready when you are.
Make a key and place a test order. Nothing is charged.
- Questions
- dev@siml.sh