{"uid":"cap_eAknwKUCkBoB-_SPlRvnR","slug":"markdown-page-api-purchase-plan-255d8dcd","name":"markdown.page API - Purchase Plan","description":"Without payment credentials, returns HTTP 402 with x402 payment challenge headers. Retry with x402 payment credential headers after payment.","url":"https://api.relai.fi/relay/1781260916303/api/featured/purchase/{plan}?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","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_PmxSKX4ic3rPRhIsbHP2w","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases a subscription plan on markdown.page via x402 micropayment protocol","exampleAgentPrompt":"Purchase the 'pro' plan on markdown.page for me — go ahead and pay the $0.01 USDC fee using x402.","exampleUseCases":null,"resultDescription":"Returns a confirmation of the plan purchase and activation, including subscription status and plan details after successful x402 micropayment processing.","failureModes":["HTTP 402 returned if x402 payment credential headers are missing or invalid","Invalid plan identifier returns 404 or 400","Insufficient USDC balance causes payment failure","Network timeout during payment relay","Plan already active may return conflict error"],"whenToPreferThis":"Use this endpoint when you need to programmatically purchase or activate a markdown.page subscription plan using the x402 micropayment protocol with USDC, especially in automated agent workflows that handle crypto-native payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:30:06.425Z","isFirstParty":false,"canonicalSlug":"markdown-page-api-purchase-plan-255d8dcd"}