Skip to content

GET /v1/projects/{id}/platforms/voice/lines/{resourceId}/profile

Gets the explicit additional-profile override for an owned Voice-capable line. A line following the project default returns 200 without profileId. Requires platforms:read bound to the path project.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.getVoiceLineProfileAssignment({
  path: {
    id: "id",
    resourceId: "resourceId",
  },
});
{
  "profileId": "string",
  "profileVersion": 1,
  "projectId": "string",
  "resourceId": "string",
  "resourceVersion": 1,
  "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 line profile assignment. VoiceLineProfileAssignment

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

profileIdstring
profileVersioninteger
projectIdstringrequired
resourceIdstringrequired
resourceVersionintegerrequired
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.