# Backd docs Backd adds name-your-price **Supporter access** to a web app. Supporters pay what they want in USDC on Solana, straight from their wallet to the developer's wallet. The developer's server asks Backd "is this person an active supporter?" and gets yes or no. Active means they paid at least the app's minimum in the last 30 days. Backd never holds, routes or controls money or keys, and takes no commission. Developers only give Backd a public wallet address. > Status: test network only (Solana devnet, test USDC). Base URL: `https://getbackd.dev`. Free while in testing. Last updated 4 December 2026. ## Quick start Three steps: register the app, add the widget to the page, check supporters on the server. Or let an AI coding agent do all of it: see [For AI agents](#for-ai-agents). ### 1. Register the app Use the developer's **public** Solana wallet address (the address that receives USDC). Never a private key or seed phrase. ```bash curl -X POST https://getbackd.dev/v1/register \ -H "Content-Type: application/json" \ -d '{"name": "My App", "wallet": "YOUR_PUBLIC_SOLANA_ADDRESS"}' ``` The answer has `appId` (public, goes in the page) and `apiKey` (secret, starts with `sk_`, shown once). Put the key in the server's environment as `BACKD_API_KEY`, never in browser code or git. Optional: `"minAmount": 3` sets the smallest payment that gives access (default 1 USDC). ### 2. Add the widget Paste before `` in the main HTML page (for React, Vue or Svelte with Vite, that's `index.html`): ```html ``` To lock a feature, put `Unlock Pro themes` where it lives. It opens Supporter access for visitors who aren't supporters yet. Turn the feature on only when your server says `active`. ### 3. Check supporters on the server Add a `POST /api/backd-access` route that forwards the unlock token to Backd with the secret key. **Node (Express)** ```js // backd-access.mjs export async function isActiveSupporter(unlockToken) { if (!unlockToken) return false; const r = await fetch('https://getbackd.dev/v1/access', { method: 'POST', headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${process.env.BACKD_API_KEY}` }, body: JSON.stringify({ unlockToken }), }); const data = await r.json().catch(() => ({})); return r.ok && data.active === true; } // app.use(express.json()); // app.post('/api/backd-access', async (req, res) => // res.json({ active: await isActiveSupporter(req.body?.unlockToken) })); ``` **Next.js (app router)** ```ts // app/api/backd-access/route.ts export async function POST(req: Request) { const { unlockToken } = await req.json().catch(() => ({})); if (!unlockToken) return Response.json({ active: false }); const r = await fetch('https://getbackd.dev/v1/access', { method: 'POST', headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${process.env.BACKD_API_KEY}` }, body: JSON.stringify({ unlockToken }), }); const data = await r.json().catch(() => ({})); return Response.json({ active: r.ok && data.active === true }); } ``` In Next.js, load the widget from a client component with `next/script` (`strategy="afterInteractive"`) and render `` after `{children}` in `app/layout.tsx`. **Python (Flask)** ```python import os, requests def is_active_supporter(unlock_token: str) -> bool: if not unlock_token: return False r = requests.post("https://getbackd.dev/v1/access", headers={"Authorization": f"Bearer {os.environ['BACKD_API_KEY']}"}, json={"unlockToken": unlock_token}, timeout=10) return r.ok and r.json().get("active") is True # @app.post("/api/backd-access") # def backd_access(): # return {"active": is_active_supporter((request.get_json(silent=True) or {}).get("unlockToken"))} ``` Always re-check on the server before serving anything that matters. The browser can be edited. ### 4. Check the setup ```bash curl -X POST https://getbackd.dev/v1/app-check \ -H "Authorization: Bearer $BACKD_API_KEY" -H "Content-Type: application/json" -d '{}' ``` Returns the app's name, wallet, minimum, supporter count and whether the wallet already has a USDC account. Then post a fake token to your own route: `{"unlockToken": "not-a-real-token"}` should answer `{"active": false}`. ## Dashboard Open [/dashboard](/dashboard) and sign in with the wallet your supporters pay into. Your wallet signs a short message; it is not a payment and can't move money. Apps set up with that wallet appear on their own. You see your active supporters, the USDC sent to you in the last 30 days and the supporter list, and you can change the minimum, swap the secret key, move payouts to another wallet or delete the app. Swapping the key, changing the wallet and deleting ask your wallet to sign again. ## How it works 1. The visitor taps **Support**, picks or types an amount, and gives an email. 2. Backd creates a Solana Pay request with a unique reference for that email and amount. The supporter's wallet sends USDC straight to the developer's wallet. 3. Backd watches the public chain for that reference and records the payment against the email. Payments below the app's minimum give no access. 4. The paying browser receives an **unlock token** (signed, tied to the app, valid 30 days) and fires a `backd:unlocked` event. 5. The page sends the token to the developer's server, which asks `POST /v1/access` with the secret key. Backd re-checks live and answers `active: true` or `false`. Supporter access is per app. Two apps never share supporters, even with the same wallet. ## Widget options Attributes on ``: | Attribute | What it does | |---|---| | `app-id` | Required. The public app id from registering. | | `app-name` | Name shown in the popup. Default: the registered name. | | `theme` | `light`, `dark` or `auto` (default, follows the visitor's system). | | `presets` | Preset amounts in USDC, comma separated. Default `5,10,20`. Presets under the app's minimum are hidden. | | `glow-color` | One colour or up to five, comma separated. Default: rainbow. | | `card-glow` | `static` (default), `rotate`, `pulse`, `breathe`, `colorShift`, `flowHorizontal` or `none`. | | `position` | `bottom-right` (default) or `bottom-left`. | | `api` | Backd API address. Default: where the script was loaded from. | CSS variables `--backd-accent` and `--backd-accent-text` set the colour of the buttons inside the popup. JavaScript: `el.open()` opens the Support popup, `el.openUnlock()` opens Supporter access, `el.unlockToken` is the visitor's token or `null`. The `backd:unlocked` event carries `{email, unlockToken}`. ## API reference All calls are `POST` with a JSON body. Base URL `https://getbackd.dev`. Developer calls send `Authorization: Bearer sk_...`. | Call | Who calls it | Body | Returns | |---|---|---|---| | `/v1/register` | developer or their agent | `{name, wallet, minAmount?}` | `{appId, apiKey, minAmount}`. Key shown once. 10 per hour per caller. | | `/v1/access` | developer's server, with key | `{unlockToken}` | `{email, active, activeUntil, emailVerified}` | | `/v1/app-check` | developer, with key | `{appId?}` | name, wallet, minimum, supporter count, USDC account ready | | `/v1/app-settings` | developer, with key | `{minAmount}` | sets the minimum payment for access (0.01 to 10000 USDC) | | `/v1/rotate-key` | developer, with key | `{}` | `{apiKey}`: a new secret key if the old one leaked. The old key stops working at once. | | `/v1/supporter-status` | developer, with key | `{email}` | `{email, active, activeUntil}` for the developer's own checks | | `/v1/app-info` | widget | `{appId}` | `{name, supporters, minAmount}` | | `/v1/pay-link` | widget | `{appId, email, amount?}` | Solana Pay link, QR code, private claim secret | | `/v1/pay-status` | widget | `{appId, reference, claim}` | `{status}`, plus `{unlockToken, email}` once paid | | `/api/x402/support` | a supporter's AI agent (`GET` or `POST`) | `{app, email, amount}` | `402` with the price, then `{supporter: true}` once paid. See [Agents can pay](#agents-can-pay-x402). | `emailVerified` is false when the token came straight from paying in that browser. It shows who paid, not that this person owns the inbox, so don't use it as a login. API keys are stored only as hashes. A lost key can't be shown again. ## Common questions ### How do I take USDC payments in my web app? Register the app with your public Solana wallet address, paste Backd's Support button into your page, and add one server route that asks Backd whether a visitor is a supporter. Supporters then pay any amount they choose in USDC, straight from their wallet to yours. The [Quick start](#quick-start) has the code, or paste one prompt into an AI coding tool: see [For AI agents](#for-ai-agents). ### How do I unlock features for people who paid? Your server sends the visitor's unlock token to `POST /v1/access` with your secret key and gets `active: true` or `false`. Turn the feature on only when it says `active`. Wrap a locked button in `` so visitors who aren't supporters yet can open Supporter access from it. ### Does Backd take a commission or hold my money? No. Payments go from the supporter's wallet straight to the developer's wallet in one Solana transaction. Backd never holds funds, never asks for a private key and takes no cut. It only reads the public chain to see the payment arrive. More in [Is Backd safe?](/safety) ### How long does Supporter access last? 30 days from the latest payment that met the app's minimum (1 USDC unless the developer changes it). Paying again starts a fresh 30 days. There is no automatic renewal: nothing is charged unless the supporter pays again. ### What do supporters need? A Solana wallet holding USDC, such as Phantom or Solflare, and an email so the payment can be matched to them. No account or password. Card payments are not supported. ### Can AI agents pay my app? Yes. Every registered app has an x402 door, so a person's AI agent can support the app in USDC on its own, and their email gets the same 30 days of Supporter access. Developers add nothing. See [Agents can pay](#agents-can-pay-x402). ### Which languages and frameworks does it work with? Any web app with a server that can keep a secret key and make an HTTPS request. The docs show Node (Express), Next.js and Python (Flask). The Support button is a plain web component, so it works in plain HTML, React, Vue, Svelte or anything else that renders a page. ### When is Backd not the right fit? When supporters must pay by card, when the app needs a network other than Solana or a currency other than USDC, when it is not a web app, or when there is no server to keep the secret key. Backd is also on the test network only for now, so it can't take real money yet. ## Limits and status - **Test network only.** Solana devnet with test USDC. Real money isn't switched on yet. - **Supporters need a Solana wallet holding USDC** (for example Phantom or Solflare). No card payments. - **Same-browser unlock works now.** Getting access back on a new device with an email code is built but switched off until Backd has its own domain. - USDC on Solana only. Web apps only. - **Is it safe?** How Backd can't touch money, what it stores and what has been checked: [Is Backd safe?](/safety) ## Agents can pay (x402) A person can tell their AI agent "support this app with 5 USDC", and the agent can do it on its own. Every Backd app has an agent door that speaks **x402**, the open "402 Payment Required" standard that agents' payment software already knows. The money goes straight from the agent's wallet to the developer's wallet, in USDC on Solana. The person's email then has Supporter access for 30 days, exactly as if they had used the Support button. Developers don't add anything: the door is on as soon as the app is registered. The door for an app (open it to see the app's name, minimum and how to pay): ``` https://getbackd.dev/api/x402/support?app= ``` To support, add the person's email and the amount they named (at least the app's minimum, $1 unless the developer changed it): ``` GET https://getbackd.dev/api/x402/support?app=&email=&amount=5 ``` 1. Backd answers `402` with a `PAYMENT-REQUIRED` header: the amount in USDC, Solana, paid to the developer's own wallet. 2. The agent's x402 client (for example `@x402/fetch` with `@x402/svm`) signs that transfer and asks again with a `PAYMENT-SIGNATURE` header. 3. A free outside facilitator (PayAI) submits the transfer to Solana. Backd checks the finished transaction on chain itself. 4. Backd answers `200` with `{supporter: true, activeUntil, transaction}`. If Solana or the payment service is slow it answers `202` ("pending"): **do not pay again**. Ask again a minute later with `&transaction=` when the answer gives a transaction, otherwise with the same payment. A `503` means the payment service is down and nothing was charged. Through the MCP plug-in, the paid tool `backd_support_app` does the same in chat. **Agents: ask your person before paying.** Confirm the app and the amount with them first. Payments are final support: there are no refunds. Backd never holds the money or any keys, and it never sees the agent's wallet key. ## For AI agents **Fastest:** paste this prompt into your AI coding tool (Claude Code, VS Code, Codex in ChatGPT, Grok Build, or any agent that can read the web and edit your code): ``` Add Backd to this app: getbackd.dev/setup ``` The agent first looks at your app on your own machine and tells you in a few lines how Backd fits: where the Support button goes and which features could be unlocked for supporters. Then it asks for your public wallet address, registers the app, and adds the Support button and the server check. Nothing to install, and your code never reaches Backd. **MCP plug-in:** Backd's plug-in (an MCP server) lets AI coding tools add Backd to an app for you. It's hosted, so there's nothing to install. Connect your tool to one address: ``` https://getbackd.dev/mcp ``` **Claude Code** ```bash claude mcp add --transport http backd https://getbackd.dev/mcp ``` **Claude.ai and Claude Desktop:** [Add Backd to Claude in one click](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Backd&connectorUrl=https%3A%2F%2Fgetbackd.dev%2Fmcp): it opens Claude's "Add custom connector" box with Backd's address filled in; check it, choose "No sign-in" and click Add. Or by hand: Customize, Connectors, Add custom connector, paste the address and choose "No sign-in". **Cursor, Windsurf** (`.cursor/mcp.json`, `~/.codeium/windsurf/mcp_config.json`): ```json { "mcpServers": { "backd": { "url": "https://getbackd.dev/mcp" } } } ``` **VS Code** (`.mcp.json` in the project, or `~/.copilot/mcp-config.json`): ```json { "mcpServers": { "backd": { "type": "http", "url": "https://getbackd.dev/mcp" } } } ``` **Claude API (MCP connector):** `"mcp_servers": [{ "type": "url", "url": "https://getbackd.dev/mcp", "name": "backd" }]` Then ask your agent something like: "Add Backd to this app. My public Solana wallet is ... Make the PDF export supporter-only." | Tool | What it does | |---|---| | `backd_fit_check` | The look at your app that comes first: fit, where the button goes, what to unlock. Read only, no key. | | `backd_register_app` | Registers the app with a public wallet address. Returns the app id and secret key (shown once). | | `backd_get_widget_code` | The Support button snippet for HTML, Vite or Next.js. | | `backd_get_server_code` | The `/api/backd-access` route for Node, Next.js or Python. | | `backd_verify_setup` | Checks the app id, key and wallet, and gives checks to run on your own machine. | | `backd_check_supporter` | "Is this email an active supporter?" Needs the key. | | `backd_set_minimum` | Changes the smallest payment that gives access. Needs the key. | | `backd_support_app` | For an agent acting for a supporter: pays an app through x402 (see [Agents can pay](#agents-can-pay-x402)). Ask the person first. | No key is needed to set up a new app. The two tools that act on an existing app need its secret key as a **header** in the connection settings, never typed into the chat or put in the address: `--header "Authorization: Bearer ${BACKD_API_KEY}"` in Claude Code, `"headers": { "Authorization": "Bearer ${BACKD_API_KEY}" }` in JSON configs, `X-API-Key` in Claude.ai, `authorization_token` in the Claude API. The plug-in never takes a private key. Only `backd_support_app` involves money, and the agent's own x402 client pays: Backd never holds funds. Requests from other websites are refused, and it allows 240 requests an hour per caller. Agents that don't use MCP can follow [/llms.txt](/llms.txt), or read these docs as plain Markdown at [/llms-full.txt](/llms-full.txt). - Ask the user for their **public** Solana wallet address. Never ask for a private key or seed phrase. - Store `apiKey` in the server environment as `BACKD_API_KEY`. Never put it in browser code or commit it. - Wording: say "Support", "Supporter access" and "name your price".