Docs

Query applications

POST
/applications/query

Returns the applications of a project, paginated with a cursor. Each application appears once, at its newest revision, with each client's client_id in definition.

The list holds both the applications a release declares and the ones registered through publishApplication (POST /applications). An entry with declared: true comes from a release: to change it, edit its file under .zitadel/applications/ and deploy. An entry with declared: false is registered: to change it, call publishApplication.

It never returns a client secret. A registered client's secret is only in the response of the publishApplication call that creates the client. A declared client's secret is the ${{ NAME }} reference from its file, which names the variable holding the secret.

Authorization

headerAuthorizationBearer <token>

Scope: application.read

Query Parameters

project_id*string

The project ID: the id that createProject (POST /projects) returns. zitadel setup prints it as "Project id" in its summary and as project_id with --json, and writes it to .env.local as ZITADEL_PROJECT_ID.

Match^[a-zA-Z0-9_-]+$

Request Body

Request to query the applications of a project.

application/json
  1. body

Request to query the applications of a project.

limit?limit
Range1 <= value <= 100
Default20
page_token?|

Token to retrieve the next page of results. Send the same sorting as the request that issued the token.

sorting?

Sort order. Defaults to created_at ascending; id breaks ties either way.

filter?array<>

Filter criteria for querying applications. Combined with AND.

Response Body

A page of applications.

application/json
  1. response

Paginated list of applications.

applications*array<>
next_page_token?|

Token to pass as page_token in the next request to fetch the following page. Absent when there are no more results. The follow-up request must repeat the same sorting that produced this token (omit only when both pages use the default).

import { configureZitadel, getApi } from "@zitadel/api/config";// In the browser, through the SDK proxy: the session cookie authenticates the call.const api = getApi(configureZitadel({ projectId: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" }));const applications = await api.queryApplications(  {    limit: 2,    sorting: { field: "created_at", direction: "desc" },  },  { project_id: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" },);
Example Response
{  "applications": [    {      "id": "app_01KWHG09JXA7F0N9WD3P2E4YM5",      "revision_id": "apprev_01KWHG3B72K7M7F0N9WD3P2E4Y",      "slug": "partner_portal",      "declared": false,      "created_at": "2026-11-07T11:02:00Z",      "updated_at": "2026-11-07T11:02:00Z",      "definition": {        "slug": "partner_portal",        "name": "Partner portal",        "clients": [          {            "slug": "web",            "client_id": "client_01KWHG09JXA7F0N9WD3P2E4YM6",            "type": "confidential",            "grant_types": [              "authorization_code"            ],            "redirect_uris": [              "https://partners.example.com/callback"            ]          }        ]      }    },    {      "id": "app_01KWH3B72K7M7F0N9WD3P2E4YM",      "revision_id": "apprev_01KWHF2XY6RN7F0N9WD3P2E4YM",      "slug": "shop",      "declared": true,      "created_at": "2026-11-06T09:11:00Z",      "updated_at": "2026-11-08T14:20:00Z",      "definition": {        "slug": "shop",        "name": "Shop",        "clients": [          {            "slug": "web",            "client_id": "shop-web",            "type": "confidential",            "secret": "${{ SHOP_WEB_CLIENT_SECRET }}",            "grant_types": [              "authorization_code",              "refresh_token"            ],            "redirect_uris": [              "https://shop.example.com/callback",              "http://localhost:3000/callback"            ]          }        ]      }    }  ],  "next_page_token": "v1.dGhpcyBpcyBvcGFxdWU.SflKxwRJSMeKKF2QT4fw"}

Was this helpful?