Add a OTP Email authenticator
POST/resources/v3alpha/users/:id/otp_email
Add a new one-time password (OTP) Email authenticator to a user. If the email is not passed as verified, a verification code will be generated, which can be either returned or will be sent to the user by email.
Request​
Path Parameters
unique identifier of the user.
Query Parameters
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
Set the user's email for the OTP Email authenticator and it's verification state.
Possible values: non-empty
and <= 200 characters
Set the email address.
sendCode
object
Let ZITADEL send the link to the user via email.
Possible values: non-empty
and <= 200 characters
Optionally set a url_template, which will be used in the verification mail sent by ZITADEL to guide the user to your verification page. If no template is set, the default ZITADEL url will be used.
Get the code back to provide it to the user in your preferred mechanism.
Set the email as already verified.
Body
required
Set the user's email for the OTP Email authenticator and it's verification state.
Possible values: non-empty
and <= 200 characters
Set the email address.
sendCode
object
Let ZITADEL send the link to the user via email.
Possible values: non-empty
and <= 200 characters
Optionally set a url_template, which will be used in the verification mail sent by ZITADEL to guide the user to your verification page. If no template is set, the default ZITADEL url will be used.
Get the code back to provide it to the user in your preferred mechanism.
Set the email as already verified.
Body
required
Set the user's email for the OTP Email authenticator and it's verification state.
Possible values: non-empty
and <= 200 characters
Set the email address.
sendCode
object
Let ZITADEL send the link to the user via email.
Possible values: non-empty
and <= 200 characters
Optionally set a url_template, which will be used in the verification mail sent by ZITADEL to guide the user to your verification page. If no template is set, the default ZITADEL url will be used.
Get the code back to provide it to the user in your preferred mechanism.
Set the email as already verified.
Responses​
- 200
- 403
- 404
- default
OTP Email authenticator successfully added
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
the timestamp of the first event applied to the object.
the timestamp of the last event applied to the object.
owner
object
the parent object representing the returned objects context.
Possible values: [OWNER_TYPE_UNSPECIFIED
, OWNER_TYPE_SYSTEM
, OWNER_TYPE_INSTANCE
, OWNER_TYPE_ORG
]
Default value: OWNER_TYPE_UNSPECIFIED
unique identifier of the OTP Email registration.
The OTP verification code will be set if a email was set with a return_code verification option.
{
"details": {
"id": "69629012906488334",
"created": "2024-11-22T16:27:05.753Z",
"changed": "2024-11-22T16:27:05.753Z",
"owner": "69629023906488334"
},
"otpEmailId": "163840776835432705",
"verificationCode": "SKJd342k"
}
- Schema
- Example (from schema)
Schema
details
object
the timestamp of the first event applied to the object.
the timestamp of the last event applied to the object.
owner
object
the parent object representing the returned objects context.
Possible values: [OWNER_TYPE_UNSPECIFIED
, OWNER_TYPE_SYSTEM
, OWNER_TYPE_INSTANCE
, OWNER_TYPE_ORG
]
Default value: OWNER_TYPE_UNSPECIFIED
unique identifier of the OTP Email registration.
The OTP verification code will be set if a email was set with a return_code verification option.
{
"details": {
"id": "69629012906488334",
"created": "2024-11-22T16:27:05.753Z",
"changed": "2024-11-22T16:27:05.753Z",
"owner": "69629023906488334"
},
"otpEmailId": "163840776835432705",
"verificationCode": "SKJd342k"
}
- Schema
- Example (from schema)
Schema
details
object
the timestamp of the first event applied to the object.
the timestamp of the last event applied to the object.
owner
object
the parent object representing the returned objects context.
Possible values: [OWNER_TYPE_UNSPECIFIED
, OWNER_TYPE_SYSTEM
, OWNER_TYPE_INSTANCE
, OWNER_TYPE_ORG
]
Default value: OWNER_TYPE_UNSPECIFIED
unique identifier of the OTP Email registration.
The OTP verification code will be set if a email was set with a return_code verification option.
{
"details": {
"id": "69629012906488334",
"created": "2024-11-22T16:27:05.754Z",
"changed": "2024-11-22T16:27:05.754Z",
"owner": "69629023906488334"
},
"otpEmailId": "163840776835432705",
"verificationCode": "SKJd342k"
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}