Skip to main content
Sends money from your master wallet, or from one of your users’ addresses, to an address outside Minisend.
Call this from your server only, never from a browser or app, so your API key stays secret.
Before you can withdraw, the address you’re sending to has to be on your approved list. You add it in Dashboard → Wallets → Settings, and it can’t be done with an API key. That’s on purpose: if a key could approve an address and also send to it, anyone who got hold of the key could empty your balance.

Endpoint

The key needs the withdraw permission (scope). It’s off on every key to start with, including older keys, so turn it on only for a key that should be able to send money out.

Body

string
required
"master" to withdraw from your master wallet, or the walletRef of the address to withdraw from.
string
required
The network to send on.
string
required
USDC or USDT.
number
required
A positive amount of the coin. If it has more decimal places than the coin allows, we refuse it rather than round it, because rounding could send more than you meant to.
string
required
Has to be on your approved list already.
string
Any text unique to this withdrawal. If you send the same key with the same request again, you get the original withdrawal back instead of a second one. Sending it with a different source, chain, token, amount, or destination_address is refused with 409.

Example

Response (202)

You get 202, not 200, because we’ve accepted the withdrawal and send it shortly after. Check get a withdrawal or wait for wallet.withdrawal.completed to see how it went. If you send an idempotency_key you’ve used before, you get 200 with the original withdrawal.
string
required
queued, sending, completed, or failed.
string
What you sent: "master", or the walletRef the money came from.
string
The blockchain transaction ID, once sent. null until then, and when failed.

Listing your withdrawals

Needs a key with wallets:read.
number
default:"20"
How many to return at once, up to 100.
number
default:"0"
How many to skip. Use it to get the next page.
Each one has the same fields as the response above.

Errors