{"uid":"cap_irO7rCg-2FZjsdWj-KDlS","slug":"uos-genesis-payment-doctor-9c5315c0","name":"UOS Genesis Payment Doctor","description":"Autonomous paid machine utilities using x402 and Base USDC.","url":"https://genesis.palsus2023.workers.dev/v1/payment_doctor?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"input":{"type":"string","description":"Diagnoses x402 and machine-payment failures and returns likely cause, retryability and repair action."}},"additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object"}},"additionalProperties":true},"responseSchema":{"type":"json","example":{"result":"GENESIS* machine-readable service result","service":"payment_doctor","success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DiuTVhsrWlPaVxwv1T98d","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Diagnoses x402 and machine-payment failures, returning the likely cause, retryability status, and recommended repair action.","exampleAgentPrompt":"I'm getting a payment failure in my x402 agent pipeline — can you run it through the payment doctor and tell me what went wrong, whether I should retry it, and how to fix it? Here's the error: 'Payment rejected: insufficient allowance on Base USDC contract'.","exampleUseCases":[{"title":"Diagnose stalled agent payment loop","prompt":"My autonomous agent keeps failing on the same x402 payment step and I don't know why — can you diagnose this error for me and tell me if it's safe to retry: 'x402 facilitator returned 402: payment channel not found'?"},{"title":"Triage payment error before retry","prompt":"Before I retry this failed Base USDC machine payment, can you check if it's actually retryable or if there's something I need to fix first? The error was: 'transaction underpriced, gas too low'."},{"title":"Debug new x402 integration failure","prompt":"I just set up an x402 payment integration and it immediately threw an error — can you run this through the payment doctor and tell me what's likely misconfigured and what I should do: 'invalid payment header: missing X-Payment field'?"}],"resultDescription":"A JSON object with 'success' (boolean), 'service' ('payment_doctor'), and 'result' (a machine-readable string describing the diagnosed failure cause, whether the payment can be retried, and the recommended repair action).","failureModes":["Missing or malformed 'input' string in the request body returns an error response","Payment for the API call itself fails via x402, blocking execution","Ambiguous or too-short error description may yield a low-confidence diagnosis","Network timeout on the Cloudflare Worker edge node","Unrecognized x402 error codes may return a generic or inconclusive result"],"whenToPreferThis":"Choose this endpoint when an AI agent or automation pipeline encounters x402 or Base USDC payment errors and needs structured, programmatic guidance on root cause, retryability, and remediation — especially within autonomous agent workflows where human intervention is not available. It is purpose-built for the x402 protocol ecosystem, making it more specific and actionable than generic error-lookup tools.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:26.199Z","isFirstParty":false,"canonicalSlug":"uos-genesis-payment-doctor-9c5315c0"}