Enable email OTP

POST /auth/email-otp

Enable email OTP (One-Time Password) authentication. It requires verification code sent to email.

application/json

Body Required

  • email_otp string Required

    Email OTP verification code

Responses

  • 200

    Email OTP enabled

  • 400

    Email OTP already enabled or verification failed

POST /auth/email-otp
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"
}