ZITADEL Docs
APIsCore ResourcesV2User

AddOTPEmail

Add OTP Email for a user

Add a new OTP Email factor to the authenticated user. OTP Email will enable the user to verify an OTP with the latest verified email. The email has to be verified to add the second factor..

POST
/v2/users/{user_id}/otp_email

Path Parameters

user_id*string

Response Body

application/json

application/json

curl -X POST "https://loading/v2/users/string/otp_email"
{
  "details": {
    "sequence": 0,
    "changeDate": "1s",
    "resourceOwner": "string",
    "creationDate": "1s"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?