Skip to content

GET /v1/projects/{id}/platforms

Lists the platform types available to this project. Every project currently sees the same fixed public contract, answered in-process rather than forwarded, so the list survives an outage of the private service. The project binding exists so that answer can narrow per project without moving the route. Requires the platforms:read permission bound to the project resource in the path.

photon.projects.platforms.listProjectPlatforms(input: ListProjectPlatformsInput, options?: RequestOptions): Promise<ListProjectPlatformsOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.listProjectPlatforms({
  path: {
    id: "id",
  },
});
{
  "platforms": [
    {
      "description": "string",
      "displayName": "string",
      "type": "string"
    }
  ]
}

Parameters

Photon-VersionPhotonVersion

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

idstringrequired

Returns

200 Every platform type available to the project. ListProjectPlatformsResponse

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

platformsarray of SupportedPlatformrequired

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.