API ReferenceAuthentication APIGET /auth/verify-email

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.

Endpoint

GET /api/v1/public/projects/:projectSlug/auth/verify-email?token=<verification_token>

Request Parameters

Path Parameters

ParameterTypeRequiredDescription
projectSlugstringYour project’s unique slug

Query Parameters

ParameterTypeRequiredDescription
tokenstringVerification token from the email link

Example

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

https://api.aerocall.app/api/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.

Response

Success (200 OK)

Typically returns a simple success payload or redirect. Exact shape depends on your project configuration.

Error Responses

Status CodeError CodeDescription
400INVALID_TOKENToken is invalid or expired
404TOKEN_NOT_FOUNDToken not found
500INTERNAL_SERVER_ERRORServer error

Available Hooks

  • 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 →