Skip to content

GET /v1/projects/{projectId}/billing/plans

Lists the billing plan catalog, grouped by their public plan-metadata type. Use the returned plan information when choosing the category and planCode for a plan change. The catalog is the same for every project, and reading it does not purchase a plan.

photon.projects.billing.listBillingPlans(input: ListBillingPlansInput, options?: RequestOptions): Promise<ListBillingPlansOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.billing.listBillingPlans({
  path: {
    projectId: "projectId",
  },
});
{
  "plans": {}
}

Parameters

Photon-VersionPhotonVersion

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

projectIdstringrequired

The project being billed.

Returns

200 Billing plans grouped by their public plan-metadata type. ListBillingPlansResponse

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

plansobjectrequired

Plans grouped by valid metadata type and explicitly published with visible="true". Each group is in display order: by tier, plans without one last, then by planCode.

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.