---
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/"
---

# Verify a signup's email

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

`GET /auth/verify-email`

Resource: **Authentication**

The link `POST /auth/signup` emails. Opening it verifies the address, sets the `session` cookie and redirects to the dashboard. The link works once, for 24 hours; a dead link redirects to the dashboard's "link expired" page (`/auth/error?reason=verification_link_expired`). That redirect adds `state=verified` when the link's account is verified, or `token` (the dead token) when its signup still waits for verification, for `POST /auth/verify-email/resend`.

## Query parameters

- **`token`** _(string, required)_
  The `trtvfy_{user_id}_{secret}` token from the email.

## Code examples

### curl

```bash
curl -X GET 'https://api.truto.one/auth/verify-email' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/auth/verify-email', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/auth/verify-email"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```
