Setup Organization
Create a new organization with an administrative user. If no specific roles are sent for the first user, the user will get the role ORG_OWNER.
- application/json
- application/grpc
- application/grpc-web+proto
Request Body required
Request to set up an organization. User is required
org object required
name string requiredPossible values:
non-empty
and<= 200 characters
domain stringPossible values:
<= 200 characters
ZITADEL generates a domain (
.zitadel.ch) for an organization, the field is not required human object
userName string requiredPossible values:
non-empty
and<= 200 characters
profile object required
firstName string requiredPossible values:
non-empty
and<= 200 characters
lastName string requiredPossible values:
non-empty
and<= 200 characters
nickName stringPossible values:
<= 200 characters
displayName stringPossible values:
<= 200 characters
a user can set his display name if nothing is set ZITADEL computes "first_name last_name"
preferredLanguage stringPossible values:
<= 10 characters
language tag analog https://tools.ietf.org/html/rfc3066
gender stringPossible values: [
GENDER_UNSPECIFIED
,GENDER_FEMALE
,GENDER_MALE
,GENDER_DIVERSE
]Default value:
GENDER_UNSPECIFIED
email object required
email string requiredPossible values:
non-empty
email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1)
isEmailVerified booleanphone object
phone has to be a global number requiredPossible values:
non-empty
and<= 50 characters
mobile phone number of the user. (use global pattern of spec https://tools.ietf.org/html/rfc3966)
isPhoneVerified booleanpassword string requiredthe initial password of the user
- roles string[]
Request Body required
Request to set up an organization. User is required
org object required
name string requiredPossible values:
non-empty
and<= 200 characters
domain stringPossible values:
<= 200 characters
ZITADEL generates a domain (
.zitadel.ch) for an organization, the field is not required human object
userName string requiredPossible values:
non-empty
and<= 200 characters
profile object required
firstName string requiredPossible values:
non-empty
and<= 200 characters
lastName string requiredPossible values:
non-empty
and<= 200 characters
nickName stringPossible values:
<= 200 characters
displayName stringPossible values:
<= 200 characters
a user can set his display name if nothing is set ZITADEL computes "first_name last_name"
preferredLanguage stringPossible values:
<= 10 characters
language tag analog https://tools.ietf.org/html/rfc3066
gender stringPossible values: [
GENDER_UNSPECIFIED
,GENDER_FEMALE
,GENDER_MALE
,GENDER_DIVERSE
]Default value:
GENDER_UNSPECIFIED
email object required
email string requiredPossible values:
non-empty
email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1)
isEmailVerified booleanphone object
phone has to be a global number requiredPossible values:
non-empty
and<= 50 characters
mobile phone number of the user. (use global pattern of spec https://tools.ietf.org/html/rfc3966)
isPhoneVerified booleanpassword string requiredthe initial password of the user
- roles string[]
Request Body required
Request to set up an organization. User is required
org object required
name string requiredPossible values:
non-empty
and<= 200 characters
domain stringPossible values:
<= 200 characters
ZITADEL generates a domain (
.zitadel.ch) for an organization, the field is not required human object
userName string requiredPossible values:
non-empty
and<= 200 characters
profile object required
firstName string requiredPossible values:
non-empty
and<= 200 characters
lastName string requiredPossible values:
non-empty
and<= 200 characters
nickName stringPossible values:
<= 200 characters
displayName stringPossible values:
<= 200 characters
a user can set his display name if nothing is set ZITADEL computes "first_name last_name"
preferredLanguage stringPossible values:
<= 10 characters
language tag analog https://tools.ietf.org/html/rfc3066
gender stringPossible values: [
GENDER_UNSPECIFIED
,GENDER_FEMALE
,GENDER_MALE
,GENDER_DIVERSE
]Default value:
GENDER_UNSPECIFIED
email object required
email string requiredPossible values:
non-empty
email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1)
isEmailVerified booleanphone object
phone has to be a global number requiredPossible values:
non-empty
and<= 50 characters
mobile phone number of the user. (use global pattern of spec https://tools.ietf.org/html/rfc3966)
isPhoneVerified booleanpassword string requiredthe initial password of the user
- roles string[]
- 200
- 400
- 403
- 404
- default
org, user and user membership were created successfully
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details object
sequence uint64on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
creationDate date-timeon read: the timestamp of the first event of the object
on create: the timestamp of the event(s) added by the manipulation
changeDate date-timeon read: the timestamp of the last event reduced by the projection
on manipulation: the
resourceOwner resource_owner is the organization an object belongs to- orgId string
- userId string
{
"details": {
"sequence": "2",
"creationDate": "2023-05-02",
"changeDate": "2023-05-02",
"resourceOwner": "69629023906488334"
},
"orgId": "string",
"userId": "string"
}
- Schema
- Example (from schema)
Schema
details object
sequence uint64on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
creationDate date-timeon read: the timestamp of the first event of the object
on create: the timestamp of the event(s) added by the manipulation
changeDate date-timeon read: the timestamp of the last event reduced by the projection
on manipulation: the
resourceOwner resource_owner is the organization an object belongs to- orgId string
- userId string
{
"details": {
"sequence": "2",
"creationDate": "2023-05-02",
"changeDate": "2023-05-02",
"resourceOwner": "69629023906488334"
},
"orgId": "string",
"userId": "string"
}
- Schema
- Example (from schema)
Schema
details object
sequence uint64on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
creationDate date-timeon read: the timestamp of the first event of the object
on create: the timestamp of the event(s) added by the manipulation
changeDate date-timeon read: the timestamp of the last event reduced by the projection
on manipulation: the
resourceOwner resource_owner is the organization an object belongs to- orgId string
- userId string
{
"details": {
"sequence": "2",
"creationDate": "2023-05-02",
"changeDate": "2023-05-02",
"resourceOwner": "69629023906488334"
},
"orgId": "string",
"userId": "string"
}
invalid org or user
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
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
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"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
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}