English
cURL
curl --request POST \ --url https://mainnet.anyspend.com/onramp/coinbase/session-token \ --header 'Content-Type: application/json' \ --data ' { "destinationAddress": "0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1", "blockchains": [ "base" ], "assets": [ "USDC" ] } '
{ "success": true, "message": "Session token created successfully", "data": { "token": "token_123", "channelId": "channel_abc" }, "statusCode": 200 }
Generates a Coinbase Onramp session token that can be reused when constructing buy URLs.
Request body to create a Coinbase session token
Wallet address that will receive purchased assets
"0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1"
List of supported blockchain identifiers
["base"]
Optional list of asset symbols to whitelist
["USDC"]
Session token created successfully
true
"Session token created successfully"
Coinbase session token result
Show child attributes
Session token identifier
"token_123"
Optional session channel identifier
"channel_abc"
200