Skip to Content
ZITADEL Docs
APIsCore ResourcesV2User

Change the user email

Deprecated: Update the users email field.

Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email..

POST
/v2/users/{user_id}/email

Path Parameters

user_id*user_id

Request Body

application/json
  1. body
email*email
isVerified*is_verified

Response Body

Success

application/json
  1. response
details?
verificationCode?|

in case the verification was set to return_code, the code will be returned

Example Request
curl -X POST 'https://example.com/v2/users/string/email' \  -H 'Content-Type: application/json' \  -d '{  "isVerified": true}'
Example Response200
{  "details": {    "sequence": 0,    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string",    "creationDate": "2023-01-15T01:30:15.01Z"  },  "verificationCode": "string"}

Was this page helpful?