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
emailandstatustypeandvalidationMethod
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
| Name | Value | Description |
|---|---|---|
| Content-Type | application/json | Request payload format |
| Accept | application/json | Response format |
| Authorization | Bearer <your_token> | Client JWT |
Parameters
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
project | string | Yes | project_id | Project id that owns the email OTP. |
validationMethod | string | Yes | verificationCode | manual or verificationCode. |
email | string | Yes | person@example.com | Mailbox that receives the code. An invalid address is 409. |
type | string | Yes | validation | validation, login, onboarding, or oneTimeLink. |
Request
- Node.js / JavaScript
- Python
- cURL
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);
}
import requests
url = "https://api.verifik.co/v2/communication/email"
headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer <your_token>",
}
payload = {
"project": "project_id",
"validationMethod": "verificationCode",
"email": "person@example.com",
"type": "validation",
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
curl -X POST "https://api.verifik.co/v2/communication/email" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer <your_token>" \
-d '{"project":"project_id","validationMethod":"verificationCode","email":"person@example.com","type":"validation"}'
Response
- 200 (Record found)
- 409 (Missing parameter)
- 404 (Not found)
- 401 (Unauthorized)
- 500 (Source unavailable)
{
"data": {
"email": "person@example.com",
"status": "sent",
"type": "validation",
"validationMethod": "verificationCode"
},
"signature": {
"dateTime": "November 27, 2026 12:00 PM",
"message": "Certified by Verifik.co"
}
}
{
"code": "MissingParameter",
"message": "\"project\" is required"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "UNAUTHORIZED",
"message": "Authentication required"
}
{
"code": "InternalServerError",
"message": "The official source is temporarily unavailable. Please retry shortly."
}
Notes
- This route is POST, not GET.
project,validationMethod,email, andtypeare required.- An address that is not an email is 409.
- Send a Bearer JWT in the
Authorizationheader. - 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
| Scenario | Parameters | Result |
|---|---|---|
| Record on file | the example body | 200 when the code is sent. |
| Missing required value | Omit project | 409 MissingParameter. |
| Unknown value | email: "not-an-email" | 409 when the email format is invalid. |
401 when the bearer token is missing or rejected.