ZITADEL Docs
APIsCore ResourcesV2Project

ListProjects

List Projects

List all matching projects. By default all projects of the instance that the caller has permission to read are returned. Make sure to include a limit and sorting for pagination.

Required permission:

  • project.read
POST
/zitadel.project.v2.ProjectService/ListProjects

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

pagination?

Pagination can be used to list limitations and ordering.

sortingColumn?string

SortingColumn is the field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.

Value in"PROJECT_FIELD_NAME_UNSPECIFIED" | "PROJECT_FIELD_NAME_ID" | "PROJECT_FIELD_NAME_CREATION_DATE" | "PROJECT_FIELD_NAME_CHANGE_DATE" | "PROJECT_FIELD_NAME_NAME"
filters?

Filters define the criteria to query for.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/zitadel.project.v2.ProjectService/ListProjects" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "pagination": {
    "totalResult": 0,
    "appliedLimit": 0
  },
  "projects": [
    {
      "projectId": "string",
      "organizationId": "string",
      "creationDate": "1s",
      "changeDate": "1s",
      "name": "string",
      "state": "PROJECT_STATE_UNSPECIFIED",
      "projectRoleAssertion": true,
      "authorizationRequired": true,
      "projectAccessRequired": true,
      "privateLabelingSetting": "PRIVATE_LABELING_SETTING_UNSPECIFIED",
      "grantedOrganizationId": "string",
      "grantedOrganizationName": "string",
      "grantedState": "GRANTED_PROJECT_STATE_UNSPECIFIED"
    }
  ]
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?