Skip to main content

Email OTP

Email OTP sends a one-time code. The live method is POST https://api.verifik.co/v2/communication/email, not GET. The body requires project, validationMethod (manual or verificationCode), email, and type (validation, login, onboarding, or oneTimeLink). Optional fields include expiresAt, redirectUrl, webhookUrl, identityUrl, requires2FA, ipAddress, and language.

What the call returns​

  • email and status
  • type and validationMethod

Use cases​

  • Send a login code to a mailbox.
  • Start onboarding that continues by email.
  • Attach a webhook for delivery status.

API Reference​

Endpoint​

POST https://api.verifik.co/v2/communication/email

A successful send returns the email validation with status sent. Confirm the code with the email validation endpoint your project already uses.

Headers​

NameValueDescription
Content-Typeapplication/jsonRequest payload format
Acceptapplication/jsonResponse format
AuthorizationBearer <your_token>Client JWT

Parameters​

NameTypeRequiredExampleDescription
projectstringYesproject_idProject id that owns the email OTP.
validationMethodstringYesverificationCodemanual or verificationCode.
emailstringYesperson@example.comMailbox that receives the code. An invalid address is 409.
typestringYesvalidationvalidation, login, onboarding, or oneTimeLink.

Request​

import axios from "axios";

const options = {
method: "POST",
url: "https://api.verifik.co/v2/communication/email",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: "Bearer <your_token>",
},
data: {
"project": "project_id",
"validationMethod": "verificationCode",
"email": "person@example.com",
"type": "validation"
},
};

try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error.response ? error.response.data : error.message);
}

Response​

{
"data": {
"email": "person@example.com",
"status": "sent",
"type": "validation",
"validationMethod": "verificationCode"
},
"signature": {
"dateTime": "November 27, 2026 12:00 PM",
"message": "Certified by Verifik.co"
}
}

Notes​

  • This route is POST, not GET.
  • project, validationMethod, email, and type are required.
  • An address that is not an email is 409.
  • Send a Bearer JWT in the Authorization header.
  • The JSON sample illustrates the fields. A live call returns the record for the values you send.
  • Do not send a cache-bypass flag. This page documents only the client parameters.

Sandbox​

ScenarioParametersResult
Record on filethe example body200 when the code is sent.
Missing required valueOmit project409 MissingParameter.
Unknown valueemail: "not-an-email"409 when the email format is invalid.

401 when the bearer token is missing or rejected.