Get an identity provider by ID
Returns an identity provider, an external sign-in such as Google, by ID at
its newest revision. listIdpRevisions (GET /idps/{idp_id}/revisions) lists
every revision of it.
The lookup is scoped to the project in project_id.
AuthorizationBearer <token>Scope: idp.read
idp_id*stringThe connection ID: the id that publishIdp (POST /idps) returns or queryIdps (POST /idps/query) lists.
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 identity provider.
application/json- response
An identity provider, with its connection document as definition.
id*stringA unique ID, generated when the identity provider is created and shared by every revision. The identity links reference this ID.
revision_id*stringThe 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*stringThe identifier by which user schemas and flow definitions reference the identity provider. Fixed for the life of the identity provider.
created_at*stringWhen the identity provider was created.
date-timeupdated_at*stringWhen this revision was created. On the newest revision, that is when the identity provider 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 idp = await client.getIdp("idp_01KWH3B72K7M7F0N9WD3P2E4YM", { project_id: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" });{ "id": "idp_01KWH3B72K7M7F0N9WD3P2E4YM", "revision_id": "idprev_01KWHF2XY6RN7F0N9WD3P2E4YM", "slug": "google", "created_at": "2026-07-14T09:11:00Z", "updated_at": "2026-07-16T14:20: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?