Get project closure status
Get project closure status: getProjectClosureStatus in the TypeScript, Python, Rust and Go clients.
GET /v1/organizations/{organizationId}/projects/closure-status
Returns closure progress for projectId within organizationId, including deletionOperationId, domain progress and ready. This read operation does not initiate deletion.
photon.organizations.projects.getProjectClosureStatus(input: GetProjectClosureStatusInput, options?: RequestOptions): Promise<GetProjectClosureStatusOutput>photon.organizations.projects.get_project_closure_status(input: GetProjectClosureStatusInput, *, options: RequestOptions | None = None) -> models.GetProjectClosureStatusResponseclient.get_project_closure_status(organization_id: String, project_id: String).await -> Result<ResponseValue<types::GetProjectClosureStatusResponse>, Error<GetProjectClosureStatusError>>client.Organizations.Projects.GetProjectClosureStatus(ctx context.Context, params *GetProjectClosureStatusParams, opts ...RequestOption) (*GetProjectClosureStatusResponse, error)import { Photon } from "@photon-ai/api";
const photon = new Photon({
headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.organizations.projects.getProjectClosureStatus({
path: {
organizationId: "organizationId",
},
query: {
projectId: "projectId",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import GetProjectClosureStatusInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.organizations.projects.get_project_closure_status(
GetProjectClosureStatusInput.model_validate({
"path": {
"organizationId": "organizationId",
},
"query": {
"projectId": "projectId",
},
})
)use photon_ai_api::{Credential, PhotonClientBuilder, SecretString};
let token = std::env::var("PHOTON_API_TOKEN")?;
let client = PhotonClientBuilder::new()
.credential("accountServiceKey", Credential::Bearer(SecretString::from(token)))
.build()?;
let result = client
.get_project_closure_status("organizationId".to_owned(), "projectId".to_owned())
.await
.map_err(|error| format!("{error:?}"))?
.into_inner();import (
"context"
"os"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient(photonapi.WithAPIKey(os.Getenv("PHOTON_API_TOKEN")))
result, err := client.Organizations.Projects.GetProjectClosureStatus(ctx, &photonapi.GetProjectClosureStatusParams{
OrganizationID: "organizationId",
ProjectID: "projectId",
})
if err != nil {
return err
}
_ = result{
"deletionOperationId": null,
"domains": [
{
"blockers": [
"string"
],
"domain": "projects",
"ready": true
}
],
"organizationId": "string",
"projectId": "string",
"ready": true
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 Current cleanup and settlement evidence. Project deletion alone does not establish readiness. GetProjectClosureStatusResponse
Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.
304 Not Modified. Sent only when If-None-Match matches the ETag of an earlier 200 response for the same representation; no body. No body.
Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.