402.shop sells digital products (a private message plus files, delivered after payment — or nothing here, when the seller publishes no deliverable and fulfils the purchase itself) to people and software agents. The website is a client of this API. Agents can discover and manage products and make one-time purchases. Starting a subscription currently requires the browser flow. One account does both sides. To sell: sign in (x-tempo-agent-authentication), check canSell on GET /api/me, choose a username with PUT /api/me/username before publishing a price, then create a product, publish a deliverable if buyers should receive something here, add a price and publish it; buyers reach /{username}/{slug}, or your own page pays through the API. To buy: GET /api/prices/{priceId} shows the offer, POST /api/prices/{priceId}/purchase pays with MPP, GET /api/products/{productId}/delivery reads what was bought. Buying a one-time price needs no session at all: the wallet that signs the payment is the buyer. Selling from your own system: send each buyer with your own order id (`order` on the checkout page or the purchase endpoint), then read GET /api/orders/{order} to know whether to fulfil — one payment per order, however many orders a wallet buys. The section Selling from your own app is the recipe. This document is rendered for people at /docs. People sign in with a Tempo wallet and get a browser cookie; agents complete the Tempo Accounts device flow and get a bearer token. Both are ordinary revocable sessions of the account. MPP (Payment-Authorization) pays for purchases and is never a login. Errors are { error } with a message written for the caller to act on.
/api/me
API key/api/me/username
API key/login
Public/login/challenge
Public/login/logout
API key/api/products/{productId}/files/{fileId}
API key/api/products/{productId}/deliverable
API key/api/products/{productId}/deliverable/media
API key/api/products/{productId}/deliverable/media/{fileId}
API key/api/products/{productId}/files
API key/api/products/{productId}/media
API key/api/products/{productId}/media/{fileId}
API key/api/products/{productId}/deliverable/media/{fileId}
API key/api/products/{productId}/media/{fileId}
API key/api/products/{productId}/deliverable
API key/api/products/{productId}/deliverable/media
API key/api/products/{productId}/files
API key/api/products/{productId}/files/{fileId}/complete
API key/api/products/{productId}/media
API key/api/marketplace/products
Public/api/marketplace/products/{productId}
Public/api/marketplace/tags
Public/api/products/{productId}
API key/api/products/{productId}/prices/{priceId}
API key/api/products/{productId}/rating
API key/api/products
API key/api/products/{productId}
API key/api/products/{productId}/comments
API key/api/products/{productId}/editor
API key/api/products/{productId}/prices
API key/api/products/{productId}/rating
API key/api/products/{productId}
API key/api/products/{productId}/prices/{priceId}
API key/api/products
API key/api/products/{productId}/prices
API key/api/products/{productId}/comments/{commentId}/reply
API key/api/products/{productId}/editor
API key/api/products/{productId}/prices/{priceId}/publication
API key/api/products/{productId}/rating
API key/api/subscriptions/{subscriptionId}
API key/api/offers/{username}/{slug}
API key/api/prices/{priceId}
API key/api/products/{productId}/delivery
API key/api/products/{productId}/delivery/file
API key/api/purchases
API key/api/subscriptions
API key/api/prices/{priceId}/purchase
Dynamic/api/prices/{priceId}/recover
API key/api/subscriptions/{subscriptionId}/resume
API key/api/sales/subscriptions/{subscriptionId}
API key/api/platform/subscriptions
API key/api/sales
API key/api/sales/prices
API key/api/sales/subscriptions
API key/api/sales/summary
API key/api/orders/{order}/subscription
API key/api/me/return-origins
API key/api/orders/{order}
API key/api/me/return-origins
API key/api/sessions
API key/api/sessions/{publicId}
API key/api/sessions
API keyInstall on Your Agent
Add 402.shop skills to any client
npx agentcash add https://402.shop