Docs

Get a revision of an identity provider

GET
/idps/revisions/{revision_id}

Returns one revision of an identity provider, an external sign-in such as Google, by its revision_id, the value an authentication attempt or a release pins.

The lookup is scoped to the project in project_id.

Authorization

headerAuthorizationBearer <token>

Scope: idp.read

Path Parameters

revision_id*string

The revision ID: the revision_id that publishIdp (POST /idps) returns, or that listIdpRevisions (GET /idps/{idp_id}/revisions) lists.

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_-]+$

Response Body

The revision.

application/json
  1. response

An identity provider, with its connection document as definition.

id*string

A unique ID, generated when the identity provider is created and shared by every revision. The identity links reference this ID.

revision_id*string

The ID of the revision this entry holds, pinned by authentication attempts and releases. getIdp (GET /idps/{idp_id}) and queryIdps (POST /idps/query) return the newest one; getIdpRevision (GET /idps/revisions/{revision_id}) (GET /idps/revisions/{revision_id}) returns the requested revision.

slug*string

The identifier by which user schemas and flow definitions reference the identity provider. Fixed for the life of the identity provider.

created_at*string

When the identity provider was created.

Formatdate-time
updated_at*string

When this revision was created. On the newest revision, that is when the identity provider was last revised.

Formatdate-time
definition*

The stored connection document.

Example Request
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.getIdpRevision(  "idprev_01KWH3B72K7M7F0N9WD3P2E4YN",  { project_id: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" },);
Example Response
{  "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?