Skip to main content
POST
Withdraw an asset to an address on any supported chain

Authorizations

X-API-Key
string
header
required
X-Grant-Token
string
header
required

Token of the owner grant a delegated request runs under. The partner creates it and the owner signs its commitment; keep it on your backend.

Headers

Idempotency-Key
string
required

Stable key for one logical request. Replays with the same key and body return the original result; a different body is refused with idempotency_conflict.

Required string length: 8 - 128
Pattern: ^[A-Za-z0-9._:-]+$

Path Parameters

agent_id
string
required
Pattern: ^[0-9a-f]{64}$

Body

application/json
asset
string
required
Required string length: 1 - 256
amount
string
required
Pattern: ^(?!0+$)[0-9]{1,78}$
chain
string
required
Required string length: 1 - 64
recipient
string
required
Required string length: 1 - 128
memo
string
Maximum string length: 256
reference
string
Pattern: ^[\x21-\x7e]{1,128}$
note
string
Pattern: ^[^\p{Cc}\p{Cs}\p{Zl}\p{Zp}]{1,500}$
confidential
boolean
default:true
async
boolean
default:false
dry
boolean
default:false

Response

Success: a dry preview

dry
boolean
required
type
enum<string>
required
Available options:
swap,
withdraw,
limit_order
quote
object
required
spend
object
required
owner_approval
boolean
required
fee
object | null
required
warnings
object[]
required