/v1/verification/verifyVerify an email code
Request body
code*stringVerification code from the email link.
Example: "a1b2c3d4…"
Response · 200 Email verified successfully
message*stringHuman-readable message
Example: "Email verified successfully"
Example
Request
POST https://api.platform-auth.productcraft.co/v1/verification/verify
Content-Type: application/json
{
"code": "a1b2c3d4…"
}import { PlatformAuth } from "@productcraft/platform-auth";
// Reads PRODUCTCRAFT_API_KEY from the environment; administration
// calls take a person's session: { auth: { type: "bearer", token } }
const platform = new PlatformAuth();
const feedback = await platform.verification.verify({ code: "a1b2c3d4…" });platform.verification.verify(params, options?): PlatformAuth.Feedback
Response
{
"message": "Email verified successfully"
}