> ## Documentation Index
> Fetch the complete documentation index at: https://docs.photon.codes/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use Stable documentation by default. Honor an explicit Beta request or a URL under /docs/beta/. If the requested version conflicts with the installed CLI package or API origin, clarify the target before writing integration code.
> Pages under /docs/beta/ document Beta; other product pages document Stable. Keep the CLI package, commands, API origin, and credentials within the selected version. State the documentation version in your answer.
> For MCP search, always pass version: Stable or version: Beta. Unfiltered search mixes both versions. For filesystem reads, keep Beta queries under /beta/ and exclude /beta/ from Stable queries; discover paths before reading them.
> The public docs base is https://photon.codes/docs. Convert MCP page paths to public URLs under that base, preserving /beta/ when present. Read https://photon.codes/docs/skill.md for version selection and https://photon.codes/docs/llms.txt for the version indexes.

# Projects

> The Projects resource in the TypeScript, Python and Rust clients.

## Methods

<Tabs>
  <Tab title="TypeScript">
    **[List projects](/docs/beta/api-client/sdk/organizations/projects/list)**

    ```typescript TypeScript theme={null}
    photon.organizations.projects.list(input: ListProjectsInput, options?: RequestOptions): Promise<ListProjectsOutput>
    ```

    `GET /v1/organizations/{organizationId}/projects`

    **[Check project slug availability](/docs/beta/api-client/sdk/organizations/projects/check-project-slug-availability)**

    ```typescript TypeScript theme={null}
    photon.organizations.projects.checkProjectSlugAvailability(input: CheckProjectSlugAvailabilityInput, options?: RequestOptions): Promise<CheckProjectSlugAvailabilityOutput>
    ```

    `GET /v1/organizations/{organizationId}/projects/slug-availability`

    **[Count projects](/docs/beta/api-client/sdk/organizations/projects/count)**

    ```typescript TypeScript theme={null}
    photon.organizations.projects.count(input: CountProjectsInput, options?: RequestOptions): Promise<CountProjectsOutput>
    ```

    `GET /v1/organizations/{organizationId}/projects/count`

    **[Get project closure status](/docs/beta/api-client/sdk/organizations/projects/get-project-closure-status)**

    ```typescript TypeScript theme={null}
    photon.organizations.projects.getProjectClosureStatus(input: GetProjectClosureStatusInput, options?: RequestOptions): Promise<GetProjectClosureStatusOutput>
    ```

    `GET /v1/organizations/{organizationId}/projects/closure-status`

    **[Create project](/docs/beta/api-client/sdk/organizations/projects/create)**

    ```typescript TypeScript theme={null}
    photon.organizations.projects.create(input: CreateProjectInput, options?: RequestOptions): Promise<CreateProjectOutput>
    ```

    `POST /v1/organizations/{organizationId}/projects`
  </Tab>

  <Tab title="Python">
    **[List projects](/docs/beta/api-client/sdk/organizations/projects/list)**

    ```python Python theme={null}
    photon.organizations.projects.list(input: ListProjectsInput) -> models.ProjectPage
    ```

    `GET /v1/organizations/{organizationId}/projects`

    **[Check project slug availability](/docs/beta/api-client/sdk/organizations/projects/check-project-slug-availability)**

    ```python Python theme={null}
    photon.organizations.projects.check_project_slug_availability(input: CheckProjectSlugAvailabilityInput) -> models.CheckProjectSlugAvailabilityResponse
    ```

    `GET /v1/organizations/{organizationId}/projects/slug-availability`

    **[Count projects](/docs/beta/api-client/sdk/organizations/projects/count)**

    ```python Python theme={null}
    photon.organizations.projects.count(input: CountProjectsInput) -> models.ProjectCount
    ```

    `GET /v1/organizations/{organizationId}/projects/count`

    **[Get project closure status](/docs/beta/api-client/sdk/organizations/projects/get-project-closure-status)**

    ```python Python theme={null}
    photon.organizations.projects.get_project_closure_status(input: GetProjectClosureStatusInput) -> models.GetProjectClosureStatusResponse
    ```

    `GET /v1/organizations/{organizationId}/projects/closure-status`

    **[Create project](/docs/beta/api-client/sdk/organizations/projects/create)**

    ```python Python theme={null}
    photon.organizations.projects.create(input: CreateProjectInput) -> models.Project
    ```

    `POST /v1/organizations/{organizationId}/projects`
  </Tab>

  <Tab title="Rust">
    **[List projects](/docs/beta/api-client/sdk/organizations/projects/list)**

    ```rust Rust theme={null}
    client.list_projects(organization_id: String, params: Option<ListProjectsParams>).await -> Result<ResponseValue<types::ProjectPage>, Error<ListProjectsError>>
    ```

    `GET /v1/organizations/{organizationId}/projects`

    **[Check project slug availability](/docs/beta/api-client/sdk/organizations/projects/check-project-slug-availability)**

    ```rust Rust theme={null}
    client.check_project_slug_availability(organization_id: String, slug: String).await -> Result<ResponseValue<types::CheckProjectSlugAvailabilityResponse>, Error<CheckProjectSlugAvailabilityError>>
    ```

    `GET /v1/organizations/{organizationId}/projects/slug-availability`

    **[Count projects](/docs/beta/api-client/sdk/organizations/projects/count)**

    ```rust Rust theme={null}
    client.count_projects(organization_id: String, params: Option<CountProjectsParams>).await -> Result<ResponseValue<types::ProjectCount>, Error<CountProjectsError>>
    ```

    `GET /v1/organizations/{organizationId}/projects/count`

    **[Get project closure status](/docs/beta/api-client/sdk/organizations/projects/get-project-closure-status)**

    ```rust Rust theme={null}
    client.get_project_closure_status(organization_id: String, project_id: String).await -> Result<ResponseValue<types::GetProjectClosureStatusResponse>, Error<GetProjectClosureStatusError>>
    ```

    `GET /v1/organizations/{organizationId}/projects/closure-status`

    **[Create project](/docs/beta/api-client/sdk/organizations/projects/create)**

    ```rust Rust theme={null}
    client.create_project(idempotency_key: String, organization_id: String, body: &types::CreateProjectRequest).await -> Result<ResponseValue<CreateProjectResponse>, Error<CreateProjectError>>
    ```

    `POST /v1/organizations/{organizationId}/projects`
  </Tab>
</Tabs>

## Models

### ProjectPage

<ResponseField name="nextPageToken" type={"string"} />

<ResponseField name="projects" type={"array of Project"} required />

### CheckProjectSlugAvailabilityResponse

**One of: AvailableProjectSlug**

<ResponseField name="available" type={"true"} required />

<ResponseField name="slug" type={"string"} required />

**One of: UnavailableProjectSlug**

<ResponseField name="available" type={"false"} required />

<ResponseField name="reason" type={"UnavailableProjectSlugReason"} required />

<ResponseField name="slug" type={"string"} required />

<ResponseField name="suggestion" type={"string"} />

### ProjectCount

<ResponseField name="count" type={"integer"} required />

### GetProjectClosureStatusResponse

<ResponseField name="deletionOperationId" type={"string | null"} required />

<ResponseField name="domains" type={"array of ProjectClosureDomainStatus"} required />

<ResponseField name="organizationId" type={"string"} required />

<ResponseField name="projectId" type={"string"} required />

<ResponseField name="ready" type={"boolean"} required />

### Project

<ResponseField name="agentProfile" type={"AgentProfile"} required />

<ResponseField name="billingInitialization" type={"ProjectBillingInitialization"} />

<ResponseField name="createdAt" type={"string (date-time)"} required />

<ResponseField name="createdByAccountId" type={"string | null"} required />

<ResponseField name="createdByActorId" type={"string | null"} required />

<ResponseField name="createdByActorKind" type={"ProjectCreatedByActorKind | null"} required />

<ResponseField name="deletedAt" type={"string (date-time) | null"} required />

<ResponseField name="name" type={"string"} required />

<ResponseField name="organizationId" type={"string"} required />

<ResponseField name="projectId" type={"string"} required />

<ResponseField name="slug" type={"string"} required />

<ResponseField name="updatedAt" type={"string (date-time)"} required />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.