{"uid":"cap_5JMxrEKcR8h74QmSRDW0Z","slug":"urlgate-pay-to-open-link-creator-869ae7d7","name":"URLGate Pay-to-Open Link Creator","description":"Turn any URL into a link that charges USDC to open. Built on x402 v2, so AI agents can pay as easily as people.","url":"https://urlgate.xyz/api/urlgate/agent/create?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Destination (http / https) revealed after payment"},"price":{"type":"string","description":"USDC, e.g. \"0.05\". Minimum 0.01, max 6 decimals"},"title":{"type":"string","maxLength":120},"wallet":{"type":"string","description":"Payout wallet (receives 99.7% of opens (0.3% platform fee)). Optional: defaults to the signed-in wallet (or the agent key owner), else the wallet paying the creation fee; any other address is refused (403)"},"afterPay":{"enum":["receipt","redirect"],"type":"string"},"networks":{"type":"array","items":{"type":"string"},"minItems":1,"description":"CAIP-2 ids to sell on: at least one, all from GET /api/v2/networks. Omit for every enabled network. [] → 400 networks_required; a disabled or unknown id → 400 network_unavailable"},"shortcode":{"type":"string","pattern":"^[A-Za-z0-9_-]{3,20}$"},"description":{"type":"string","maxLength":500}}},"responseSchema":{"type":"json","example":{"price":"0.050000","title":"Example article","success":true,"shortUrl":"https://urlgate.xyz/Gp1qJx","createdAt":"2026-01-01T00:00:00.000Z","shortcode":"Gp1qJx","agentCreated":true,"creationMode":"paid","feeBreakdown":{"appliesTo":"each paid open","buyerPays":"0.050000","serviceFee":"0.000150","creatorReceives":"0.049850","creatorPercentage":99.7,"serviceFeePercentage":0.3},"creatorWallet":"0x1111111111111111111111111111111111111111","destinationUrl":"https://example.com/article"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ko1BXNOiKXErk_buxtDrJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a pay-gated short URL that charges visitors a specified USDC amount before revealing the destination, with the creator receiving 99.7% of each payment.","exampleAgentPrompt":"Create a URLGate pay-to-open link for https://myresearch.com/report that costs 0.10 USDC to open, with the title 'Exclusive Research Report', redirect me to the destination after payment, and send earnings to my wallet 0xAbCd1234567890abcdef1234567890ABCDEF1234.","exampleUseCases":[{"title":"Monetize a premium article","prompt":"Turn https://myblog.com/premium/how-to-scale-saas into a URLGate pay-to-open link that charges 0.25 USDC, call it 'SaaS Scaling Guide', and redirect visitors directly to the article after they pay — send revenue to 0xAbCd1234567890abcdef1234567890ABCDEF1234."},{"title":"Gate a dataset download for researchers","prompt":"Create a paid link for https://datastorage.io/datasets/genomics-v2.zip that costs 0.50 USDC to open, with the title 'Genomics Dataset v2', and use the shortcode 'genomics-v2' so I can share it easily."},{"title":"AI agent charging other agents for API access","prompt":"Set up a URLGate link pointing to https://myagentservice.io/endpoint that charges 0.02 USDC per open, titled 'Agent Inference API', so other AI agents can autonomously pay and get access via x402."}],"resultDescription":"Returns a JSON object containing the generated short URL (shortUrl), the shortcode, creation timestamp, destination URL, creator wallet address, and a detailed fee breakdown showing the buyer's cost, the 0.3% platform fee, and the 99.7% that goes to the creator per paid open. Also includes success status and whether it was agent-created.","failureModes":["400 networks_required — if an empty array is passed for networks","400 network_unavailable — if an unknown or disabled CAIP-2 network ID is provided","403 — if a wallet address other than the authorized one is specified","400 — if price is below 0.01 USDC or has more than 6 decimal places","400 — if shortcode doesn't match pattern ^[A-Za-z0-9_-]{3,20}$","402 — creation fee of $0.01 USDC not paid","409 — shortcode already taken"],"whenToPreferThis":"Choose this endpoint when you need to monetize access to any URL using USDC micropayments, especially when AI agents need to autonomously pay to access content (x402 v2 support). It is uniquely suited for pay-per-access content models, API endpoint gating, or selling exclusive links where you want near-full revenue (99.7%) with minimal setup. Prefer it over generic URL shorteners when payment gating is the primary goal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:38:07.891Z","isFirstParty":false,"canonicalSlug":"urlgate-pay-to-open-link-creator-869ae7d7"}