Skip to main content

API Key Access via Email

Endpoint​

https://api.verifik.co/v2/projects/email-login

Request an OTP to be sent to a registered client email.

Headers​

NameValue
Acceptapplication/json

Params​

NameTypeRequiredDescription
emailstringYesClient email to receive the OTP.

Request​

import axios from "axios";

const { data } = await axios.post("https://api.verifik.co/v2/projects/email-login", null, {
params: { email: "user@example.com" },
headers: { Accept: "application/json" },
});
console.log(data);

Response​

{
"data": {
"status": "sent",
"email": "user@example.com",
"expiresAt": "2025-06-13T17:24:58.000Z"
},
"signature": {"message": "Certified by Verifik.co", "dateTime": "January 16, 2024 3:44 PM"},
"id": "EML01"
}

Endpoint​

https://api.verifik.co/v2/projects/email-login/confirm

Confirm the OTP and obtain a JWT access token.

Headers​

NameValue
Acceptapplication/json

Params​

NameTypeRequiredDescription
emailstringYesEmail used in the OTP request.
otpstringYesOTP received by email.

Request​

import axios from "axios";

const { data } = await axios.post("https://api.verifik.co/v2/projects/email-login/confirm", { email: "user@example.com", otp: "123456" }, { headers: { Accept: "application/json" } });
console.log(data);

Response​

{
"data": {
"accessToken": "<jwt>",
"tokenType": "bearer"
}
}