List auto-withdrawal rules
curl --request GET \
--url https://api.liddie.io/api/v1/me/auto-withdrawals \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.liddie.io/api/v1/me/auto-withdrawals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.liddie.io/api/v1/me/auto-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.liddie.io/api/v1/me/auto-withdrawals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.liddie.io/api/v1/me/auto-withdrawals"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.liddie.io/api/v1/me/auto-withdrawals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liddie.io/api/v1/me/auto-withdrawals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"currency": "<string>",
"enabled": true,
"minAmount": "<string>",
"amountMode": "<string>",
"destination": "<string>",
"destinationTag": "<string>",
"lastTriggeredAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}Auto-withdrawals
List auto-withdrawal rules
List your Liddie auto-withdrawal rules — per-currency standing instructions that sweep account balances to whitelisted crypto addresses on a schedule.
GET
/
api
/
v1
/
me
/
auto-withdrawals
List auto-withdrawal rules
curl --request GET \
--url https://api.liddie.io/api/v1/me/auto-withdrawals \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.liddie.io/api/v1/me/auto-withdrawals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.liddie.io/api/v1/me/auto-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.liddie.io/api/v1/me/auto-withdrawals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.liddie.io/api/v1/me/auto-withdrawals"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.liddie.io/api/v1/me/auto-withdrawals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liddie.io/api/v1/me/auto-withdrawals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"currency": "<string>",
"enabled": true,
"minAmount": "<string>",
"amountMode": "<string>",
"destination": "<string>",
"destinationTag": "<string>",
"lastTriggeredAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}List your auto-withdrawal rules — one per currency.
A rule says: “whenever my balance reaches X, send it to this whitelisted address automatically.”
The example shows an account with no rules configured.
cURL
curl https://api.liddie.io/api/v1/me/auto-withdrawals \
-H "Authorization: Bearer <dashboard-jwt>"
200 OK
{ "ok": true, "data": [] }
Authorization
Dashboard-only (JWT) with rolemerchant_admin, merchant_member or super_admin, plus the auto-withdrawals:view team permission. API keys are not accepted — calling this endpoint with an API key fails with 401 {"error":"Invalid or expired token"}. See the Authentication guide. Rate limit: 60/min.
This endpoint takes no parameters — the rules are scoped to the merchant in your dashboard session.
Full request example
JavaScript
// Dashboard-session auth: send the dashboard JWT as a Bearer token.
const res = await fetch('https://api.liddie.io/api/v1/me/auto-withdrawals', {
headers: { Authorization: 'Bearer <dashboard-jwt>' },
})
const { ok, data } = await res.json()
Response fields
| Field | Description |
|---|---|
ok | true on success. |
data | Array of your auto-withdrawal rules (one per currency). Empty when no rules are configured. |
Errors
| Status | Body | Why |
|---|---|---|
| 401 | {"error":"Invalid or expired token"} | Called with an API key or a missing/expired dashboard JWT — this endpoint is dashboard-only. |
Rule fields
string
The rule id.
string
The currency this rule watches.
boolean
Whether the rule fires.
string
The trigger threshold, as an exact decimal string.
string
all (sweep the full available balance) or fixed (send exactly minAmount). Defaults to all.string
The payout address. Must already be on your withdrawal whitelist.
string
Present only for tag-based currencies (XRP).
string
ISO timestamp of the last firing. Absent until the rule has fired once.
string
ISO timestamp.
string
ISO timestamp.
See also
- Create or update a rule: add or change the per-currency rules returned here.
- Delete a rule: remove a rule by id (MFA-gated).
- Authentication: why this endpoint takes a dashboard JWT, not an API key.