auth
Verify email address (no auth)
Verifies the user's email using the token from the link sent at signup. Use for project-scoped or general signup flows (unauthenticated). Same behavior as POST /api/users/verify-email.
POST
/api/auth/verify-emailAuthentication
Public — No Auth Required
Request Body
Verification token from the email link; optional `projectId` for project-scoped signup.
json
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfZGVtbyJ9.sig_sample",
"projectId": "proj_qh5hFHNT70YZ"
}{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfZGVtbyJ9.sig_sample",
"projectId": "proj_qh5hFHNT70YZ"
}SDK setup
Create a client instance. No authentication is required for this endpoint.
import { MudbaseClient } from "mudbase";
const client = new MudbaseClient();import { MudbaseClient } from "mudbase";
const client = new MudbaseClient();Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const result = await client.auth.verifyEmail({
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfZGVtbyJ9.sig_sample",
projectId: "proj_Ft5Vs0FmNesE"
});const result = await client.auth.verifyEmail({
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfZGVtbyJ9.sig_sample",
projectId: "proj_Ft5Vs0FmNesE"
});Try It Live
Test this endpoint with your own credentials. Your requests will be sent to the live API.
No Request Yet
Send a request to see the full inspector
Responses
200Email verified
json
{
"message": "Email verified successfully"
}{
"message": "Email verified successfully"
}400Invalid or missing token
500Unexpected server error while verifying the email token.
Errors
| Code | Meaning |
|---|---|
400 | Invalid or missing token |
500 | Unexpected server error while verifying the email token. |