Skip to content

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

Lists the connected WABA's phone numbers directly from Meta, including numbers whose Photon sender was disconnected. Ownership is photon for a number in this project's current Photon inventory and meta otherwise. Match a Photon SMS number by its E.164 phoneNumber and reuse its existing displayName when reconnecting. A null name is unavailable, not permission to choose a new name. A failed lookup returns an error rather than an empty list. Requires platforms:read on the path project.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.listWhatsappAccountPhoneNumbers({
  path: {
    id: "id",
  },
});
{
  "phoneNumbers": [
    {
      "displayName": null,
      "ownership": "photon",
      "phoneNumber": "string",
      "phoneNumberId": "string"
    }
  ],
  "wabaId": "string"
}

Parameters

Photon-VersionPhotonVersion

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

idstringrequired

Returns

200 The current Meta number inventory for the connected WABA. ListWhatsappAccountPhoneNumbersResponse

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

phoneNumbersarray of WhatsappAccountPhoneNumberrequired
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.