Search Organizations
POST/v2/organizations/_search
Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination..
Request​
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
Array [
]
query
object
Object unspecific list filters like offset, limit and asc/desc.
Maximum amount of events returned. The default is set to 1000 in https://github.com/zitadel/zitadel/blob/new-eventstore/cmd/zitadel/startup.yaml. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.
default is descending
Possible values: [ORGANIZATION_FIELD_NAME_UNSPECIFIED
, ORGANIZATION_FIELD_NAME_NAME
]
Default value: ORGANIZATION_FIELD_NAME_UNSPECIFIED
queries
object[]
nameQuery
object
Possible values: non-empty
and <= 200 characters
Name of the organization.
Possible values: [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
]
Default value: TEXT_QUERY_METHOD_EQUALS
Defines which text equality method is used.
domainQuery
object
Possible values: non-empty
and <= 200 characters
Domain used in organization, not necessary primary domain.
Possible values: [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
]
Default value: TEXT_QUERY_METHOD_EQUALS
Defines which text equality method is used.
stateQuery
object
Possible values: [ORGANIZATION_STATE_UNSPECIFIED
, ORGANIZATION_STATE_ACTIVE
, ORGANIZATION_STATE_INACTIVE
, ORGANIZATION_STATE_REMOVED
]
Default value: ORGANIZATION_STATE_UNSPECIFIED
Current state of the organization.
idQuery
object
Possible values: non-empty
and <= 200 characters
Unique identifier of the organization.
Body
required
Array [
]
query
object
Object unspecific list filters like offset, limit and asc/desc.
Maximum amount of events returned. The default is set to 1000 in https://github.com/zitadel/zitadel/blob/new-eventstore/cmd/zitadel/startup.yaml. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.
default is descending
Possible values: [ORGANIZATION_FIELD_NAME_UNSPECIFIED
, ORGANIZATION_FIELD_NAME_NAME
]
Default value: ORGANIZATION_FIELD_NAME_UNSPECIFIED
queries
object[]
nameQuery
object
Possible values: non-empty
and <= 200 characters
Name of the organization.
Possible values: [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
]
Default value: TEXT_QUERY_METHOD_EQUALS
Defines which text equality method is used.
domainQuery
object
Possible values: non-empty
and <= 200 characters
Domain used in organization, not necessary primary domain.
Possible values: [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
]
Default value: TEXT_QUERY_METHOD_EQUALS
Defines which text equality method is used.
stateQuery
object
Possible values: [ORGANIZATION_STATE_UNSPECIFIED
, ORGANIZATION_STATE_ACTIVE
, ORGANIZATION_STATE_INACTIVE
, ORGANIZATION_STATE_REMOVED
]
Default value: ORGANIZATION_STATE_UNSPECIFIED
Current state of the organization.
idQuery
object
Possible values: non-empty
and <= 200 characters
Unique identifier of the organization.
Body
required
Array [
]
query
object
Object unspecific list filters like offset, limit and asc/desc.
Maximum amount of events returned. The default is set to 1000 in https://github.com/zitadel/zitadel/blob/new-eventstore/cmd/zitadel/startup.yaml. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.
default is descending
Possible values: [ORGANIZATION_FIELD_NAME_UNSPECIFIED
, ORGANIZATION_FIELD_NAME_NAME
]
Default value: ORGANIZATION_FIELD_NAME_UNSPECIFIED
queries
object[]
nameQuery
object
Possible values: non-empty
and <= 200 characters
Name of the organization.
Possible values: [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
]
Default value: TEXT_QUERY_METHOD_EQUALS
Defines which text equality method is used.
domainQuery
object
Possible values: non-empty
and <= 200 characters
Domain used in organization, not necessary primary domain.
Possible values: [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
]
Default value: TEXT_QUERY_METHOD_EQUALS
Defines which text equality method is used.
stateQuery
object
Possible values: [ORGANIZATION_STATE_UNSPECIFIED
, ORGANIZATION_STATE_ACTIVE
, ORGANIZATION_STATE_INACTIVE
, ORGANIZATION_STATE_REMOVED
]
Default value: ORGANIZATION_STATE_UNSPECIFIED
Current state of the organization.
idQuery
object
Possible values: non-empty
and <= 200 characters
Unique identifier of the organization.
Responses​
- 200
- 400
- 403
- 404
- default
A list of all organizations matching the query
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object
the last time the projection got updated
Possible values: [ORGANIZATION_FIELD_NAME_UNSPECIFIED
, ORGANIZATION_FIELD_NAME_NAME
]
Default value: ORGANIZATION_FIELD_NAME_UNSPECIFIED
result
object[]
Unique identifier of the organization.
details
object
on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
on read: the timestamp of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
Possible values: [ORGANIZATION_STATE_UNSPECIFIED
, ORGANIZATION_STATE_ACTIVE
, ORGANIZATION_STATE_INACTIVE
, ORGANIZATION_STATE_REMOVED
]
Default value: ORGANIZATION_STATE_UNSPECIFIED
Current state of the organization, for example active, inactive and deleted.
Name of the organization.
Primary domain used in the organization.
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-11-25T09:01:37.972Z"
},
"sortingColumn": "ORGANIZATION_FIELD_NAME_UNSPECIFIED",
"result": [
{
"id": "69629023906488334",
"details": {
"sequence": "2",
"changeDate": "2024-11-25T09:01:37.972Z",
"resourceOwner": "69629023906488334"
},
"state": "ORGANIZATION_STATE_UNSPECIFIED",
"name": "ZITADEL",
"primaryDomain": "zitadel.cloud"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object
the last time the projection got updated
Possible values: [ORGANIZATION_FIELD_NAME_UNSPECIFIED
, ORGANIZATION_FIELD_NAME_NAME
]
Default value: ORGANIZATION_FIELD_NAME_UNSPECIFIED
result
object[]
Unique identifier of the organization.
details
object
on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
on read: the timestamp of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
Possible values: [ORGANIZATION_STATE_UNSPECIFIED
, ORGANIZATION_STATE_ACTIVE
, ORGANIZATION_STATE_INACTIVE
, ORGANIZATION_STATE_REMOVED
]
Default value: ORGANIZATION_STATE_UNSPECIFIED
Current state of the organization, for example active, inactive and deleted.
Name of the organization.
Primary domain used in the organization.
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-11-25T09:01:37.973Z"
},
"sortingColumn": "ORGANIZATION_FIELD_NAME_UNSPECIFIED",
"result": [
{
"id": "69629023906488334",
"details": {
"sequence": "2",
"changeDate": "2024-11-25T09:01:37.973Z",
"resourceOwner": "69629023906488334"
},
"state": "ORGANIZATION_STATE_UNSPECIFIED",
"name": "ZITADEL",
"primaryDomain": "zitadel.cloud"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object
the last time the projection got updated
Possible values: [ORGANIZATION_FIELD_NAME_UNSPECIFIED
, ORGANIZATION_FIELD_NAME_NAME
]
Default value: ORGANIZATION_FIELD_NAME_UNSPECIFIED
result
object[]
Unique identifier of the organization.
details
object
on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
on read: the timestamp of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
Possible values: [ORGANIZATION_STATE_UNSPECIFIED
, ORGANIZATION_STATE_ACTIVE
, ORGANIZATION_STATE_INACTIVE
, ORGANIZATION_STATE_REMOVED
]
Default value: ORGANIZATION_STATE_UNSPECIFIED
Current state of the organization, for example active, inactive and deleted.
Name of the organization.
Primary domain used in the organization.
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-11-25T09:01:37.974Z"
},
"sortingColumn": "ORGANIZATION_FIELD_NAME_UNSPECIFIED",
"result": [
{
"id": "69629023906488334",
"details": {
"sequence": "2",
"changeDate": "2024-11-25T09:01:37.974Z",
"resourceOwner": "69629023906488334"
},
"state": "ORGANIZATION_STATE_UNSPECIFIED",
"name": "ZITADEL",
"primaryDomain": "zitadel.cloud"
}
]
}
invalid list query
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"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
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"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
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}