Skip to content

Resend email verification token (requires authentication)

POST
/api/v1/auth/resend-verification
Code sample: cURL
curl -X POST 'https://api.justcrawl.io/api/v1/auth/resend-verification' \
-H 'Authorization: Bearer $JUSTCRAWL_ACCESS_TOKEN'

Reissues a verification email for the authenticated user. Any previously-outstanding verification tokens for this user are invalidated before the new one is created, so only the most recent email link works. 400 if the user is already verified — there’s no harmless re-send path; the client should branch on emailVerifiedAt from /api/v1/auth/login before calling. The verification link only verifies (R4/P6) — it carries no redirect context; the caller learns the new state via GET /api/v1/auth/me or a fresh login.

Verification email sent.

Media typeapplication/json
object
message
string
Examplegenerated
{
"message": "example"
}

Validation failed — request body or query is missing/invalid

Media typeapplication/json
object
error
string
Example
{
"error": "Missing or invalid \"url\" field"
}

Missing or invalid authentication token

Media typeapplication/json
object
error
string
Example
{
"error": "Missing or invalid authentication token"
}

User not found.

Unexpected server error. Logs and PostHog $exception capture

Media typeapplication/json
object
error
string
Example
{
"error": "Something went wrong"
}