{"uid":"cap_Mvyli_OknzJz9cngUUR71","slug":"agentpay-credits-purchase-1a3d2e86","name":"AgentPay Credits Purchase","description":"Web extraction, domain lookups and document tools for AI agents. Pay per call in USDC via x402 on Base or Algorand.","url":"https://agentpay.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_Vk6KFTNTK-2p7S8Z3_lWx","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 prepaid USDC credits on AgentPay to fund pay-per-call API usage for AI agents on Base or Algorand","exampleAgentPrompt":"Add $50 of AgentPay credits to my account so I can keep running web extraction and domain lookup calls without interruption.","exampleUseCases":[{"title":"Pre-fund agent web scraping budget","prompt":"Buy $100 worth of AgentPay credits so my AI agent has enough budget to run a bunch of web extraction calls over the next few days."},{"title":"Top up depleted API credit balance","prompt":"My AgentPay credit balance is running low — can you add $25 more in USDC credits so the agent doesn't hit a paywall mid-task?"},{"title":"Provision credits for new agent deployment","prompt":"Set up $200 of AgentPay credits to fund a new agent I'm deploying that will do heavy document parsing and domain lookups."}],"resultDescription":"Returns a confirmation of the credit purchase including the amount of USD credits added, transaction details, and updated credit balance information for the AgentPay account, paid via USDC on Base or Algorand using the x402 protocol.","failureModes":["Insufficient USDC balance in wallet — payment fails with 402 or payment error","USD amount outside allowed range (must be 1–500) — validation error returned","Invalid or missing usd query parameter — schema validation error","Network or blockchain transaction failure — timeout or transaction error","Wallet not connected or x402 payment headers missing — authentication/payment error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to pre-fund its AgentPay credit balance before making pay-per-call API requests for web extraction, document tools, or domain lookups. Prefer this over per-call x402 payments when you want to batch-fund multiple future calls or avoid repeated micropayment overhead per request.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T12:52:30.393Z","isFirstParty":false,"canonicalSlug":"agentpay-credits-purchase-1a3d2e86"}