ZITADEL Docs
APIsCore ResourcesV2User

Create a new User (Human)

Deprecated: Use CreateUser to create a new user.

Create/import a new user. 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.

POST
/v2/users/human

Request Body

application/json

userId?|

optionally set your own id unique for the user.

username?|

optionally set a unique username, if none is provided the email will be used.

organization?|
profile?
email?||
phone?||
metadata?array<>
idpLinks?array<>
totpSecret?|

An Implementation of RFC 6238 is used, with HMAC-SHA-1 and time-step of 30 seconds. Currently no other options are supported, and if anything different is used the validation will fail.

hashedPassword*
[key: string]?never

Response Body

application/json

curl -X POST "https://loading/v2/users/human" \  -H "Content-Type: application/json" \  -d '{    "hashedPassword": {      "hash": "string"    }  }'
{
  "userId": "string",
  "details": {
    "sequence": 0,
    "changeDate": "2023-01-15T01:30:15.01Z",
    "resourceOwner": "string",
    "creationDate": "2023-01-15T01:30:15.01Z"
  },
  "emailCode": "string",
  "phoneCode": "string"
}

Was this page helpful?