Skip to content

GET /v1/projects/{id}/platforms/whatsapp-business/account

Gets the one WhatsApp Business Account this project has connected, with its number of live senders. Senders are resources and are listed by GET /platforms/resources?ability=whatsapp_business. The account is not a resource and carries no access token. Meta's retained numbers are listed separately by GET /platforms/whatsapp-business/account/phone-numbers. subscribedAt is absent until our app is attached to the account's webhooks. Requires the platforms:read permission bound to the project resource in the path.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.getWhatsappBusinessAccount({
  path: {
    id: "id",
  },
});
{
  "accountName": null,
  "alerts": [
    {
      "description": "string",
      "entityId": "string",
      "entityType": "string",
      "observedAt": "2026-01-01T00:00:00.000Z",
      "severity": "string",
      "status": "string",
      "type": "string"
    }
  ],
  "businessId": "string",
  "businessName": null,
  "connectedAt": "2026-01-01T00:00:00.000Z",
  "maxPhoneNumbersPerBusiness": 0,
  "outboundCapacity": "50",
  "restriction": null,
  "reviewStatus": "PENDING",
  "senderCount": 0,
  "subscribedAt": "2026-01-01T00:00:00.000Z",
  "wabaId": "string"
}

Parameters

Photon-VersionPhotonVersion

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

idstringrequired

Returns

200 The project's connected account. WhatsappBusinessAccount

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

accountNamestring | nullrequired
alertsarray of WhatsappBusinessAccountAlertrequired
businessIdstringrequired
businessNamestring | nullrequired
connectedAtstring (date-time)required
maxPhoneNumbersPerBusinessinteger
outboundCapacityWhatsappOutboundCapacityrequired
restrictionWhatsappBusinessAccountRestriction | nullrequired
reviewStatusWhatsappReviewStatusrequired
senderCountintegerrequired
subscribedAtstring (date-time)
wabaIdstringrequired

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.