Skip to content

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

Reports whether the project is on shared or dedicated WhatsApp lines, derived from its billing entitlements. Shared mode carries the seat cap. Both say whether a dedicated line requested now would be assigned without waiting. Requires the platforms:read permission bound to the project resource in the path.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.getProjectWhatsappPlatform({
  path: {
    id: "id",
  },
});
{
  "dedicatedLineAvailableNow": true,
  "maxUserAssignments": 0,
  "mode": "shared"
}

Parameters

Photon-VersionPhotonVersion

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

idstringrequired

Returns

200 The project's WhatsApp line mode. ProjectPlatformSettings

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

One of: SharedProjectPlatformSettings

dedicatedLineAvailableNowbooleanrequired
maxUserAssignmentsintegerrequired
modeunknownrequired

One of: DedicatedProjectPlatformSettings

dedicatedLineAvailableNowbooleanrequired
modeunknownrequired

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.