Send a new verification link
/auth/verify-email/resend
Mails a new verification link for the account a dead verification link belonged to, to that account's own address. Called by the dashboard's "link expired" page with the token its redirect carries. The token only names the account; it proves nothing.
Protected by Turnstile (cf_token), a per-IP limit (20 a minute) and one link per account a minute (429).
Request Body
The Turnstile token from the page.
The trtvfy_{user_id}_{secret} token of the dead link.
Response Body
Seconds until the account is removed if it is still not verified: 24 hours after the first signup, which a new link does not move. At most 86400.
Errors
| Status | Description |
|---|---|
400 | A missing or invalid field, a cf_token Turnstile refused, or a token that names no account waiting for verification (an account not verified within 24 hours is removed). |
404 | Self-serve signup is not offered here. |
409 | The email is already verified (code email_already_verified). Sign in instead. |
429 | A link was sent for this account in the last 60 seconds (it still works), or too many requests from this IP. |
503 | The mail could not be sent. Retry. |
curl -X POST 'https://api.truto.one/auth/verify-email/resend' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json' \
-d '{
"cf_token": "your_cf_token",
"token": "your_token"
}'const body = {
"cf_token": "your_cf_token",
"token": "your_token"
};
const response = await fetch('https://api.truto.one/auth/verify-email/resend', {
method: 'POST',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/auth/verify-email/resend"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
payload = {
"cf_token": "your_cf_token",
"token": "your_token"
}
response = requests.post(url, headers=headers, params=params, json=payload)
print(response.json())