Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Organization

List Organizations

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). Make sure to include a limit and sorting for pagination.

Required permission:

  • org.read
POST
/v2/organizations/_search

Request Body

application/json
  1. body
query?

list limitations and ordering

sortingColumn?sorting_column

the field the result is sorted

Value in"ORGANIZATION_FIELD_NAME_UNSPECIFIED""ORGANIZATION_FIELD_NAME_NAME""ORGANIZATION_FIELD_NAME_CREATION_DATE"
queries?array<||||>

criteria the client is looking for

Response Body

Success

application/json
  1. response
details?

Details of organizations results.

sortingColumn?sorting_column

The sorting columns the result is sorted.

Value in"ORGANIZATION_FIELD_NAME_UNSPECIFIED""ORGANIZATION_FIELD_NAME_NAME""ORGANIZATION_FIELD_NAME_CREATION_DATE"
result?array<>

The Result is a list of organizations matching the query.

Example Request
curl -X POST 'https://example.com/v2/organizations/_search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "details": {    "totalResult": 0,    "processedSequence": 0,    "timestamp": "2023-01-15T01:30:15.01Z"  },  "sortingColumn": "ORGANIZATION_FIELD_NAME_UNSPECIFIED",  "result": [    {      "id": "string",      "details": {        "sequence": 0,        "changeDate": "2023-01-15T01:30:15.01Z",        "resourceOwner": "string",        "creationDate": "2023-01-15T01:30:15.01Z"      },      "state": "ORGANIZATION_STATE_UNSPECIFIED",      "name": "string",      "primaryDomain": "string"    }  ]}

Was this page helpful?