Skip to content

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>
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",
  },
});
{
  "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

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

projectIdstringrequired

Returns

200 The requested project. Project

Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.

agentProfileAgentProfilerequired
billingInitializationProjectBillingInitialization
createdAtstring (date-time)required
deletedAtstring (date-time) | nullrequired
namestringrequired
organizationIdstringrequired
projectIdstringrequired
slugstringrequired
updatedAtstring (date-time)required

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.