> ## Documentation Index
> Fetch the complete documentation index at: https://docs.photon.codes/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use Stable documentation by default. Honor an explicit Beta request or a URL under /docs/beta/. If the requested version conflicts with the installed CLI package or API origin, clarify the target before writing integration code.
> Pages under /docs/beta/ document Beta; other product pages document Stable. Keep the CLI package, commands, API origin, and credentials within the selected version. State the documentation version in your answer.
> For MCP search, always pass version: Stable or version: Beta. Unfiltered search mixes both versions. For filesystem reads, keep Beta queries under /beta/ and exclude /beta/ from Stable queries; discover paths before reading them.
> The public docs base is https://photon.codes/docs. Convert MCP page paths to public URLs under that base, preserving /beta/ when present. Read https://photon.codes/docs/skill.md for version selection and https://photon.codes/docs/llms.txt for the version indexes.

# Get WhatsApp Business account

> Get WhatsApp Business account: getWhatsappBusinessAccount in the TypeScript, Python and Rust clients.

`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.

<Tabs>
  <Tab title="TypeScript">
    ```typescript TypeScript theme={null}
    photon.projects.platforms.getWhatsappBusinessAccount(input: GetWhatsappBusinessAccountInput, options?: RequestOptions): Promise<GetWhatsappBusinessAccountOutput>
    ```
  </Tab>

  <Tab title="Python">
    ```python Python theme={null}
    photon.projects.platforms.get_whatsapp_business_account(input: GetWhatsappBusinessAccountInput) -> models.WhatsappBusinessAccount
    ```
  </Tab>

  <Tab title="Rust">
    ```rust Rust theme={null}
    client.get_whatsapp_business_account(id: String).await -> Result<ResponseValue<types::WhatsappBusinessAccount>, Error<GetWhatsappBusinessAccountError>>
    ```
  </Tab>
</Tabs>

<RequestExample>
  ```typescript TypeScript theme={null}
  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",
    },
  });
  ```

  ```python Python theme={null}
  import os

  from photon_api import Photon
  from photon_api.rpc_generated import GetWhatsappBusinessAccountInput

  photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
  result = photon.projects.platforms.get_whatsapp_business_account(
      GetWhatsappBusinessAccountInput.model_validate({
          "path": {
              "id": "id",
          },
      })
  )
  ```

  ```rust Rust theme={null}
  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_whatsapp_business_account("id".to_owned())
      .await
      .map_err(|error| format!("{error:?}"))?
      .into_inner();
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "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"
  }
  ```
</ResponseExample>

## Parameters

<ParamField path="id" type={"string"} required />

## Returns

**`200`** The project's connected account. WhatsappBusinessAccount

<ResponseField name="accountName" type={"string | null"} required />

<ResponseField name="alerts" type={"array of WhatsappBusinessAccountAlert"} required />

<ResponseField name="businessId" type={"string"} required />

<ResponseField name="businessName" type={"string | null"} required />

<ResponseField name="connectedAt" type={"string (date-time)"} required />

<ResponseField name="maxPhoneNumbersPerBusiness" type={"integer"} />

<ResponseField name="outboundCapacity" type={"WhatsappOutboundCapacity"} required />

<ResponseField name="restriction" type={"WhatsappBusinessAccountRestriction | null"} required />

<ResponseField name="reviewStatus" type={"WhatsappReviewStatus"} required />

<ResponseField name="senderCount" type={"integer"} required />

<ResponseField name="subscribedAt" type={"string (date-time)"} />

<ResponseField name="wabaId" type={"string"} required />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.