{"uid":"cap_hFOynHYJg45w7fzYAs6Rv","slug":"joj-api-agent-commerce-top-up-110ffa3a","name":"JoJ API Agent Commerce Top-Up","description":"Buy access to marketplace APIs with x402 or MPP payments. https://docs.jojapi.com/consumers/agents","url":"https://agents.jojapi.net/topup","method":"POST","headers":{},"bodySchema":{"type":"object","required":["amount_usd"],"properties":{"subscribe":{"type":"array","description":"Optional: pay-as-you-go subscriptions to open with this balance"},"amount_usd":{"type":"number","description":"Amount to credit, in USD"}}},"responseSchema":{"type":"object","required":["status","account","topup"],"properties":{"topup":{"type":"object","properties":{"method":{"type":"string"},"amount_usd":{"type":"number"}}},"status":{"enum":["success"],"type":"string"},"account":{"type":"object","properties":{"nick":{"type":"string"},"balance_usd":{"type":"number","description":"Account-wide balance after the top-up"}}},"payment":{"type":"object","properties":{"rail":{"type":"string"},"method":{"type":"string"},"reference":{"type":"string"},"amount_usd":{"type":"number"}}},"subscriptions":{"type":"array","items":{"type":"object","properties":{"api":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"}}},"plan":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"type":{"type":"string"}}},"status":{"type":"string","description":"success, or why the API could not be subscribed"},"api_key":{"type":["string","null"],"description":"The key of a subscription opened by this call; null when it already existed"},"key_hint":{"type":["string","null"]},"subscription":{"type":"object","properties":{"ref":{"type":"string"},"status":{"type":"string"},"created":{"type":"boolean"}}}}},"description":"One entry per API named in subscribe (or the host API)"}}},"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_CtR5uCndUvuqof3sCVSxR","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":"Credits a JoJ API account balance with USD via x402 or MPP micropayment and optionally opens pay-as-you-go API subscriptions in the same call","exampleAgentPrompt":"Top up my JoJ API account by $5 USD and while you're at it, subscribe me to the 'weather-pro' API so I have a key ready to use.","exampleUseCases":[{"title":"Fund agent API wallet before a task","prompt":"Add $20 to my JoJ API balance right now so my agent has enough credits to run its research workflow without interruption."},{"title":"Subscribe and fund a new API in one shot","prompt":"I want to start using the 'sentiment-analysis' API on JoJ — top up my account with $10 and open a pay-as-you-go subscription to it so I get an API key back."},{"title":"Replenish low API spending balance","prompt":"My JoJ API account balance is running low — can you credit it with $3 so my calls don't start failing?"}],"resultDescription":"Returns a success status, the updated account balance in USD, details of the top-up method and amount, the payment rail and reference, and for each API named in the subscribe list: the subscription status, any newly issued API key, and plan details.","failureModes":["Payment fails or is rejected by x402/MPP rail — returns non-success status or HTTP 402","amount_usd missing or zero — validation error","Specified API slug in subscribe list not found or not available — subscription entry returns error status rather than success","Insufficient payment authorization for the requested amount","Account not recognized or auth token invalid"],"whenToPreferThis":"Use this endpoint when an AI agent needs to autonomously fund its own JoJ API marketplace account balance or activate new API subscriptions using x402 or MPP micropayments — particularly useful for self-funding agent workflows where the agent must pay per call without human intervention. Prefer this over manual top-up flows or other payment endpoints when the target APIs are hosted on the JoJ marketplace and x402 payment rails are available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:33:58.462Z","isFirstParty":false}