List WhatsApp account phone numbers
List WhatsApp account phone numbers: listWhatsappAccountPhoneNumbers in the TypeScript, Python, Rust and Go clients.
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>photon.projects.platforms.list_whatsapp_account_phone_numbers(input: ListWhatsappAccountPhoneNumbersInput, *, options: RequestOptions | None = None) -> models.ListWhatsappAccountPhoneNumbersResponseclient.list_whatsapp_account_phone_numbers(id: String).await -> Result<ResponseValue<types::ListWhatsappAccountPhoneNumbersResponse>, Error<ListWhatsappAccountPhoneNumbersError>>client.Projects.Platforms.ListWhatsappAccountPhoneNumbers(ctx context.Context, params *ListWhatsappAccountPhoneNumbersParams, opts ...RequestOption) (*ListWhatsappAccountPhoneNumbersResponse, 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.listWhatsappAccountPhoneNumbers({
path: {
id: "id",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import ListWhatsappAccountPhoneNumbersInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.projects.platforms.list_whatsapp_account_phone_numbers(
ListWhatsappAccountPhoneNumbersInput.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
.list_whatsapp_account_phone_numbers("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.ListWhatsappAccountPhoneNumbers(ctx, &photonapi.ListWhatsappAccountPhoneNumbersParams{
ID: "id",
})
if err != nil {
return err
}
_ = result{
"phoneNumbers": [
{
"displayName": null,
"ownership": "photon",
"phoneNumber": "string",
"phoneNumberId": "string"
}
],
"wabaId": "string"
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
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.
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.