Get one revision of an identity provider connection
Reads one revision of a connection by its revision_id, the value an auth
attempt or a release pins.
The lookup is scoped to the project in project_id.
AuthorizationBearer <token>Scope: idp.read
revision_id*stringThe revision id, allocated when the revision was written.
project_id*stringThe unique identifier of the project
^[a-zA-Z0-9_-]+$The revision was retrieved successfully.
application/json- response
An identity provider connection.
id*stringA unique connection id, generated when the connection is created, and shared by every revision. This id is referenced by the identity links.
revision_id*stringThe id of the revision this row holds, pinned by auth attempts and
releases. GET /idps/{id} and the query return the newest one;
GET /idps/revisions/{revision_id} returns the requested revision.
slug*stringThe identifier by which user schemas and flow definitions reference the connection. Fixed for the life of the connection.
created_at*stringWhen the connection was created.
date-timeupdated_at*stringWhen this revision was created. On the newest revision, that is when the connection was last revised.
date-timedefinition*The stored connection document.
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 idpRevision = await client.getIdpRevisionById( "idprev_01KWH3B72K7M7F0N9WD3P2E4YN", { project_id: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" },);{ "id": "idp_01KWH3B72K7M7F0N9WD3P2E4YM", "revision_id": "idprev_01KWH3B72K7M7F0N9WD3P2E4YN", "slug": "google", "created_at": "2026-07-14T09:11:00Z", "updated_at": "2026-07-14T09:11:00Z", "definition": { "slug": "google", "protocol": "oidc", "template": "google", "display_name": "Google", "subject_claim": "sub", "claim_mapping": { "email": "email", "givenName": "given_name", "familyName": "family_name" }, "verified_claims": { "email": "email_verified" }, "provisioning": { "creation": "auto" }, "oidc": { "issuer": "https://accounts.google.com", "id_token_mapping": false, "client_id": "${{ GOOGLE_CLIENT_ID }}", "client_secret": "${{ GOOGLE_CLIENT_SECRET }}", "token_endpoint_auth_method": "client_secret_basic", "scopes": [ "openid", "profile", "email" ], "pkce_enabled": true, "static_authorize_parameters": { "prompt": "select_account" } } }}Was this helpful?