List projects
List projects: listProjects in the TypeScript, Python, Rust and Go clients.
GET /v1/organizations/{organizationId}/projects
Returns a cursor-paginated page of the active projects in organizationId. Filter using query and the documented creation-time bounds, and navigate with pageSize and pageToken. Project roles are not returned and role is not a supported filter.
photon.organizations.projects.list(input: ListProjectsInput, options?: RequestOptions): Promise<ListProjectsOutput>photon.organizations.projects.list(input: ListProjectsInput, *, options: RequestOptions | None = None) -> models.ProjectPageclient.list_projects(organization_id: String, params: Option<ListProjectsParams>).await -> Result<ResponseValue<types::ProjectPage>, Error<ListProjectsError>>client.Organizations.Projects.List(ctx context.Context, params *ListProjectsParams, opts ...RequestOption) (*ProjectPage, 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.list({
path: {
organizationId: "organizationId",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import ListProjectsInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.organizations.projects.list(
ListProjectsInput.model_validate({
"path": {
"organizationId": "organizationId",
},
})
)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
.list_projects("organizationId".to_owned(), None)
.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.List(ctx, &photonapi.ListProjectsParams{
OrganizationID: "organizationId",
})
if err != nil {
return err
}
_ = result{
"nextPageToken": "string",
"projects": [
{
"agentProfile": {
"avatarUrl": "https://example.com",
"firstName": "string",
"lastName": null
},
"billingInitialization": "pending",
"createdAt": "2026-01-01T00:00:00.000Z",
"deletedAt": null,
"name": "string",
"organizationId": "string",
"projectId": "string",
"slug": "string",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
]
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 One page of active projects in the organization. ProjectPage
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.