{"uid":"cap_emusNklJbEBEEAuzy9cYC","slug":"agentpay-x402-payment-endpoint-5f45fc52","name":"AgentPay x402 Payment Endpoint","description":"AgentPay is the x402 payment layer for autonomous AI agents, IoT devices, and businesses. Send and receive USDC payments atomically — no human required. Patent pending.","url":"https://x402-agent-pay.com/pay","method":"POST","headers":{},"bodySchema":{"type":"object","required":["payment_header"],"properties":{"resource":{"type":"string","description":"Resource URL being paid for"},"partner_id":{"type":"string","description":"Optional partner ID for revenue sharing"},"payment_header":{"type":"string","description":"Base64-encoded x402 payment header"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jBHBhcdHumu5qOvYO0gFz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Processes atomic USDC micropayments for AI agents and machines using the x402 payment protocol, enabling autonomous machine-to-machine commerce without human involvement.","exampleAgentPrompt":"Use AgentPay to send a USDC micropayment for the resource at https://example-api.com/data — here's the base64-encoded x402 payment header, and use partner ID 'partner_abc' for revenue sharing.","exampleUseCases":[{"title":"Pay for paywalled API data","prompt":"I need you to access the market data feed at https://datastream.io/api/live-prices — it's behind an x402 paywall requiring 0.02 USDC. Use AgentPay to submit the payment atomically and fetch the response once the resource is unlocked."},{"title":"Automate agent-to-agent service payments","prompt":"My research agent just finished using the summarization service at https://ai-services.io/summarize — go ahead and use AgentPay to settle the USDC micropayment owed to that agent automatically, using the x402 header it returned in the 402 response."},{"title":"IoT device pays for sensor data","prompt":"Our temperature monitoring device needs to pull calibration data from https://iot-data.io/calibration/sensor-42, which charges 0.005 USDC per request via x402. Have AgentPay handle the payment and confirm the transaction settled so the device can proceed."}],"resultDescription":"Returns a payment confirmation or receipt indicating whether the atomic USDC transaction was successfully settled, including transaction status and any relevant settlement metadata.","failureModes":["Invalid or malformed base64 payment_header — returns 400 bad request","Insufficient USDC balance in the agent wallet — returns payment failure","Resource URL not recognized or unreachable — returns 404 or validation error","Duplicate payment attempt for same resource — may be rejected as replay","Network or blockchain congestion causing settlement delay — timeout or retry required"],"whenToPreferThis":"Choose this endpoint when your AI agent or autonomous system needs to pay for access to an x402-gated resource using USDC without human intervention. Ideal for machine-to-machine micropayments, IoT device commerce, or any workflow where a pre-constructed x402 payment header needs to be submitted atomically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:30:40.621Z","isFirstParty":false}