Get the status of a project claim
Returns the status of a claim challenge, pending or completed, while a
browser completes the claim.
A claim attaches a project to a team.
zitadel claim polls this operation after createProjectClaim (POST /projects/{project_id}/claim/init) starts the claim.
Once the project is claimed, the response is completed with the owning
team, the claim timestamp and the dashboard URL.
The claim itself, not the polled challenge, decides the status. A project
claimed through another concurrent challenge also reports completed. A
completed claim keeps reporting completed past this challenge's expiry
and past the project's claim window.
Pass the challenge_id that createProjectClaim returns. Authenticate with the
project secret that started the challenge. On 410 with proj.claim_expired, call
createProjectClaim again for a fresh challenge.
oauth2 project.writeAuthorizationBearer <token>Scope: project.write
project_id*stringThe project ID: the id that createProject (POST /projects) returns, which zitadel setup
also prints as project_id.
^[a-zA-Z0-9_-]+$challenge_id*stringThe challenge_id that createProjectClaim (POST /projects/{project_id}/claim/init) returns for this claim. The claim URL
carries it.
^ch_[a-zA-Z0-9_-]+$The status of the claim.
application/json- response
A claim challenge that is still awaiting the browser leg.
status*"pending"The claim has not completed yet.
"pending"import { createZitadelClient } from "@zitadel/api/client";const client = createZitadelClient({ baseUrl: process.env.ZITADEL_URL ?? "http://localhost:8080", token: process.env.ZITADEL_PROJECT_SECRET!, // server-side only});const projectClaimStatus = await client.getProjectClaimStatus( "proj_01KWH1P4MYS7F0N9WD3P2E4YM5", { challenge_id: "ch_01J0Z9KX7Y0Q2Y7JX5M9K2YF3C" },);{ "status": "pending"}Was this helpful?