{"uid":"cap_Ifm6gQgR5iiKNKvo3H1Ua","slug":"doc-tools-credits-purchase-cfd19f2a","name":"Doc Tools - Credits Purchase","description":"PDF to text, RSS/Atom feeds to JSON, sitemaps to URL lists.","url":"https://agentpay-tools.agentpay-apis.workers.dev/credits/buy?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"usd":{"type":"string","description":"Credit amount in USD (1-500)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","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":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6AlmzCrEqX_4YB90t2Pjv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchase processing credits for the Doc Tools service (PDF-to-text, RSS/Atom-to-JSON, sitemap-to-URL-list) via a USDC micropayment.","exampleAgentPrompt":"Buy $10 worth of Doc Tools credits on AgentPay so I can start converting PDFs to text and parsing RSS feeds.","exampleUseCases":[{"title":"Fund PDF conversion pipeline","prompt":"Purchase $25 in Doc Tools credits on AgentPay so our automated pipeline can keep converting PDF reports to text without interruption."},{"title":"Top up RSS feed parsing budget","prompt":"Buy $5 of Doc Tools credits so I can parse a batch of RSS and Atom feeds into JSON today."},{"title":"Prepay for sitemap extraction work","prompt":"Add $50 in credits to my Doc Tools account — I need to process a bunch of sitemaps into URL lists for a crawl job."}],"resultDescription":"Returns a JSON confirmation of the credit purchase, including the amount of credits bought, payment status, and likely a transaction or balance reference from the AgentPay x402 payment system.","failureModes":["Amount outside allowed range (must be 1-500 USD) returns validation error","Payment failure or insufficient USDC returns payment error","Invalid or missing 'usd' query parameter returns 400 bad request","Service unavailable on Cloudflare Workers returns 503"],"whenToPreferThis":"Use this endpoint when you need to pre-purchase credits specifically for the AgentPay Doc Tools service (PDF-to-text, RSS/Atom-to-JSON, sitemap parsing) before making document processing calls. Choose this over alternatives when working within the AgentPay x402 micropayment ecosystem on Cloudflare Workers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:31:58.566Z","isFirstParty":false,"canonicalSlug":"doc-tools-credits-purchase-cfd19f2a"}