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
POST /v2/organizations/_search
Description
Search for Organizations. By default, all organizations of the instance that you have permission to read will be returned. Make sure to include a limit and sorting for pagination.
Required Permission
Request Body
List limitations and ordering.Maximum number of results to return.
The field the result is sorted by. Options:
ORGANIZATION_FIELD_NAME_NAME
ORGANIZATION_FIELD_NAME_CREATION_DATE
ORGANIZATION_FIELD_NAME_CHANGE_DATE
Criteria the client is looking for.Filter by organization name. Filter by organization domain. Filter by organization state.
Response
Details of organizations results.Total number of organizations matching the query.
Processed sequence number.
List of organizations matching the query.Unique identifier of the organization.
Current state of the organization.
Name of the organization.
Primary domain of the organization.
Example Request
curl -X POST https://your-domain.zitadel.cloud/v2/organizations/_search \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": {
"limit": 100,
"asc": true
},
"sortingColumn": "ORGANIZATION_FIELD_NAME_NAME",
"queries": [
{
"stateQuery": {
"state": "ORGANIZATION_STATE_ACTIVE"
}
}
]
}'
Example Response
{
"details": {
"totalResult": "25",
"processedSequence": "2000",
"timestamp": "2024-03-15T14:00:00Z"
},
"sortingColumn": "ORGANIZATION_FIELD_NAME_NAME",
"result": [
{
"id": "69629026806489455",
"state": "ORGANIZATION_STATE_ACTIVE",
"name": "ACME Corporation",
"primaryDomain": "acme-corporation.zitadel.cloud"
}
]
}
Error Responses
400 Bad Request - Invalid list query
403 Forbidden - Insufficient permissions