Skip to content

Resend email verification token (requires authentication)

POST
/api/v1/auth/resend-verification
Code sample: cURL
curl -X POST 'https://dashboard.justcrawl.io/api/v1/auth/resend-verification' \
-H 'Authorization: Bearer $JUSTCRAWL_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"context":"onboarding"}'

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. Pass context: "onboarding" to receive a verification link that redirects into the onboarding wizard after clicking, rather than the dashboard home.

Media type application/json
object
context

Optional redirect context for the verification link.

string
Allowed values: onboarding

Verification email sent.

Media type application/json
object
message
string
Example generated
{
"message": "example"
}

Validation failed — request body or query is missing/invalid

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

Missing or invalid authentication token

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

User not found.

Unexpected server error. Logs and PostHog $exception capture

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