Get project
Get project: getProject in the TypeScript, Python, Rust and Go clients.
GET /v1/projects/{projectId}
Returns the identified project's settings for an authorized caller. The credential must be allowed to access that project; possession of an unrelated project's key does not provide access. Missing and deleted projects are reported through the documented error responses.
photon.projects.get(input: GetProjectInput, options?: RequestOptions): Promise<GetProjectOutput>photon.projects.get(input: GetProjectInput, *, options: RequestOptions | None = None) -> models.Projectclient.get_project(project_id: String).await -> Result<ResponseValue<types::Project>, Error<GetProjectError>>client.Projects.Get(ctx context.Context, params *GetProjectParams, opts ...RequestOption) (*Project, error)import { Photon } from "@photon-ai/api";
const photon = new Photon({
headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.get({
path: {
projectId: "projectId",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import GetProjectInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.projects.get(
GetProjectInput.model_validate({
"path": {
"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("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.Projects.Get(ctx, &photonapi.GetProjectParams{
ProjectID: "projectId",
})
if err != nil {
return err
}
_ = result{
"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 The requested project. Project
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.