{"uid":"cap_X8tO2esM1LJcmJRIbUrK-","slug":"memory-withzero-xyz-withdraw-unspent-prepaid-balance-memory-withzero-3fd1f9a7","name":"Withdraw Unspent Prepaid Balance (memory.withzero.xyz)","description":"Withdraw unspent prepaid balance.","url":"https://memory.withzero.xyz/api/v1/deposits","method":"DELETE","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["amount_micros"],"properties":{"amount_micros":{"type":"string","pattern":"^[1-9]\\d*$","description":"Amount of unspent balance to withdraw, in USDC micros. Positive integer."}},"additionalProperties":false},"responseSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["owner","withdrawn_micros","balance_micros","refund_tx_hash"],"properties":{"owner":{"type":"string"},"balance_micros":{"type":"string","description":"Prepaid balance after the withdrawal."},"refund_tx_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"On-chain USDC refund transaction hash."},"withdrawn_micros":{"type":"string"}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"proven_free","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":"free","summary":"Free","primary":null,"accepted":[]},"paymentMethods":[],"brandName":"memory.withzero.xyz","brandSlug":"memory-withzero-xyz-mpp","brandBaseUrl":"https://memory.withzero.xyz","brandDocsUrl":null,"whatItDoes":"Withdraws a specified amount of unspent USDC prepaid balance from the memory.withzero.xyz agent memory service and refunds it on-chain.","exampleAgentPrompt":"Withdraw 1,000,000 micros (1 USDC) of my unspent prepaid balance from my memory.withzero.xyz account and send it back to me on-chain.","exampleUseCases":null,"resultDescription":"Returns the account owner identifier, the amount withdrawn in USDC micros, the remaining prepaid balance in USDC micros after the withdrawal, and the on-chain USDC refund transaction hash (or null if not yet settled).","failureModes":["amount_micros exceeds available balance — insufficient funds error","amount_micros is zero or negative — rejected by pattern validation (must be positive integer)","amount_micros is not a valid string-encoded positive integer — schema validation failure","No active deposit exists to withdraw from — empty balance error","On-chain transaction failure — refund_tx_hash may be null and retry may be needed","Authentication/authorization failure — caller is not the account owner"],"whenToPreferThis":"Use this endpoint when an AI agent or user wants to reclaim unspent USDC that was previously deposited into the memory.withzero.xyz prepaid memory balance, either partially or fully, and wants the funds returned on-chain. Prefer this over simply stopping usage when the user explicitly wants funds back rather than letting the balance sit.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":3,"lastUsedAt":"2026-07-29T00:21:25.434Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:39:50.586Z","isFirstParty":true}