Skip to main content

이메일 OTP

이메일 OTP는 일회용 코드를 보냅니다. 실제 메서드는 GET이 아니라 POST https://api.verifik.co/v2/communication/email입니다. 본문에는 project, validationMethod(manual 또는 verificationCode), email, type(validation, login, onboarding, oneTimeLink)이 필요합니다. 선택 필드는 expiresAt, redirectUrl, webhookUrl, identityUrl, requires2FA, ipAddress, language입니다.

응답에 포함되는 값​

  • email과 status
  • type과 validationMethod

사용 사례​

  • 메일함으로 로그인 코드를 보냅니다.
  • 이메일로 이어지는 온보딩을 시작합니다.
  • 전달 상태 웹훅을 붙입니다.

API 레퍼런스​

Endpoint​

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

성공한 발송은 상태 sent인 이메일 검증을 반환합니다. 프로젝트가 이미 쓰는 이메일 검증 엔드포인트로 코드를 확인합니다.

Headers​

이름값설명
Content-Typeapplication/json요청 형식
Acceptapplication/json응답 형식
AuthorizationBearer <token>클라이언트 JWT

Parameters​

이름유형필수예시설명
projectstring예project_id이메일 OTP를 소유한 프로젝트 id.
validationMethodstring예verificationCodemanual 또는 verificationCode.
emailstring예person@example.com코드를 받는 메일함. 잘못된 주소는 409입니다.
typestring예validationvalidation, login, onboarding, 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"
}
}

참고​

  • 이 경로는 GET이 아니라 POST입니다.
  • project, validationMethod, email, type은 필수입니다.
  • 이메일이 아닌 주소는 409입니다.
  • Authorization 헤더에 Bearer JWT를 보냅니다.
  • JSON 예시는 필드 모양입니다. 실제 호출은 보낸 값의 레코드를 반환합니다.
  • 캐시 우회 플래그는 보내지 않습니다. 이 페이지는 클라이언트 파라미터만 설명합니다.

샌드박스​

시나리오파라미터결과
원천에 기록 있음the example body코드가 보내지면 200.
필수 값 누락Omit project409 MissingParameter.
알 수 없는 값email: "not-an-email"이메일 형식이 틀리면 409.

401 when the bearer token is missing or rejected.