Skip to content

GET /v1/projects/{id}/platforms/sms/numbers/area-codes

Lists current provider coverage for US local numbers, sorted and deduplicated. Coverage does not guarantee inventory carrying every required feature. New area-specific purchases must use a listed code; accepted purchases keep waiting if coverage later changes. Requires platforms:read for the path project.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.listNumberAreaCodes({
  path: {
    id: "id",
  },
  query: {
    countryCode: "US",
  },
});
{
  "areaCodes": [
    "string"
  ],
  "countryCode": "US"
}

Parameters

Photon-VersionPhotonVersion

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

idstringrequired
countryCodeunknownrequired

Returns

200 Current area-code coverage. An empty list is a successful coverage read, not an upstream failure. ListNumberAreaCodesResponse

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

areaCodesarray of stringrequired
countryCodeunknownrequired

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: Cache-Control, ETag, Photon-Version. The raw response carries these headers; see Raw responses.