---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://truto.one/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Send a new verification link

> Source: https://truto.one/docs/api-reference/admin/authentication/verify-email-resend/

`POST /auth/verify-email/resend`

Resource: **Authentication**

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

- **`cf_token`** _(string)_
  The Turnstile token from the page.
- **`token`** _(string)_
  The `trtvfy_{user_id}_{secret}` token of the dead link.

## Response body

- **`success`** _(boolean)_
- **`expires_in`** _(integer)_
  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. |

## Code examples

### curl

```bash
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"
}'
```

### JavaScript

```javascript
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);
```

### Python

```python
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())
```
