Send auto-withdrawal email code
curl --request POST \
--url https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code', 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/send-email-code",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/send-email-code"
req, _ := http.NewRequest("POST", 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.post("https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyAuto-withdrawals
Send auto-withdrawal email code
Send a single-use email code to your account address to authorize creating, updating, or deleting Liddie auto-withdrawal rules with the emailCode MFA factor.
POST
/
api
/
v1
/
me
/
auto-withdrawals
/
send-email-code
Send auto-withdrawal email code
curl --request POST \
--url https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code', 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/send-email-code",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/send-email-code"
req, _ := http.NewRequest("POST", 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.post("https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyEmail yourself a single-use MFA code. Use it as the emailed-code factor in the
VERIFICATION_PROPS fields of Create or update a rule and Delete a rule.
This endpoint takes no parameters — the email address is inferred from your dashboard session.
If you verify with a passkey or TOTP instead, you don’t need this call.
cURL
curl -X POST https://api.liddie.io/api/v1/me/auto-withdrawals/send-email-code \
-H "Authorization: Bearer <dashboard-jwt>"
Authorization
Dashboard-only (JWT) with rolemerchant_admin, merchant_member or super_admin, plus the auto-withdrawals:manage team permission. API keys are not accepted — an API key gets 401 {"error":"Invalid or expired token"}. See the Authentication guide. Rate limit: 3 per 15 minutes.
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/send-email-code', {
method: 'POST',
headers: { Authorization: 'Bearer <dashboard-jwt>' },
})
const body = await res.json()
Errors
| Status | Body | Why |
|---|---|---|
| 401 | {"error":"Invalid or expired token"} | Called with an API key or a missing/expired dashboard JWT. |
| 429 | Rate-limit error | More than 3 requests in 15 minutes. |
See also
- Create or update a rule: the MFA-gated call this code unlocks.
- Delete a rule: also accepts this emailed code as its MFA factor.
- Authentication: all accepted MFA factors and the
VERIFICATION_PROPSfields.