List project platforms
List project platforms: listProjectPlatforms in the TypeScript, Python, Rust and Go clients.
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>photon.projects.platforms.list_project_platforms(input: ListProjectPlatformsInput, *, options: RequestOptions | None = None) -> models.ListProjectPlatformsResponseclient.list_project_platforms(id: String).await -> Result<ResponseValue<types::ListProjectPlatformsResponse>, Error<ListProjectPlatformsError>>client.Projects.Platforms.ListProjectPlatforms(ctx context.Context, params *ListProjectPlatformsParams, opts ...RequestOption) (*ListProjectPlatformsResponse, error)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",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import ListProjectPlatformsInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.projects.platforms.list_project_platforms(
ListProjectPlatformsInput.model_validate({
"path": {
"id": "id",
},
})
)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_project_platforms("id".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.Platforms.ListProjectPlatforms(ctx, &photonapi.ListProjectPlatformsParams{
ID: "id",
})
if err != nil {
return err
}
_ = result{
"platforms": [
{
"description": "string",
"displayName": "string",
"type": "string"
}
]
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 Every platform type available to the project. ListProjectPlatformsResponse
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.