Skip to content

GET /v1/projects/{id}/platforms/sms/numbers/countries

Lists supported purchase countries independently of current provider inventory. Requires platforms:read for the path project.

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

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

Parameters

Photon-VersionPhotonVersion

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

idstringrequired

Returns

200 Supported countries. ListNumberCountriesResponse

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

countriesarray of NumberCountryrequired

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.