Skip to content

GET /auth/verify-email

Verify a user’s email address using the token sent in the verification email. Typically the user clicks a link that opens this endpoint with the token in the query string.

GET /v1/public/projects/:projectSlug/auth/verify-email?token=<verification_token>
ParameterTypeRequiredDescription
projectSlugstringYour project’s unique slug
ParameterTypeRequiredDescription
tokenstringVerification token from the email link

After the user signs up, they receive an email with a link like:

https://api.aerostack.dev/v1/public/projects/your-project/auth/verify-email?token=abc123...

When the user opens that link (GET request), the backend marks their email as verified. You can then allow full access or redirect them to your app.

{
"message": "Email verified successfully"
}
Status CodeError CodeDescription
400INVALID_TOKENToken is invalid or expired
404TOKEN_NOT_FOUNDToken not found
500INTERNAL_SERVER_ERRORServer error
  • Event: auth.email.verified
    • When: After email is successfully verified
    • Can do: Send additional onboarding emails, grant access in external systems

Configure in Project → Hooks. Learn more about hooks →