stefS
ZITADEL9mo ago
2 replies
stef

v2/users/human - emailcode expiration

Hello

We use the v2/users/human API to create a new user (https://zitadel.com/docs/apis/resources/user_service_v2/user-service-add-human-user#request) :

{
  "organization": {
    "orgId": "333445586697266655"
  },
  "profile": {
    "givenName": "John",
    "familyName": "Wayne",
    "displayName": "John Wayne",
    "preferredLanguage": "de"
  },
  "email": {
    "email": "john.wayne@texas.us",
    "isVerified": null,
    "returnCode": {}
  },
  "password": null
}

This gives us the emailCode in the response (https://zitadel.com/docs/apis/resources/user_service_v2/user-service-add-human-user#responses), which we send to the user (by an external email provider) so that the on-boarding process for the user in our application can begin.

Question: How long is the emailCode valid and can I adjust the expiry date of the emailCode somehow?

Thanks and kind regards
Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned.
ZITADEL Docs
Was this page helpful?