Enable email OTP (One-Time Password) authentication. It requires verification code sent to email.
POST
/auth/email-otp
curl
curl -X POST "http://api.example.com/auth/email-otp" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"email_otp": ""
}'
import requests
url = "http://api.example.com/auth/email-otp"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json",
"Content-Type": "application/json"
}
params = {}
payload = {
"email_otp": ""
}
response = requests.post(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())
curl \
--request POST 'http://api.example.com/auth/email-otp' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"email_otp":"string"}'
Request examples
{
"email_otp": "string"
}