Skip to content

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

Reads one resource the project holds. A released number stays readable and reads retired, because it remains part of this project's history. A dedicated line given back does NOT: returning it to inventory is what makes it claimable by someone else, so it answers 404 and the operation that returned it is the record that this project once held it. Requires the platforms:read permission bound to the project resource in the path.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.getResource({
  path: {
    id: "id",
    resourceId: "resourceId",
  },
});
{
  "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
resourceIdstringrequired

Returns

200 The resource. Resource

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

abilitiesarray of stringrequired
createdAtstring (date-time)required
detailobjectrequired

Per-type public detail. Only voip_line includes activationState: activating or active. Every voip_line includes it; without an owner-matched saved record it defaults to active. This includes imported, legacy and unallocated numbers. This is not provider-confirmed readiness; elapsed time alone never changes saved activation. A retired number retains its saved activation state.

projectIdstringrequired
resourceIdstringrequired
retiredAtstring (date-time)
stateResourceStaterequired
typestringrequired
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.