Skip to content

GET /v1/projects/{id}/platforms/resources

Lists the project's resources, oldest first, including retired ones unless state filters them out. Filter by type, by enabled ability and by comma-separated state. Lifecycle states are unallocated, active and retired; active means owned and non-retired, not provider-confirmed readiness. Every VoIP resource includes detail.activationState: activating or active, defaulting to active without owner-matched saved state. state=active includes numbers still activating. Requires the platforms:read permission bound to the project resource in the path.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.listResources({
  path: {
    id: "id",
  },
});
{
  "nextPageToken": "string",
  "resources": [
    {
      "abilities": [
        "string"
      ],
      "createdAt": "2026-01-01T00:00:00.000Z",
      "detail": {},
      "projectId": "string",
      "resourceId": "string",
      "retiredAt": "2026-01-01T00:00:00.000Z",
      "state": "unallocated",
      "type": "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.

idstringrequired
abilitystring
pageSizeinteger
pageTokenstring
statestring

Comma-separated lifecycle states: unallocated, active or retired. active selects all owned, non-retired resources, including numbers whose detail.activationState is activating.

typestring

Returns

200 A page of the project's resources. ResourcePage

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

nextPageTokenstring
resourcesarray of Resourcerequired

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.