· URLGate News

Sell a prompt pack, dataset, or course lesson with a paid link

Illustration of a file, a dataset, and a lesson, each locked and joined into one paid Urlgate link.

If you have a prompt pack, a dataset download, or a single course lesson, you should not need a full storefront to get paid for it. One practical way to monetize links is to put a pay-per-link shortlink in front of the file or page itself.

Urlgate turns any URL into a paid shortlink. You paste the destination, set a price in USDC, and share a link on urlgate.xyz. New links must be priced at least 0.01 USDC by default (the live floor is in /api/v2/config). A person who opens the shortlink sees a paywall and pays from a wallet. An AI agent requests the same URL, receives HTTP 402 Payment Required with an x402 price, pays in USDC, and retries. In both cases one payment unlocks that one resource.

This is a link paywall, not a subscription platform and not a traditional pay-per-click ad. You sell access to a link. The destination stays hidden until payment settles. Urlgate verifies and settles the payment itself (native x402 settlement; there is no facilitator). A paid open is two USDC transfers: the price to your wallet and a small platform fee (0.3%) to Urlgate. Buyers sign EIP-3009 authorizations and do not need gas. A returning wallet can re-open the same link without paying again, using Sign-In-With-X or a session.

Creating a link from the website form is free. You can also create links over the API or MCP: those are free within a daily quota when you are signed in or when you use an agent key, and otherwise are charged via x402.

If you want a pay-per-click link alternative that works for people and agents, start with a single item worth paying for, price it clearly, and share the shortlink.

Gate a link at urlgate.xyz

Create a paid linkRead as markdown

For agents

Machine-readable summary for AI agents and their builders. Always trust the live 402 challenge and GET https://urlgate.xyz/api/v2/config over any number on this page.

Example (a 0.05 USDC link at 0.3%: 49850 units to the creator, 150 units to URLGate):

GET https://urlgate.xyz/Gp1qJx
Accept: application/json

402 Payment Required
PAYMENT-REQUIRED: base64({ x402Version: 2,
  accepts: [{ scheme: "exact", network: "eip155:8453", amount: "49850", payTo: "0xCreator…", … }],
  extensions: { "platform-fee": { accepts: [{ scheme: "exact", network: "eip155:8453", amount: "150", payTo: "0xURLGate…", … }] } } })

GET https://urlgate.xyz/Gp1qJx
Accept: application/json
PAYMENT-SIGNATURE: base64(PaymentPayload for accepts[0])
PAYMENT-SIGNATURE-FEE: base64(PaymentPayload for extensions["platform-fee"].accepts[0])

200 OK
PAYMENT-RESPONSE: base64(settlement)
{ "destination": "https://…", "receiptUrl": "…" }

FAQ

What is URLGate?

A pay-to-open URL shortener: any URL becomes a short link that people and AI agents unlock by paying USDC over x402.

What does HTTP 402 mean?

HTTP 402 is Payment Required. x402 uses it: the server answers 402 with a price, the client pays in USDC and retries the same request.

Request the link with Accept: application/json and read the x402 v2 challenge in the PAYMENT-REQUIRED header. Sign two USDC authorizations with the same wallet on the same network (PAYMENT-SIGNATURE for the creator, PAYMENT-SIGNATURE-FEE for the 0.3% platform fee) and send both in one retry. URLGate verifies and settles the payment itself; there is no facilitator. A wallet that already paid gets back in with SIGN-IN-WITH-X or a Bearer token, without paying again.

0.01 USDC on this host (the default is 0.01 USDC). The live value is in GET https://urlgate.xyz/api/v2/config.

Which networks does URLGate accept?

USDC on Base (eip155:8453), Polygon (eip155:137), Arbitrum (eip155:42161) on this host. The code supports Base, Base Sepolia, Polygon, Arbitrum. Read accepts[] in the 402, /.well-known/x402 or /api/v2/config for the current list.

The website create form is free. Over the API or MCP, creating links is free within a daily quota when signed in or with an agent key; otherwise the 0.01 USDC creation fee is charged via x402.

All news · RSS