{"openapi":"3.2.0","info":{"title":"zitadel.org.v2"},"paths":{"/v2/organizations":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Add Organization","description":"Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER.\n\n Required permission:\n  - `org.create`","operationId":"zitadel.org.v2.OrganizationService.AddOrganization","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.AddOrganizationRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.AddOrganizationResponse"}}}}}}},"/v2/organizations/_search":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"List Organizations","description":"Search for Organizations. By default, the first 100 organizations of the instance that you have permission to read are returned (the default and the maximum limit of 1000 can be configured).\n Make sure to include a limit and sorting for pagination.\n\n Required permission:\n  - `org.read`","operationId":"zitadel.org.v2.OrganizationService.ListOrganizations","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.ListOrganizationsRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.ListOrganizationsResponse"}}}}}}},"/v2/organizations/{organization_id}":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Update Organization","description":"Change the name of the organization.\n\n Required permission:\n  - `org.write`","operationId":"zitadel.org.v2.OrganizationService.UpdateOrganization","parameters":[{"name":"organization_id","in":"path","description":"OrganizationID is the unique identifier of the organization to be updated.","required":true,"schema":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization to be updated."}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","title":"name","description":"Name is the new name for the organization to be set.\n Note that since the name is used to generate the organization's default domain,\n changing the name will also change the domain.\n Additionally, if the domain is used as suffix for user logins,\n their login names will also change accordingly.\n It will not affect any Organization Domains added to the organization."}},"title":"UpdateOrganizationRequest","required":["name"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.UpdateOrganizationResponse"}}}}}},"delete":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Delete Organization","description":"Deletes the organization and all its resources (Users, Projects, Grants to and from the org). Users of this organization will not be able to log in.\n\n Required permission:\n  - `org.delete`","operationId":"zitadel.org.v2.OrganizationService.DeleteOrganization","parameters":[{"name":"organization_id","in":"path","description":"OrganizationID is the unique identifier of the organization to be deleted.","required":true,"schema":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization to be deleted."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.DeleteOrganizationResponse"}}}}}}},"/v2/organizations/{organization_id}/activate":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Activate Organization","description":"Set the state of my organization to active. The state of the organization has to be deactivated to perform the request. Users of this organization will be able to log in again.\n\n Required permission:\n  - `org.write`","operationId":"zitadel.org.v2.OrganizationService.ActivateOrganization","parameters":[{"name":"organization_id","in":"path","description":"OrganizationID is the unique identifier of the organization to be activated.","required":true,"schema":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization to be activated."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.ActivateOrganizationResponse"}}}}}}},"/v2/organizations/{organization_id}/deactivate":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Deactivate Organization","description":"Sets the state of my organization to deactivated. Users of this organization will not be able to log in.\n\n Required permission:\n  - `org.write`","operationId":"zitadel.org.v2.OrganizationService.DeactivateOrganization","parameters":[{"name":"organization_id","in":"path","description":"OrganizationID is the unique identifier of the organization to be deactivated.","required":true,"schema":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization to be deactivated."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.DeactivateOrganizationResponse"}}}}}}},"/v2/organizations/{organization_id}/domains":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Add Organization Domain","description":"Add a new domain to an organization. The domains are used to identify to which organization a user belongs.\n\n Required permission:\n  - `org.write`","operationId":"zitadel.org.v2.OrganizationService.AddOrganizationDomain","parameters":[{"name":"organization_id","in":"path","description":"OrganizationID is the unique identifier of the organization to which the domain is to be added.","required":true,"schema":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization to which the domain is to be added."}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","title":"domain","description":"Domain is the full qualified domain name to be added to the organization.\n Note that the domain has to be unique across the instance.\n Depending on the settings, you might have to verify the domain before it can be used."}},"title":"AddOrganizationDomainRequest","required":["domain"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.AddOrganizationDomainResponse"}}}}}},"delete":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Delete Organization Domain","description":"Delete a new domain from an organization. The domains are used to identify to which organization a user belongs. If the uses use the domain for login, this will not be possible afterwards. They have to use another domain instead.\n\n Required permission:\n  - `org.write`","operationId":"zitadel.org.v2.OrganizationService.DeleteOrganizationDomain","parameters":[{"name":"organization_id","in":"path","description":"OrganizationID is the unique identifier of the organization from which the domain is to be deleted.","required":true,"schema":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization from which the domain is to be deleted."}},{"name":"domain","in":"query","description":"Domain is the full qualified domain name to be deleted from the organization.\n Note that if the domain is used as suffix for user logins,\n those users will not be able to log in anymore. They have to use another domain instead.\n Also if the domain was used for domain discovery,\n users will not be able to find the organization by the domain anymore.","required":true,"schema":{"type":"string","title":"domain","description":"Domain is the full qualified domain name to be deleted from the organization.\n Note that if the domain is used as suffix for user logins,\n those users will not be able to log in anymore. They have to use another domain instead.\n Also if the domain was used for domain discovery,\n users will not be able to find the organization by the domain anymore."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.DeleteOrganizationDomainResponse"}}}}}}},"/v2/organizations/{organization_id}/domains/search":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"List Organization Domains","description":"Returns the list of registered domains of an organization. The domains are used to identify to which organization a user belongs.\n\n Required permission:\n  - `org.read`","operationId":"zitadel.org.v2.OrganizationService.ListOrganizationDomains","parameters":[{"name":"organization_id","in":"path","description":"OrganizationID is the unique identifier of the organization from which the domains are to be listed.","required":true,"schema":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization from which the domains are to be listed."}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/zitadel.filter.v2.PaginationRequest"},{"type":"null"}],"title":"pagination","description":"List limitations and ordering."},"filters":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.org.v2.DomainSearchFilter"},"title":"filters","description":"Filters define the criteria to query for."},"sortingColumn":{"title":"sorting_column","description":"SortingColumn is the field the result is sorted by.\n Beware that if you change this, your result pagination might be inconsistent.","$ref":"#/components/schemas/zitadel.org.v2.DomainFieldName"}},"title":"ListOrganizationDomainsRequest","additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.ListOrganizationDomainsResponse"}}}}}}},"/v2/organizations/{organization_id}/domains/validation/generate":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Generate Organization Domain Validation","description":"Generate a new file to be able to verify your domain with DNS or HTTP challenge.\n\n Required permission:\n  - `org.write`","operationId":"zitadel.org.v2.OrganizationService.GenerateOrganizationDomainValidation","parameters":[{"name":"organization_id","in":"path","description":"OrganizationID is the unique identifier of the organization for which the domain validation is to be generated.","required":true,"schema":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization for which the domain validation is to be generated."}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","title":"domain","description":"Domain is the full qualified domain name for which the validation is to be generated."},"type":{"title":"type","description":"Type is the domain validation type to be generated.\n Depending on the type, you will have to add a DNS record or a file to your webserver.\n Make sure that the challenge is reachable via the chosen method.\n The validation has to be done within one hour, otherwise the token will expire and you will have to generate a new one.\n After you have added the record or the file, you can verify the domain via the VerifyOrganizationDomain endpoint.\n You can check the status of the domain via the ListOrganizationDomains endpoint.\n The domain will be marked as verified after a successful verification.","$ref":"#/components/schemas/zitadel.org.v2.DomainValidationType"}},"title":"GenerateOrganizationDomainValidationRequest","required":["domain"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.GenerateOrganizationDomainValidationResponse"}}}}}}},"/v2/organizations/{organization_id}/domains/validation/verify":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Verify Organization Domain","description":"Make sure you have added the required verification to your domain, depending on the method you have chosen (HTTP or DNS challenge). Zitadel will check it and set the domain as verified if it was successful. A verify domain has to be unique.\n\n Required permission:\n  - `org.write`","operationId":"zitadel.org.v2.OrganizationService.VerifyOrganizationDomain","parameters":[{"name":"organization_id","in":"path","description":"Organization ID is the unique identifier of the organization whose domain is to be verified.","required":true,"schema":{"type":"string","title":"organization_id","description":"Organization ID is the unique identifier of the organization whose domain is to be verified."}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","title":"domain","description":"Domain is the full qualified domain name to be verified."}},"title":"VerifyOrganizationDomainRequest","additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.VerifyOrganizationDomainResponse"}}}}}}},"/v2/organizations/{organization_id}/metadata":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Set Organization Metadata","description":"Sets a list of key value pairs. Existing metadata entries with matching keys are overwritten. Existing metadata entries without matching keys are untouched. To remove existing metadata entries, pass an empty metadata value or use [DeleteOrganizationMetadata](/docs/reference/api/org/zitadel.org.v2.OrganizationService.DeleteOrganizationMetadata). If no metadata entry exists for a given key, passing an empty value for that key has no effect (no-op). For HTTP requests, make sure the bytes array value is base64 encoded.\n\n Required permission:\n  - `org.write`","operationId":"zitadel.org.v2.OrganizationService.SetOrganizationMetadata","parameters":[{"name":"organization_id","in":"path","description":"Organization ID is the unique identifier of the organization whose metadata is to be set.","required":true,"schema":{"type":"string","title":"organization_id","description":"Organization ID is the unique identifier of the organization whose metadata is to be set."}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"metadata":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.org.v2.Metadata"},"title":"metadata","description":"Metadata is a list of metadata entries to set."}},"title":"SetOrganizationMetadataRequest","additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.SetOrganizationMetadataResponse"}}}}}},"delete":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"Delete Organization Metadata","description":"Delete metadata objects from an organization with a specific key.\n\n Required permission:\n  - `org.write`","operationId":"zitadel.org.v2.OrganizationService.DeleteOrganizationMetadata","parameters":[{"name":"organization_id","in":"path","description":"Organization ID is the unique identifier of the organization whose metadata is to be deleted.","required":true,"schema":{"type":"string","title":"organization_id","description":"Organization ID is the unique identifier of the organization whose metadata is to be deleted."}},{"name":"keys","in":"query","description":"Keys are the organization metadata entries to be deleted by their key.","schema":{"type":"array","items":{"type":"string"},"title":"keys","description":"Keys are the organization metadata entries to be deleted by their key."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.DeleteOrganizationMetadataResponse"}}}}}}},"/v2/organizations/{organization_id}/metadata/search":{"post":{"tags":["zitadel.org.v2.OrganizationService"],"summary":"List Organization Metadata","description":"List metadata of an organization filtered by query.\n\n Required permission:\n  - `org.read`","operationId":"zitadel.org.v2.OrganizationService.ListOrganizationMetadata","parameters":[{"name":"organization_id","in":"path","description":"Organization ID is the unique identifier of the organization whose metadata is to be listed.","required":true,"schema":{"type":"string","title":"organization_id","description":"Organization ID is the unique identifier of the organization whose metadata is to be listed."}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/zitadel.filter.v2.PaginationRequest"},{"type":"null"}],"title":"pagination","description":"List limitations and ordering."},"filters":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.metadata.v2.MetadataSearchFilter"},"title":"filters","description":"Filters define the criteria to query the metadata for."}},"title":"ListOrganizationMetadataRequest","additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/zitadel.org.v2.ListOrganizationMetadataResponse"}}}}}}}},"components":{"schemas":{"google.protobuf.Timestamp":{"type":"string","examples":["2023-01-15T01:30:15.01Z","2024-12-25T12:00:00Z"],"format":"date-time","description":"A Timestamp represents a point in time independent of any time zone or local\n calendar, encoded as a count of seconds and fractions of seconds at\n nanosecond resolution. The count is relative to an epoch at UTC midnight on\n January 1, 1970, in the proleptic Gregorian calendar which extends the\n Gregorian calendar backwards to year one.\n\n All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap\n second table is needed for interpretation, using a [24-hour linear\n smear](https://developers.google.com/time/smear).\n\n The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By\n restricting to that range, we ensure that we can convert to and from [RFC\n 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.\n\n # Examples\n\n Example 1: Compute Timestamp from POSIX `time()`.\n\n     Timestamp timestamp;\n     timestamp.set_seconds(time(NULL));\n     timestamp.set_nanos(0);\n\n Example 2: Compute Timestamp from POSIX `gettimeofday()`.\n\n     struct timeval tv;\n     gettimeofday(&tv, NULL);\n\n     Timestamp timestamp;\n     timestamp.set_seconds(tv.tv_sec);\n     timestamp.set_nanos(tv.tv_usec * 1000);\n\n Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.\n\n     FILETIME ft;\n     GetSystemTimeAsFileTime(&ft);\n     UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;\n\n     // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z\n     // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.\n     Timestamp timestamp;\n     timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));\n     timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));\n\n Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.\n\n     long millis = System.currentTimeMillis();\n\n     Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)\n         .setNanos((int) ((millis % 1000) * 1000000)).build();\n\n Example 5: Compute Timestamp from Java `Instant.now()`.\n\n     Instant now = Instant.now();\n\n     Timestamp timestamp =\n         Timestamp.newBuilder().setSeconds(now.getEpochSecond())\n             .setNanos(now.getNano()).build();\n\n Example 6: Compute Timestamp from current time in Python.\n\n     timestamp = Timestamp()\n     timestamp.GetCurrentTime()\n\n # JSON Mapping\n\n In JSON format, the Timestamp type is encoded as a string in the\n [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the\n format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\"\n where {year} is always expressed using four digits while {month}, {day},\n {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional\n seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),\n are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone\n is required. A proto3 JSON serializer should always use UTC (as indicated by\n \"Z\") when printing the Timestamp type and a proto3 JSON parser should be\n able to accept both UTC and other timezones (as indicated by an offset).\n\n For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past\n 01:30 UTC on January 15, 2017.\n\n In JavaScript, one can convert a Date object to this format using the\n standard\n [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)\n method. In Python, a standard `datetime.datetime` object can be converted\n to this format using\n [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with\n the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use\n the Joda Time's [`ISODateTimeFormat.dateTime()`](\n http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()\n ) to obtain a formatter capable of generating timestamps in this format."},"zitadel.filter.v2.PaginationRequest":{"type":"object","properties":{"offset":{"type":["integer","string"],"title":"offset","format":"int64","description":"Starting point for retrieval, in combination of offset used to query a set list of objects."},"limit":{"type":"integer","title":"limit","description":"limit is the maximum amount of objects returned. The default is set to 100\n with a maximum of 1000 in the runtime configuration.\n If the limit exceeds the maximum configured Zitadel will throw an error.\n If no limit is present the default is taken."},"asc":{"type":"boolean","title":"asc","description":"Asc is the sorting order. If true the list is sorted ascending, if false\n the list is sorted descending. The default is descending."}},"title":"PaginationRequest","additionalProperties":false},"zitadel.filter.v2.PaginationResponse":{"type":"object","properties":{"totalResult":{"type":["integer","string"],"title":"total_result","format":"int64","description":"Absolute number of objects matching the query, regardless of applied limit."},"appliedLimit":{"type":["integer","string"],"title":"applied_limit","format":"int64","description":"Applied limit from query, defines maximum amount of objects per request, to compare if all objects are returned."}},"title":"PaginationResponse","additionalProperties":false},"zitadel.filter.v2.TextFilterMethod":{"type":"string","title":"TextFilterMethod","enum":["TEXT_FILTER_METHOD_EQUALS","TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE","TEXT_FILTER_METHOD_STARTS_WITH","TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE","TEXT_FILTER_METHOD_CONTAINS","TEXT_FILTER_METHOD_CONTAINS_IGNORE_CASE","TEXT_FILTER_METHOD_ENDS_WITH","TEXT_FILTER_METHOD_ENDS_WITH_IGNORE_CASE"]},"zitadel.metadata.v2.Metadata":{"type":"object","properties":{"creationDate":{"title":"creation_date","$ref":"#/components/schemas/google.protobuf.Timestamp"},"changeDate":{"title":"change_date","$ref":"#/components/schemas/google.protobuf.Timestamp"},"key":{"type":"string","title":"key"},"value":{"type":"string","title":"value","format":"byte"}},"title":"Metadata","additionalProperties":false},"zitadel.metadata.v2.MetadataKeyFilter":{"type":"object","properties":{"key":{"type":"string","title":"key"},"method":{"title":"method","$ref":"#/components/schemas/zitadel.filter.v2.TextFilterMethod"}},"title":"MetadataKeyFilter","additionalProperties":false},"zitadel.metadata.v2.MetadataSearchFilter":{"type":"object","oneOf":[{"type":"object","properties":{"keyFilter":{"title":"key_filter","$ref":"#/components/schemas/zitadel.metadata.v2.MetadataKeyFilter"}},"title":"key_filter","required":["keyFilter"]}],"title":"MetadataSearchFilter","additionalProperties":false},"zitadel.object.v2.Details":{"type":"object","properties":{"sequence":{"type":["integer","string"],"title":"sequence","format":"int64","description":"sequence represents the order of events. It's always counting\n\n on read: the sequence of the last event reduced by the projection\n\n on manipulation: the timestamp of the event(s) added by the manipulation"},"changeDate":{"title":"change_date","description":"change_date is the timestamp when the object was changed\n\n on read: the timestamp of the last event reduced by the projection\n\n on manipulation: the timestamp of the event(s) added by the manipulation","$ref":"#/components/schemas/google.protobuf.Timestamp"},"resourceOwner":{"type":"string","title":"resource_owner","description":"resource_owner is the organization or instance_id an object belongs to"},"creationDate":{"title":"creation_date","description":"creation_date is the timestamp where the first operation on the object was made","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"Details","additionalProperties":false},"zitadel.object.v2.ListDetails":{"type":"object","properties":{"totalResult":{"type":["integer","string"],"title":"total_result","format":"int64"},"processedSequence":{"type":["integer","string"],"title":"processed_sequence","format":"int64"},"timestamp":{"title":"timestamp","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"ListDetails","additionalProperties":false},"zitadel.object.v2.ListQuery":{"type":"object","properties":{"offset":{"type":["integer","string"],"title":"offset","format":"int64"},"limit":{"type":"integer","title":"limit"},"asc":{"type":"boolean","title":"asc"}},"title":"ListQuery","additionalProperties":false},"zitadel.object.v2.Organization":{"type":"object","oneOf":[{"type":"object","properties":{"orgDomain":{"type":"string","title":"org_domain"}},"title":"org_domain","required":["orgDomain"]},{"type":"object","properties":{"orgId":{"type":"string","title":"org_id"}},"title":"org_id","required":["orgId"]}],"title":"Organization","additionalProperties":false},"zitadel.object.v2.TextQueryMethod":{"type":"string","title":"TextQueryMethod","enum":["TEXT_QUERY_METHOD_EQUALS","TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE","TEXT_QUERY_METHOD_STARTS_WITH","TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE","TEXT_QUERY_METHOD_CONTAINS","TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE","TEXT_QUERY_METHOD_ENDS_WITH","TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE"]},"zitadel.org.v2.ActivateOrganizationRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization to be activated."}},"title":"ActivateOrganizationRequest","required":["organizationId"],"additionalProperties":false},"zitadel.org.v2.ActivateOrganizationResponse":{"type":"object","properties":{"changeDate":{"title":"change_date","description":"ChangeDate is the timestamp of the activation of the organization.","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"ActivateOrganizationResponse","additionalProperties":false},"zitadel.org.v2.AddOrganizationDomainRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization to which the domain is to be added."},"domain":{"type":"string","title":"domain","description":"Domain is the full qualified domain name to be added to the organization.\n Note that the domain has to be unique across the instance.\n Depending on the settings, you might have to verify the domain before it can be used."}},"title":"AddOrganizationDomainRequest","required":["organizationId","domain"],"additionalProperties":false},"zitadel.org.v2.AddOrganizationDomainResponse":{"type":"object","properties":{"creationDate":{"title":"creation_date","description":"CreationDate is the timestamp when the Organization Domain was created.","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"AddOrganizationDomainResponse","additionalProperties":false},"zitadel.org.v2.AddOrganizationRequest":{"type":"object","properties":{"name":{"type":"string","title":"name","description":"Name is the unique name of the organization to be created.\n This must be unique across the instance."},"admins":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.org.v2.AddOrganizationRequest.Admin"},"title":"admins","description":"Specify users to be assigned as organization admins.\n If no users are specified here, the organization will be created without any admin users.\n The organization can still be managed by any instance administrator.\n If no roles are specified for a user, they will be assigned the role ORG_OWNER."},"organizationId":{"type":["string","null"],"title":"organization_id","description":"OrganizationID is the unique identifier of the organization. This field is optional.\n If omitted, the system will generate one,\n which is the recommended way. The generated ID will be returned in the response."},"orgId":{"type":["string","null"],"title":"org_id","description":"Optionally, set a unique id for the organization. If omitted, the system will generate one,\n which is the recommended way. The generated ID will be returned in the response.\n\n Deprecated: use 'organization_id' field instead.\n If both org_id and organization_id are set, organization_id will take precedence.","deprecated":true}},"title":"AddOrganizationRequest","required":["name"],"additionalProperties":false},"zitadel.org.v2.AddOrganizationRequest.Admin":{"type":"object","allOf":[{"properties":{"roles":{"type":"array","items":{"type":"string"},"title":"roles","description":"specify Org Member Roles for the provided user (default is ORG_OWNER if roles are empty)"}}},{"oneOf":[{"type":"object","properties":{"human":{"title":"human","$ref":"#/components/schemas/zitadel.user.v2.AddHumanUserRequest"}},"title":"human","required":["human"]},{"type":"object","properties":{"userId":{"type":"string","title":"user_id"}},"title":"user_id","required":["userId"]}]}],"title":"Admin","additionalProperties":false},"zitadel.org.v2.AddOrganizationResponse":{"type":"object","properties":{"details":{"title":"details","$ref":"#/components/schemas/zitadel.object.v2.Details"},"organizationId":{"type":"string","title":"organization_id"},"createdAdmins":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.org.v2.AddOrganizationResponse.CreatedAdmin"},"title":"created_admins"}},"title":"AddOrganizationResponse","additionalProperties":false},"zitadel.org.v2.AddOrganizationResponse.CreatedAdmin":{"type":"object","properties":{"userId":{"type":"string","title":"user_id"},"emailCode":{"type":["string","null"],"title":"email_code"},"phoneCode":{"type":["string","null"],"title":"phone_code"}},"title":"CreatedAdmin","additionalProperties":false},"zitadel.org.v2.DeactivateOrganizationRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization to be deactivated."}},"title":"DeactivateOrganizationRequest","required":["organizationId"],"additionalProperties":false},"zitadel.org.v2.DeactivateOrganizationResponse":{"type":"object","properties":{"changeDate":{"title":"change_date","description":"ChangeDate is the timestamp of the deactivation of the organization.","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"DeactivateOrganizationResponse","additionalProperties":false},"zitadel.org.v2.DefaultOrganizationQuery":{"type":"object","title":"DefaultOrganizationQuery","additionalProperties":false},"zitadel.org.v2.DeleteOrganizationDomainRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization from which the domain is to be deleted."},"domain":{"type":"string","title":"domain","description":"Domain is the full qualified domain name to be deleted from the organization.\n Note that if the domain is used as suffix for user logins,\n those users will not be able to log in anymore. They have to use another domain instead.\n Also if the domain was used for domain discovery,\n users will not be able to find the organization by the domain anymore."}},"title":"DeleteOrganizationDomainRequest","required":["organizationId","domain"],"additionalProperties":false},"zitadel.org.v2.DeleteOrganizationDomainResponse":{"type":"object","properties":{"deletionDate":{"title":"deletion_date","description":"DeletionDate is the timestamp of the deletion of the Organization Domain.","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"DeleteOrganizationDomainResponse","additionalProperties":false},"zitadel.org.v2.DeleteOrganizationMetadataRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"Organization ID is the unique identifier of the organization whose metadata is to be deleted."},"keys":{"type":"array","items":{"type":"string"},"title":"keys","description":"Keys are the organization metadata entries to be deleted by their key."}},"title":"DeleteOrganizationMetadataRequest","required":["organizationId"],"additionalProperties":false},"zitadel.org.v2.DeleteOrganizationMetadataResponse":{"type":"object","properties":{"deletionDate":{"title":"deletion_date","description":"DeletionDate is the timestamp of the deletion of the organization metadata.","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"DeleteOrganizationMetadataResponse","additionalProperties":false},"zitadel.org.v2.DeleteOrganizationRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization to be deleted."}},"title":"DeleteOrganizationRequest","required":["organizationId"],"additionalProperties":false},"zitadel.org.v2.DeleteOrganizationResponse":{"type":"object","properties":{"deletionDate":{"title":"deletion_date","description":"DeletionDate is the timestamp of the deletion of the organization.","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"DeleteOrganizationResponse","additionalProperties":false},"zitadel.org.v2.Domain":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization the domain belongs to."},"domain":{"type":"string","title":"domain","description":"Domain is the fully qualified domain name."},"isVerified":{"type":"boolean","title":"is_verified","description":"IsVerified is a boolean flag indicating if the domain has been verified."},"isPrimary":{"type":"boolean","title":"is_primary","description":"IsPrimary is a boolean flag indicating if the domain is the Organization Domain of the organization."},"validationType":{"title":"validation_type","description":"ValidationType indicates the protocol used to validate the domain ownership.","$ref":"#/components/schemas/zitadel.org.v2.DomainValidationType"}},"title":"Domain","additionalProperties":false},"zitadel.org.v2.DomainFieldName":{"type":"string","title":"DomainFieldName","enum":["DOMAIN_FIELD_NAME_UNSPECIFIED","DOMAIN_FIELD_NAME_NAME","DOMAIN_FIELD_NAME_CREATION_DATE"]},"zitadel.org.v2.DomainSearchFilter":{"type":"object","oneOf":[{"type":"object","properties":{"domainFilter":{"title":"domain_filter","description":"Filter Organization Domains by their domain name.","$ref":"#/components/schemas/zitadel.org.v2.OrganizationDomainQuery"}},"title":"domain_filter","required":["domainFilter"]}],"title":"DomainSearchFilter","additionalProperties":false},"zitadel.org.v2.DomainValidationType":{"type":"string","title":"DomainValidationType","enum":["DOMAIN_VALIDATION_TYPE_UNSPECIFIED","DOMAIN_VALIDATION_TYPE_HTTP","DOMAIN_VALIDATION_TYPE_DNS"]},"zitadel.org.v2.GenerateOrganizationDomainValidationRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization for which the domain validation is to be generated."},"domain":{"type":"string","title":"domain","description":"Domain is the full qualified domain name for which the validation is to be generated."},"type":{"title":"type","description":"Type is the domain validation type to be generated.\n Depending on the type, you will have to add a DNS record or a file to your webserver.\n Make sure that the challenge is reachable via the chosen method.\n The validation has to be done within one hour, otherwise the token will expire and you will have to generate a new one.\n After you have added the record or the file, you can verify the domain via the VerifyOrganizationDomain endpoint.\n You can check the status of the domain via the ListOrganizationDomains endpoint.\n The domain will be marked as verified after a successful verification.","$ref":"#/components/schemas/zitadel.org.v2.DomainValidationType"}},"title":"GenerateOrganizationDomainValidationRequest","required":["organizationId","domain"],"additionalProperties":false},"zitadel.org.v2.GenerateOrganizationDomainValidationResponse":{"type":"object","properties":{"token":{"type":"string","title":"token","description":"Token is a verification token that needs to be added to the DNS records or as a file to the webserver.\n Zitadel will check for this token to verify the domain."},"url":{"type":"string","title":"url","description":"URL is the location where the token needs to be placed for HTTP challenge."}},"title":"GenerateOrganizationDomainValidationResponse","additionalProperties":false},"zitadel.org.v2.ListOrganizationDomainsRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization from which the domains are to be listed."},"pagination":{"oneOf":[{"$ref":"#/components/schemas/zitadel.filter.v2.PaginationRequest"},{"type":"null"}],"title":"pagination","description":"List limitations and ordering."},"filters":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.org.v2.DomainSearchFilter"},"title":"filters","description":"Filters define the criteria to query for."},"sortingColumn":{"title":"sorting_column","description":"SortingColumn is the field the result is sorted by.\n Beware that if you change this, your result pagination might be inconsistent.","$ref":"#/components/schemas/zitadel.org.v2.DomainFieldName"}},"title":"ListOrganizationDomainsRequest","required":["organizationId"],"additionalProperties":false},"zitadel.org.v2.ListOrganizationDomainsResponse":{"type":"object","properties":{"pagination":{"title":"pagination","description":"Pagination of the organizations domain results.","$ref":"#/components/schemas/zitadel.filter.v2.PaginationResponse"},"domains":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.org.v2.Domain"},"title":"domains","description":"Domains is a list of fully qualified domain names registered to the organization matching the query."}},"title":"ListOrganizationDomainsResponse","additionalProperties":false},"zitadel.org.v2.ListOrganizationMetadataRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"Organization ID is the unique identifier of the organization whose metadata is to be listed."},"pagination":{"oneOf":[{"$ref":"#/components/schemas/zitadel.filter.v2.PaginationRequest"},{"type":"null"}],"title":"pagination","description":"List limitations and ordering."},"filters":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.metadata.v2.MetadataSearchFilter"},"title":"filters","description":"Filters define the criteria to query the metadata for."}},"title":"ListOrganizationMetadataRequest","required":["organizationId"],"additionalProperties":false},"zitadel.org.v2.ListOrganizationMetadataResponse":{"type":"object","properties":{"pagination":{"title":"pagination","description":"Pagination of the Organizations metadata results.","$ref":"#/components/schemas/zitadel.filter.v2.PaginationResponse"},"metadata":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.metadata.v2.Metadata"},"title":"metadata","description":"Metadata is a list of organization metadata that matched the query."}},"title":"ListOrganizationMetadataResponse","additionalProperties":false},"zitadel.org.v2.ListOrganizationsRequest":{"type":"object","properties":{"query":{"title":"query","description":"list limitations and ordering","$ref":"#/components/schemas/zitadel.object.v2.ListQuery"},"sortingColumn":{"title":"sorting_column","description":"the field the result is sorted","$ref":"#/components/schemas/zitadel.org.v2.OrganizationFieldName"},"queries":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.org.v2.SearchQuery"},"title":"queries","description":"criteria the client is looking for"}},"title":"ListOrganizationsRequest","additionalProperties":false},"zitadel.org.v2.ListOrganizationsResponse":{"type":"object","properties":{"details":{"title":"details","description":"Details of organizations results.","$ref":"#/components/schemas/zitadel.object.v2.ListDetails"},"sortingColumn":{"title":"sorting_column","description":"The sorting columns the result is sorted.","$ref":"#/components/schemas/zitadel.org.v2.OrganizationFieldName"},"result":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.org.v2.Organization"},"title":"result","description":"The Result is a list of organizations matching the query."}},"title":"ListOrganizationsResponse","additionalProperties":false},"zitadel.org.v2.Metadata":{"type":"object","properties":{"key":{"type":"string","title":"key","description":"Key is identifier of the metadata entry."},"value":{"type":"string","title":"value","format":"byte","description":"Value in the metadata key/value pair. On updates, an empty value will delete the metadata entry."}},"title":"Metadata","additionalProperties":false},"zitadel.org.v2.Organization":{"type":"object","properties":{"id":{"type":"string","title":"id","description":"ID is the unique identifier of the organization."},"details":{"title":"details","description":"Details about the organizations' creation and change date.","$ref":"#/components/schemas/zitadel.object.v2.Details"},"state":{"title":"state","description":"Current state of the organization, for example active, inactive or deleted.","$ref":"#/components/schemas/zitadel.org.v2.OrganizationState"},"name":{"type":"string","title":"name","description":"Name of the organization."},"primaryDomain":{"type":"string","title":"primary_domain","description":"Organization Domain used in the organization."}},"title":"Organization","additionalProperties":false},"zitadel.org.v2.OrganizationDomainQuery":{"type":"object","properties":{"domain":{"type":"string","title":"domain","description":"Domain used in organization, not necessary primary domain."},"method":{"title":"method","description":"Defines which text equality method is used.","$ref":"#/components/schemas/zitadel.object.v2.TextQueryMethod"}},"title":"OrganizationDomainQuery","required":["domain"],"additionalProperties":false},"zitadel.org.v2.OrganizationFieldName":{"type":"string","title":"OrganizationFieldName","enum":["ORGANIZATION_FIELD_NAME_UNSPECIFIED","ORGANIZATION_FIELD_NAME_NAME","ORGANIZATION_FIELD_NAME_CREATION_DATE"]},"zitadel.org.v2.OrganizationIDQuery":{"type":"object","properties":{"id":{"type":"string","title":"id","description":"Unique identifier of the organization."}},"title":"OrganizationIDQuery","required":["id"],"additionalProperties":false},"zitadel.org.v2.OrganizationNameQuery":{"type":"object","properties":{"name":{"type":"string","title":"name","description":"Name of the organization."},"method":{"title":"method","description":"Defines which text equality method is used.","$ref":"#/components/schemas/zitadel.object.v2.TextQueryMethod"}},"title":"OrganizationNameQuery","required":["name"],"additionalProperties":false},"zitadel.org.v2.OrganizationState":{"type":"string","title":"OrganizationState","enum":["ORGANIZATION_STATE_UNSPECIFIED","ORGANIZATION_STATE_ACTIVE","ORGANIZATION_STATE_INACTIVE","ORGANIZATION_STATE_REMOVED"]},"zitadel.org.v2.OrganizationStateQuery":{"type":"object","properties":{"state":{"title":"state","description":"Current state of the organization.","$ref":"#/components/schemas/zitadel.org.v2.OrganizationState"}},"title":"OrganizationStateQuery","additionalProperties":false},"zitadel.org.v2.SearchQuery":{"type":"object","oneOf":[{"type":"object","properties":{"defaultQuery":{"title":"default_query","description":"Filter for the default organization.","$ref":"#/components/schemas/zitadel.org.v2.DefaultOrganizationQuery"}},"title":"default_query","required":["defaultQuery"]},{"type":"object","properties":{"domainQuery":{"title":"domain_query","description":"Filter organizations by their domain.","$ref":"#/components/schemas/zitadel.org.v2.OrganizationDomainQuery"}},"title":"domain_query","required":["domainQuery"]},{"type":"object","properties":{"idQuery":{"title":"id_query","description":"Filter organizations by their id.","$ref":"#/components/schemas/zitadel.org.v2.OrganizationIDQuery"}},"title":"id_query","required":["idQuery"]},{"type":"object","properties":{"nameQuery":{"title":"name_query","description":"Filter organizations by their name.","$ref":"#/components/schemas/zitadel.org.v2.OrganizationNameQuery"}},"title":"name_query","required":["nameQuery"]},{"type":"object","properties":{"stateQuery":{"title":"state_query","description":"Filter organizations by their state.","$ref":"#/components/schemas/zitadel.org.v2.OrganizationStateQuery"}},"title":"state_query","required":["stateQuery"]}],"title":"SearchQuery","additionalProperties":false},"zitadel.org.v2.SetOrganizationMetadataRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"Organization ID is the unique identifier of the organization whose metadata is to be set."},"metadata":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.org.v2.Metadata"},"title":"metadata","description":"Metadata is a list of metadata entries to set."}},"title":"SetOrganizationMetadataRequest","required":["organizationId"],"additionalProperties":false},"zitadel.org.v2.SetOrganizationMetadataResponse":{"type":"object","properties":{"setDate":{"title":"set_date","description":"The timestamp of the update of the organization metadata.","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"SetOrganizationMetadataResponse","additionalProperties":false},"zitadel.org.v2.UpdateOrganizationRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"OrganizationID is the unique identifier of the organization to be updated."},"name":{"type":"string","title":"name","description":"Name is the new name for the organization to be set.\n Note that since the name is used to generate the organization's default domain,\n changing the name will also change the domain.\n Additionally, if the domain is used as suffix for user logins,\n their login names will also change accordingly.\n It will not affect any Organization Domains added to the organization."}},"title":"UpdateOrganizationRequest","required":["organizationId","name"],"additionalProperties":false},"zitadel.org.v2.UpdateOrganizationResponse":{"type":"object","properties":{"changeDate":{"title":"change_date","description":"ChangeDate is the timestamp of the update to the organization.","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"UpdateOrganizationResponse","additionalProperties":false},"zitadel.org.v2.VerifyOrganizationDomainRequest":{"type":"object","properties":{"organizationId":{"type":"string","title":"organization_id","description":"Organization ID is the unique identifier of the organization whose domain is to be verified."},"domain":{"type":"string","title":"domain","description":"Domain is the full qualified domain name to be verified."}},"title":"VerifyOrganizationDomainRequest","required":["organizationId"],"additionalProperties":false},"zitadel.org.v2.VerifyOrganizationDomainResponse":{"type":"object","properties":{"changeDate":{"title":"change_date","description":"ChangeDate is the timestamp of the verification of the Organization Domain.","$ref":"#/components/schemas/google.protobuf.Timestamp"}},"title":"VerifyOrganizationDomainResponse","additionalProperties":false},"zitadel.user.v2.AddHumanUserRequest":{"type":"object","allOf":[{"properties":{"userId":{"type":["string","null"],"title":"user_id","description":"optionally set your own id unique for the user."},"username":{"type":["string","null"],"title":"username","description":"optionally set a unique username, if none is provided the email will be used."},"organization":{"title":"organization","$ref":"#/components/schemas/zitadel.object.v2.Organization"},"profile":{"title":"profile","$ref":"#/components/schemas/zitadel.user.v2.SetHumanProfile"},"email":{"title":"email","$ref":"#/components/schemas/zitadel.user.v2.SetHumanEmail"},"phone":{"title":"phone","$ref":"#/components/schemas/zitadel.user.v2.SetHumanPhone"},"metadata":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.user.v2.SetMetadataEntry"},"title":"metadata"},"idpLinks":{"type":"array","items":{"$ref":"#/components/schemas/zitadel.user.v2.IDPLink"},"title":"idp_links"},"totpSecret":{"type":["string","null"],"title":"totp_secret","description":"An Implementation of RFC 6238 is used, with HMAC-SHA-1 and time-step of 30 seconds.\n Currently no other options are supported, and if anything different is used the validation will fail."}}},{"oneOf":[{"type":"object","properties":{"hashedPassword":{"title":"hashed_password","$ref":"#/components/schemas/zitadel.user.v2.HashedPassword"}},"title":"hashed_password","required":["hashedPassword"]},{"type":"object","properties":{"password":{"title":"password","$ref":"#/components/schemas/zitadel.user.v2.Password"}},"title":"password","required":["password"]}]}],"title":"AddHumanUserRequest","required":["profile","email"],"additionalProperties":false},"zitadel.user.v2.Gender":{"type":"string","title":"Gender","enum":["GENDER_UNSPECIFIED","GENDER_FEMALE","GENDER_MALE","GENDER_DIVERSE"]},"zitadel.user.v2.HashedPassword":{"type":"object","properties":{"hash":{"type":"string","title":"hash"},"changeRequired":{"type":"boolean","title":"change_required"}},"title":"HashedPassword","required":["hash"],"additionalProperties":false},"zitadel.user.v2.IDPLink":{"type":"object","properties":{"idpId":{"type":"string","title":"idp_id"},"userId":{"type":"string","title":"user_id"},"userName":{"type":"string","title":"user_name"}},"title":"IDPLink","additionalProperties":false},"zitadel.user.v2.Password":{"type":"object","properties":{"password":{"type":"string","title":"password"},"changeRequired":{"type":"boolean","title":"change_required"}},"title":"Password","required":["password"],"additionalProperties":false},"zitadel.user.v2.ReturnEmailVerificationCode":{"type":"object","title":"ReturnEmailVerificationCode","additionalProperties":false},"zitadel.user.v2.ReturnPhoneVerificationCode":{"type":"object","title":"ReturnPhoneVerificationCode","additionalProperties":false},"zitadel.user.v2.SendEmailVerificationCode":{"type":"object","properties":{"urlTemplate":{"type":["string","null"],"title":"url_template","description":"Optionally set a url_template, which will be used in the verification mail sent by Zitadel to guide the user to your verification page.\n If no template is set, the default Zitadel url will be used.\n\n The following placeholders can be used: UserID, OrgID, Code"}},"title":"SendEmailVerificationCode","additionalProperties":false},"zitadel.user.v2.SendPhoneVerificationCode":{"type":"object","title":"SendPhoneVerificationCode","additionalProperties":false},"zitadel.user.v2.SetHumanEmail":{"type":"object","allOf":[{"properties":{"email":{"type":"string","title":"email"}}},{"oneOf":[{"type":"object","properties":{"isVerified":{"type":"boolean","title":"is_verified"}},"title":"is_verified","required":["isVerified"]},{"type":"object","properties":{"returnCode":{"title":"return_code","$ref":"#/components/schemas/zitadel.user.v2.ReturnEmailVerificationCode"}},"title":"return_code","required":["returnCode"]},{"type":"object","properties":{"sendCode":{"title":"send_code","$ref":"#/components/schemas/zitadel.user.v2.SendEmailVerificationCode"}},"title":"send_code","required":["sendCode"]}]}],"title":"SetHumanEmail","required":["email"],"additionalProperties":false},"zitadel.user.v2.SetHumanPhone":{"type":"object","allOf":[{"properties":{"phone":{"type":"string","title":"phone"}}},{"oneOf":[{"type":"object","properties":{"isVerified":{"type":"boolean","title":"is_verified"}},"title":"is_verified","required":["isVerified"]},{"type":"object","properties":{"returnCode":{"title":"return_code","$ref":"#/components/schemas/zitadel.user.v2.ReturnPhoneVerificationCode"}},"title":"return_code","required":["returnCode"]},{"type":"object","properties":{"sendCode":{"title":"send_code","$ref":"#/components/schemas/zitadel.user.v2.SendPhoneVerificationCode"}},"title":"send_code","required":["sendCode"]}]}],"title":"SetHumanPhone","additionalProperties":false},"zitadel.user.v2.SetHumanProfile":{"type":"object","properties":{"givenName":{"type":"string","title":"given_name","description":"The given name is the first name of the user"},"familyName":{"type":"string","title":"family_name","description":"The family name is the last name of the user"},"nickName":{"type":["string","null"],"title":"nick_name"},"displayName":{"type":["string","null"],"title":"display_name"},"preferredLanguage":{"type":["string","null"],"title":"preferred_language"},"gender":{"oneOf":[{"$ref":"#/components/schemas/zitadel.user.v2.Gender"},{"type":"null"}],"title":"gender"}},"title":"SetHumanProfile","required":["givenName","familyName"],"additionalProperties":false},"zitadel.user.v2.SetMetadataEntry":{"type":"object","properties":{"key":{"type":"string","title":"key"},"value":{"type":"string","title":"value","format":"byte"}},"title":"SetMetadataEntry","required":["key","value"],"additionalProperties":false}}},"security":[],"tags":[{"name":"zitadel.org.v2.OrganizationService","description":"This service is intended to manage organizations in a Zitadel instance."}]}