users

Verify email address (with optional project context)

Verifies the user's email using the token from the link sent at signup. Supports general and project-scoped signups; the token comes from the verification link (e.g. `verify-email?token=...` or `verify-email?token=...&project=...`).

POST/api/users/verify-email

Authentication

Public — No Auth Required

Request Body

Verification token from the email link; optional projectId for project context.

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.users.verifyEmail({
  token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfZGVtbyJ9.sig_sample",
  projectId: "usr_IQE61l49gqWcvT"
});
const result = await client.users.verifyEmail({
  token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfZGVtbyJ9.sig_sample",
  projectId: "usr_IQE61l49gqWcvT"
});

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 verification token
401Authentication required or invalid token.
403Access denied or insufficient permissions.

Errors

CodeMeaning
400Invalid verification token
401Authentication required or invalid token.
403Access denied or insufficient permissions.
Edit this page on GitHub