curl --request POST \
--url https://api.starkfi.io/security/email/send-otp \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{"email":"user@example.com"}'
const response = await fetch("https://api.starkfi.io/security/email/send-otp", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "<api_key>",
},
body: JSON.stringify({ email: "user@example.com" }),
});
const data = await response.json();
import requests
response = requests.post(
"https://api.starkfi.io/security/email/send-otp",
headers={"Content-Type": "application/json", "x-api-key": "<api_key>"},
json={"email": "user@example.com"},
)
data = response.json()
{
"statusCode": 201,
"success": true,
"status": "otp_sent",
"message": "Verification code sent to your email"
}
{
"statusCode": 400,
"success": false,
"status": "missing_params",
"message": "email is required"
}
{
"statusCode": 400,
"success": false,
"status": "email_already_verified",
"message": "Email is already verified"
}
{
"statusCode": 404,
"success": false,
"status": "user_not_found",
"message": "User not found in whitelist"
}
{
"statusCode": 500,
"success": false,
"status": "server_error",
"message": "Server failed, try again later"
}
KYC
Send email OTP (KYC)
Send a one-time verification code to a whitelist email registered for KYC.
POST
/
security
/
email
/
send-otp
curl --request POST \
--url https://api.starkfi.io/security/email/send-otp \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{"email":"user@example.com"}'
const response = await fetch("https://api.starkfi.io/security/email/send-otp", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "<api_key>",
},
body: JSON.stringify({ email: "user@example.com" }),
});
const data = await response.json();
import requests
response = requests.post(
"https://api.starkfi.io/security/email/send-otp",
headers={"Content-Type": "application/json", "x-api-key": "<api_key>"},
json={"email": "user@example.com"},
)
data = response.json()
{
"statusCode": 201,
"success": true,
"status": "otp_sent",
"message": "Verification code sent to your email"
}
{
"statusCode": 400,
"success": false,
"status": "missing_params",
"message": "email is required"
}
{
"statusCode": 400,
"success": false,
"status": "email_already_verified",
"message": "Email is already verified"
}
{
"statusCode": 404,
"success": false,
"status": "user_not_found",
"message": "User not found in whitelist"
}
{
"statusCode": 500,
"success": false,
"status": "server_error",
"message": "Server failed, try again later"
}
string
required
Your StarkFi API key when required by your environment.
string
required
Email previously registered with
POST /kyc/prepare. Lookup uses lowercase internally.curl --request POST \
--url https://api.starkfi.io/security/email/send-otp \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{"email":"user@example.com"}'
const response = await fetch("https://api.starkfi.io/security/email/send-otp", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "<api_key>",
},
body: JSON.stringify({ email: "user@example.com" }),
});
const data = await response.json();
import requests
response = requests.post(
"https://api.starkfi.io/security/email/send-otp",
headers={"Content-Type": "application/json", "x-api-key": "<api_key>"},
json={"email": "user@example.com"},
)
data = response.json()
{
"statusCode": 201,
"success": true,
"status": "otp_sent",
"message": "Verification code sent to your email"
}
{
"statusCode": 400,
"success": false,
"status": "missing_params",
"message": "email is required"
}
{
"statusCode": 400,
"success": false,
"status": "email_already_verified",
"message": "Email is already verified"
}
{
"statusCode": 404,
"success": false,
"status": "user_not_found",
"message": "User not found in whitelist"
}
{
"statusCode": 500,
"success": false,
"status": "server_error",
"message": "Server failed, try again later"
}
⌘I
.png?fit=max&auto=format&n=I_v6ul4JDafNKFQP&q=85&s=f0ad25536f8a3ca42331fcff88ab2b26)