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 requiredname string required- Possible values: - non-emptyand- <= 200 charactersdomain string- Possible values: - <= 200 characters- ZITADEL generates a domain ( - .zitadel.ch) for an organization, the field is not required 
- human objectuserName string required- Possible values: - non-emptyand- <= 200 characters- profile object requiredfirstName string required- Possible values: - non-emptyand- <= 200 characterslastName string required- Possible values: - non-emptyand- <= 200 charactersnickName string- Possible values: - <= 200 charactersdisplayName string- Possible values: - <= 200 characters- a user can set his display name if nothing is set ZITADEL computes "first_name last_name" preferredLanguage string- Possible values: - <= 10 characters- language tag analog https://tools.ietf.org/html/rfc3066 gender string- Possible values: [ - GENDER_UNSPECIFIED,- GENDER_FEMALE,- GENDER_MALE,- GENDER_DIVERSE]- Default value: - GENDER_UNSPECIFIED- email object requiredemail string required- Possible values: - non-empty- email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1) isEmailVerified boolean- phone objectphone has to be a global number required- Possible values: - non-emptyand- <= 50 characters- mobile phone number of the user. (use global pattern of spec https://tools.ietf.org/html/rfc3966) isPhoneVerified booleanpassword string required- the initial password of the user 
- roles string[]
Request Body required
Request to set up an organization. User is required
- org object requiredname string required- Possible values: - non-emptyand- <= 200 charactersdomain string- Possible values: - <= 200 characters- ZITADEL generates a domain ( - .zitadel.ch) for an organization, the field is not required 
- human objectuserName string required- Possible values: - non-emptyand- <= 200 characters- profile object requiredfirstName string required- Possible values: - non-emptyand- <= 200 characterslastName string required- Possible values: - non-emptyand- <= 200 charactersnickName string- Possible values: - <= 200 charactersdisplayName string- Possible values: - <= 200 characters- a user can set his display name if nothing is set ZITADEL computes "first_name last_name" preferredLanguage string- Possible values: - <= 10 characters- language tag analog https://tools.ietf.org/html/rfc3066 gender string- Possible values: [ - GENDER_UNSPECIFIED,- GENDER_FEMALE,- GENDER_MALE,- GENDER_DIVERSE]- Default value: - GENDER_UNSPECIFIED- email object requiredemail string required- Possible values: - non-empty- email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1) isEmailVerified boolean- phone objectphone has to be a global number required- Possible values: - non-emptyand- <= 50 characters- mobile phone number of the user. (use global pattern of spec https://tools.ietf.org/html/rfc3966) isPhoneVerified booleanpassword string required- the initial password of the user 
- roles string[]
Request Body required
Request to set up an organization. User is required
- org object requiredname string required- Possible values: - non-emptyand- <= 200 charactersdomain string- Possible values: - <= 200 characters- ZITADEL generates a domain ( - .zitadel.ch) for an organization, the field is not required 
- human objectuserName string required- Possible values: - non-emptyand- <= 200 characters- profile object requiredfirstName string required- Possible values: - non-emptyand- <= 200 characterslastName string required- Possible values: - non-emptyand- <= 200 charactersnickName string- Possible values: - <= 200 charactersdisplayName string- Possible values: - <= 200 characters- a user can set his display name if nothing is set ZITADEL computes "first_name last_name" preferredLanguage string- Possible values: - <= 10 characters- language tag analog https://tools.ietf.org/html/rfc3066 gender string- Possible values: [ - GENDER_UNSPECIFIED,- GENDER_FEMALE,- GENDER_MALE,- GENDER_DIVERSE]- Default value: - GENDER_UNSPECIFIED- email object requiredemail string required- Possible values: - non-empty- email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1) isEmailVerified boolean- phone objectphone has to be a global number required- Possible values: - non-emptyand- <= 50 characters- mobile phone number of the user. (use global pattern of spec https://tools.ietf.org/html/rfc3966) isPhoneVerified booleanpassword string required- the 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 objectsequence uint64- on 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-time- on read: the timestamp of the first event of the object - on create: the timestamp of the event(s) added by the manipulation changeDate date-time- on 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-08-11",
    "changeDate": "2023-08-11",
    "resourceOwner": "69629023906488334"
  },
  "orgId": "string",
  "userId": "string"
}
- Schema
- Example (from schema)
Schema
- details objectsequence uint64- on 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-time- on read: the timestamp of the first event of the object - on create: the timestamp of the event(s) added by the manipulation changeDate date-time- on 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-08-11",
    "changeDate": "2023-08-11",
    "resourceOwner": "69629023906488334"
  },
  "orgId": "string",
  "userId": "string"
}
- Schema
- Example (from schema)
Schema
- details objectsequence uint64- on 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-time- on read: the timestamp of the first event of the object - on create: the timestamp of the event(s) added by the manipulation changeDate date-time- on 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-08-11",
    "changeDate": "2023-08-11",
    "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"
    }
  ]
}