Sign-in · sendEmailConfirmation
Email a link to confirm your email
POST /api/auth/verify-email
Sends the signed-in human a link that verifies their email (needed to accept invitations). It keeps their password and passkeys.
- Who may call it
- Anyone (no credentials)
- Server
- https://api.logu.dev
Request body#
Content type application/json (required).
| Field | Type | Required | Notes |
|---|---|---|---|
locale | "en" | "pt-BR" | optional | default "en" |
{
"locale": "en"
}
Example#
curl -s -X POST "https://api.logu.dev/api/auth/verify-email" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{"locale":"en"}'
Responses#
200
Sent, or already verified.
{
"ok": true,
"email": "ana@example.com",
"alreadyVerified": false
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
ok | true | required | |
email | string | required | |
alreadyVerified | boolean | required |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 400 | unknown_field | The body has a field the endpoint doesn't know (often a typo or snake_case). |
| 400 | bad_request | The request is malformed or a field is invalid (see issues). |
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 429 | rate_limited | This API key sent too many requests, or a human did too much too fast: sign-in attempts, workspaces created in a day, or a global daily cap on new accounts was reached. |
| 500 | internal_error | Something went wrong on Logu's side. |
| 503 | service_unavailable | A dependency is down or a feature isn't configured on this server. |