Get a revision of an application
Returns one revision of an application that authenticates its users via
Zitadel, by its revision_id, the value a release pins. A declared
application is served at the revision its deployment's release pins, so
this is how to read what a release serves. It never returns a client
secret.
The lookup is scoped to the project in project_id.
AuthorizationBearer <token>Scope: application.read
revision_id*stringThe revision ID: the revision_id that publishApplication (POST /applications)
or getApplication returns, or that a release pins.
^apprev_[a-zA-Z0-9_-]+$project_id*stringThe 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.
^[a-zA-Z0-9_-]+$The revision.
application/json- response
An application at its newest revision, with its document as definition.
It never carries a client secret.
id*stringA unique ID, generated when the application is created and shared by every revision.
revision_id*stringThe ID of the revision this entry holds. getApplication
(GET /applications/{application_id}) returns the newest one.
slug*stringThe identifier by which other documents reference the application. Fixed for the life of the application.
declared*booleanTrue when a release declares the application, from a file under
.zitadel/applications/, and only a deploy revises it. False when it
was registered through createApplication (POST /applications).
created_at*stringWhen the application was created.
date-timeupdated_at*stringWhen this revision was created. On the newest revision, that is when the application was last revised.
date-timedefinition*The stored application document, with each client's client_id.
import { configureZitadel, getApi } from "@zitadel/api/config";// In the browser, through the SDK proxy: the session cookie authenticates the call.const client = getApi(configureZitadel({ projectId: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" }));const applicationRevision = await client.getApplicationRevision("string", { project_id: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" });{ "id": "app_01KWH3B72K7M7F0N9WD3P2E4YM", "revision_id": "apprev_01KWH3B72K7M7F0N9WD3P2E4YN", "slug": "shop", "declared": true, "created_at": "2026-11-06T09:11:00Z", "updated_at": "2026-11-06T09:11: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" ] } ] }}Was this helpful?