{"uid":"cap_80aUllMlgdj_XXTSdK1fk","slug":"treza-labs-credits-top-up-via-x402-db70ba63","name":"Treza Labs Credits Top-Up via x402","description":"Top up a Treza prepaid credit balance by $5.00 via x402. Authenticate with a Treza bearer (API key, OAuth token, or session) to choose the account credited.","url":"https://www.trezalabs.com/api/billing/credits/x402","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"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"5","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":"$5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RxMxquu3oGENK5mpyZo7t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Adds $5.00 USD worth of prepaid credit balance to a Treza account using x402 micropayment protocol","exampleAgentPrompt":"Add $5 of prepaid credits to my Treza Labs account — use my API key to identify which account to top up.","exampleUseCases":[{"title":"Automated credit refill for agent","prompt":"My Treza account balance is running low — go ahead and top it up with $5 of credits using my Treza API key so my agent can keep running."},{"title":"Onboarding to Treza platform","prompt":"I just signed up for Treza Labs and want to get started — add the $5 starter credit pack to my new account using my session token."},{"title":"Scheduled credit maintenance","prompt":"Top up my Treza prepaid balance by $5 using my OAuth token — I want to make sure I have enough credits before my batch jobs run tonight."}],"resultDescription":"A confirmation that $5.00 USD in prepaid credits has been successfully added to the authenticated Treza account, along with the updated balance or transaction details.","failureModes":["x402 payment failure — insufficient USDC balance in payment wallet","Authentication failure — invalid, expired, or missing bearer token","Account not found — authenticated identity does not resolve to a valid Treza account","Duplicate payment rejection — same payment reference submitted twice","Network or gateway timeout during payment processing"],"whenToPreferThis":"Use this endpoint when you need to programmatically top up a Treza Labs prepaid credit balance in exactly $5.00 increments via x402 USDC micropayment. It is the only endpoint for adding credits to Treza accounts; prefer it over manual top-up flows when automating credit maintenance, building self-funding agent pipelines, or when your agent detects a low-balance condition on a Treza account.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:33:45.416Z","isFirstParty":false}