Create crypto withdrawal
curl --request POST \
--url https://api.daya.co/coins/v1/crypto-withdrawals \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"amount": "50.00",
"asset": "USDT",
"chain": "ethereum",
"address_label": "My Ledger",
"save_address": true
}
'import requests
url = "https://api.daya.co/coins/v1/crypto-withdrawals"
payload = {
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"amount": "50.00",
"asset": "USDT",
"chain": "ethereum",
"address_label": "My Ledger",
"save_address": True
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
address: '0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
amount: '50.00',
asset: 'USDT',
chain: 'ethereum',
address_label: 'My Ledger',
save_address: true
})
};
fetch('https://api.daya.co/coins/v1/crypto-withdrawals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.daya.co/coins/v1/crypto-withdrawals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
'amount' => '50.00',
'asset' => 'USDT',
'chain' => 'ethereum',
'address_label' => 'My Ledger',
'save_address' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.daya.co/coins/v1/crypto-withdrawals"
payload := strings.NewReader("{\n \"address\": \"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\",\n \"amount\": \"50.00\",\n \"asset\": \"USDT\",\n \"chain\": \"ethereum\",\n \"address_label\": \"My Ledger\",\n \"save_address\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.daya.co/coins/v1/crypto-withdrawals")
.header("Idempotency-Key", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\",\n \"amount\": \"50.00\",\n \"asset\": \"USDT\",\n \"chain\": \"ethereum\",\n \"address_label\": \"My Ledger\",\n \"save_address\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/coins/v1/crypto-withdrawals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\",\n \"amount\": \"50.00\",\n \"asset\": \"USDT\",\n \"chain\": \"ethereum\",\n \"address_label\": \"My Ledger\",\n \"save_address\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"amount": "50.00",
"asset": "USDT",
"bridge_fee": "0",
"chain": "ethereum",
"completed_at": "2026-01-15T10:32:00Z",
"created_at": "2026-01-15T10:30:00Z",
"failure_reason": "withdrawal failed",
"id": "9c2504e0-4f89-41d3-9a0c-0305e82c3303",
"status": "processing",
"to_address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"transaction_hash": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060",
"type": "withdrawal"
},
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}Crypto Withdrawals
Create crypto withdrawal
POST
/
crypto-withdrawals
Create crypto withdrawal
curl --request POST \
--url https://api.daya.co/coins/v1/crypto-withdrawals \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"amount": "50.00",
"asset": "USDT",
"chain": "ethereum",
"address_label": "My Ledger",
"save_address": true
}
'import requests
url = "https://api.daya.co/coins/v1/crypto-withdrawals"
payload = {
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"amount": "50.00",
"asset": "USDT",
"chain": "ethereum",
"address_label": "My Ledger",
"save_address": True
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
address: '0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
amount: '50.00',
asset: 'USDT',
chain: 'ethereum',
address_label: 'My Ledger',
save_address: true
})
};
fetch('https://api.daya.co/coins/v1/crypto-withdrawals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.daya.co/coins/v1/crypto-withdrawals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
'amount' => '50.00',
'asset' => 'USDT',
'chain' => 'ethereum',
'address_label' => 'My Ledger',
'save_address' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.daya.co/coins/v1/crypto-withdrawals"
payload := strings.NewReader("{\n \"address\": \"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\",\n \"amount\": \"50.00\",\n \"asset\": \"USDT\",\n \"chain\": \"ethereum\",\n \"address_label\": \"My Ledger\",\n \"save_address\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.daya.co/coins/v1/crypto-withdrawals")
.header("Idempotency-Key", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\",\n \"amount\": \"50.00\",\n \"asset\": \"USDT\",\n \"chain\": \"ethereum\",\n \"address_label\": \"My Ledger\",\n \"save_address\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/coins/v1/crypto-withdrawals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\",\n \"amount\": \"50.00\",\n \"asset\": \"USDT\",\n \"chain\": \"ethereum\",\n \"address_label\": \"My Ledger\",\n \"save_address\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"amount": "50.00",
"asset": "USDT",
"bridge_fee": "0",
"chain": "ethereum",
"completed_at": "2026-01-15T10:32:00Z",
"created_at": "2026-01-15T10:30:00Z",
"failure_reason": "withdrawal failed",
"id": "9c2504e0-4f89-41d3-9a0c-0305e82c3303",
"status": "processing",
"to_address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"transaction_hash": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060",
"type": "withdrawal"
},
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}Authorizations
Your Daya API key, sent in the X-API-Key header. Issue and scope keys in the Daya dashboard.
Headers
Stable key for this logical operation; reuse it for every retry
Body
application/json
Withdrawal request
⌘I