Docs

Get the status of a project claim

GET
/projects/{project_id}/claim/status

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.

Authorization

oauth2 project.write
headerAuthorizationBearer <token>

Scope: project.write

Path Parameters

project_id*string

The project ID: the id that createProject (POST /projects) returns, which zitadel setup also prints as project_id.

Match^[a-zA-Z0-9_-]+$

Query Parameters

challenge_id*string

The challenge_id that createProjectClaim (POST /projects/{project_id}/claim/init) returns for this claim. The claim URL carries it.

Match^ch_[a-zA-Z0-9_-]+$

Response Body

The status of the claim.

application/json
  1. response

A claim challenge that is still awaiting the browser leg.

status*"pending"

The claim has not completed yet.

Value in"pending"
Example Request
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" },);
Example Response
{  "status": "pending"}

Was this helpful?