Documentation Index
Fetch the complete documentation index at: https://mintlify.com/zitadel/zitadel/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Description
Create a new user or service account in the specified organization. This endpoint supports creating both human users and machine users (service accounts).Required Permission
user.write
Request Body
The user to create. Can be either a human user or a machine user.
Optional unique identifier for the user. If omitted, the system will generate one.
Username for the user. Must be unique within the organization or globally depending on settings.
Organization context for the user.
Organization ID where the user will be created.
Profile information for human users.
First name of the user.
Last name of the user.
Nickname of the user.
Display name of the user.
Preferred language code (e.g., “en”, “de”).
Gender of the user. Options:
GENDER_FEMALE, GENDER_MALE, GENDER_DIVERSE.Response
The unique identifier of the newly created user.
Email verification code if email verification was requested and not sent.
Phone verification code if phone verification was requested and not sent.
Example Request
Example Response
Error Responses
409 Conflict- User already exists with the same username400 Bad Request- Invalid request data403 Forbidden- Insufficient permissions