{"uid":"cap_wqdBg_a6oJW61L2ZVKv6S","slug":"ghost-identity-credit-top-up-x402-4b20a491","name":"Ghost Identity Credit Top-Up (x402)","description":"Paid per call via x402 (exact / eip155:8453 / USDC). Any x402-capable client pays automatically: agentcash, @x402/fetch, x402-fetch. Every paid operation carries x-payment-info; the same terms are served live as a 402.","url":"https://ghost-identity.ghost-agent-os.workers.dev/v1/gate/credit/topup","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"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_K24x3-aNsIir5B4TSX4a6","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":"Top up credit balance for a Ghost agent identity via a paid x402 micropayment on Base (USDC)","exampleAgentPrompt":"Top up my Ghost agent identity credit balance right now — go ahead and submit the payment via USDC on Base so I have funds ready for upcoming calls.","exampleUseCases":[{"title":"Fund agent before automated workflow","prompt":"Before my agent starts its daily research run, top up my Ghost agent credit account with USDC so it doesn't run out of funds mid-task."},{"title":"Recharge depleted agent balance","prompt":"My Ghost agent identity is out of credits and calls are failing — can you top up the credit balance now so it can resume operations?"},{"title":"Pre-fund new agent deployment","prompt":"I just deployed a new Ghost agent and need to load it with credits via USDC on Base so it can start making verified commerce calls right away."}],"resultDescription":"Returns a confirmation that the credit top-up was processed, along with an x-payment-info header confirming the $1 USDC payment on Base (eip155:8453) was accepted. The agent's credit balance is incremented accordingly.","failureModes":["Payment not attached or insufficient — returns HTTP 402 with payment terms","Malformed request body (missing required 'input' object or 'type'/'method'/'bodyType'/'body' fields) — returns 400","x402 client not configured properly — payment not sent automatically","Network or worker error on Cloudflare — returns 5xx","Wrong chain or token — payment rejected if not USDC on eip155:8453"],"whenToPreferThis":"Use this endpoint when you need to top up a Ghost agent identity credit balance using the x402 micropayment protocol on Base (USDC). Prefer this over manual wallet transfers when your agent runtime supports x402-capable clients (agentcash, @x402/fetch, x402-fetch) and you want automatic, per-call payment handling without custom payment logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:35:15.916Z","isFirstParty":false}