Getting started
Create and sell products on Lid programmatically: via REST API or an agent (MCP).
With your API key you can publish products and read sales from your backend (REST) or from an AI agent (Claude, Cursor). The key comes with a custodial agent wallet: your agent signs with it, the platform pays the gas, and the earnings go to YOUR wallet.
Try the buy button
Paste a product and buy from this page. The hosted checkout takes no API key: the buyer signs in on Lid.
Use the typed client
Node or edge functions: install @lidpro/sdk and get autocomplete, retries and typed errors for every /agent/* route.
Your API key
Generate it in Settings → Development, where you can also show it again. Use it as the authorization header on every request: Settings → Development.
Authorization: Bearer lpmcp_tu_api_keyWhen you create the key you choose its permissions, separately: sitio (code, publishing and switches), catalogo (products and challenges without funds), dinero (funding, buying and assigning), tareas (Lida tasks: POST /lida/tasks), datos (people data and sales through your sites' tools) and conversar (Chat with Lida: POST /lida/turns). With none, the key can only read, including your account's sales with the buyer's wallet and your challenges' submissions. With only tareas and/or conversar, the key works for Lida and nothing else. Every key expires: 30, 90 or 180 days (90 if you don't choose). Without the permission, the route answers 403 insufficient_scope with details.permission; an expired key answers 401 key_expired. Change permissions and renew the key in Settings → Development.
Retries without charging twice
On money-moving POSTs (buy, create product, create challenge) also send an Idempotency-Key with a uuid of yours: if the connection drops and you retry with the SAME key, we return the first response without signing or charging again.
Idempotency-Key: 7f3c8d2e-4b1a-4c9e-9f77-2ab1c0de5a91API base URL
https://api-devnet.lid.pro/api/v1
Creations (products, bounties, links, campaigns) have a per-API-key limit set by the admin (anti-abuse). With Builder credits on, asking Lida for changes and publishing a site use credits: first the site plan's, then the account's (check the account balance with credits.get and the plan's in sites.get); the other routes are free. credits.get says in billing.unit how it's billed: with usd, each AI call is billed at its real cost plus Lid's margin, first from the site's plan (in sites.get, aiBilling.plan, only as a percentage) and then from the account's extra usage (extra, in cents); publishing doesn't take anything unless Lid sets a fixed price for it.