Get project WhatsApp platform
Get project WhatsApp platform: getProjectWhatsappPlatform in the TypeScript, Python, Rust and Go clients.
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>photon.projects.platforms.get_project_whatsapp_platform(input: GetProjectWhatsappPlatformInput, *, options: RequestOptions | None = None) -> models.ProjectPlatformSettingsclient.get_project_whatsapp_platform(id: String).await -> Result<ResponseValue<types::ProjectPlatformSettings>, Error<GetProjectWhatsappPlatformError>>client.Projects.Platforms.GetProjectWhatsappPlatform(ctx context.Context, params *GetProjectWhatsappPlatformParams, opts ...RequestOption) (*ProjectPlatformSettings, error)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",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import GetProjectWhatsappPlatformInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.projects.platforms.get_project_whatsapp_platform(
GetProjectWhatsappPlatformInput.model_validate({
"path": {
"id": "id",
},
})
)use photon_ai_api::{Credential, PhotonClientBuilder, SecretString};
let token = std::env::var("PHOTON_API_TOKEN")?;
let client = PhotonClientBuilder::new()
.credential("accountServiceKey", Credential::Bearer(SecretString::from(token)))
.build()?;
let result = client
.get_project_whatsapp_platform("id".to_owned())
.await
.map_err(|error| format!("{error:?}"))?
.into_inner();import (
"context"
"os"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient(photonapi.WithAPIKey(os.Getenv("PHOTON_API_TOKEN")))
result, err := client.Projects.Platforms.GetProjectWhatsappPlatform(ctx, &photonapi.GetProjectWhatsappPlatformParams{
ID: "id",
})
if err != nil {
return err
}
_ = result{
"dedicatedLineAvailableNow": true,
"maxUserAssignments": 0,
"mode": "shared"
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
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
One of: DedicatedProjectPlatformSettings
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.