Send a one-time password (OTP) by email to the current user. Use this code to enable the email OTP.
PUT
/auth/email-otp
curl
curl -X PUT "http://api.example.com/auth/email-otp" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
import requests
url = "http://api.example.com/auth/email-otp"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
params = {}
payload = None
response = requests.put(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())