---
title: "Check phone number purchase availability"
method: POST
path: "/phone-numbers/is-available-for-purchase"
tags: ["PhoneNumbers"]
---

# Check phone number purchase availability

`POST /phone-numbers/is-available-for-purchase`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/phone-numbers/is-available-for-purchase`
- Auth: HTTP bearer

Checks whether a phone number can be purchased for the current organization before creating or assigning it.

## Request body

- PhoneNumberAvailabilityRequest: Defines the phone number and capability requirements Leadping should verify before purchase or assignment.
  - `phoneNumber` string, required: Phone number to check for availability, formatted for provider lookup.

## Response `200`

Returns the phone number availability response.

- PhoneNumberAvailabilityResponse: Reports whether a phone number is available for purchase or assignment and explains any blocking condition.
  - `phoneNumber` string: Phone number used by this phone number availability result for calls, SMS, lookup, or routing.
  - `isAvailable` boolean: Indicates whether this phone number is available for purchase or assignment.
  - `price` number, double, nullable: Lead price or transaction price supplied to the Leadping API.
  - `currency` string, nullable: ISO currency code used for the monetary amounts in this phone number availability result.
  - `location` PhoneNumberLocation, nullable: Public Leadping API schema for phone number location data.
    - `resolvedAt` string, date-time, nullable: When local geography resolution completed, including when no geographic match exists. Prevents repeated resolution until an explicit rebuild or new carrier lookup.
    - `location` string, nullable: Geographic location metadata for the phone number, lead, or lookup result.
    - `state` string, nullable: State, province, or region for the lead or organization postal address.
    - `canonicalCity` string, nullable: Canonical city resolved by Leadping from its ZIP-code geography data.
    - `canonicalState` string, nullable: Canonical state or territory abbreviation resolved by Leadping.
    - `countryCode` string, nullable: Country code for the phone number or location represented by this phone number location.
    - `coordinate` Coordinate, nullable: Latitude and longitude coordinate for this lead contact profile.
      - `latitude` number, double, required: Latitude of the geographic coordinate in decimal degrees, from -90 through 90.
      - `longitude` number, double, required: Longitude of the geographic coordinate in decimal degrees, from -180 through 180.
    - `isCoordinateApproximate` boolean: Whether the coordinates represent an approximate phone-number region rather than a resolved city.
    - `coordinateSource` PhoneLocationSource, nullable: Describes how a phone location value was resolved.
      - `method` string: The resolution method, such as Telnyx-city-state, coordinates, phone-number, or state-default.
      - `query` string, nullable: The city, state, coordinates, phone number, or representative ZIP used by the method.
    - `timeZoneId` string, nullable: IANA or Windows time zone identifier used for local scheduling and reporting.
    - `timeZoneSource` PhoneLocationSource, nullable: Describes how a phone location value was resolved.
      - `method` string: The resolution method, such as Telnyx-city-state, coordinates, phone-number, or state-default.
      - `query` string, nullable: The city, state, coordinates, phone number, or representative ZIP used by the method.

## Other responses

- `400`: The request was invalid or failed validation.
- `401`: Authentication credentials are missing or invalid.
- `403`: The caller does not have permission to perform this operation.
- `404`: The requested resource or required account context was not found.
- `415`: The request content type is not supported by this endpoint.
- `429`: The client or account rate limit was exceeded. Retry after the interval in the Retry-After header.
- `500`: An unexpected server error occurred.

## Changes

- **2026-11-17** `e372ccaad0a8`: 1 info
  - added the optional property `allOf[#/components/schemas/PhoneNumberAvailabilityResponse]/location/allOf[#/components/schemas/PhoneNumberLocation]/resolvedAt` to the response with the `200` status
- **2026-11-11** `81aed8c9afb7`: 2 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `415`
- **2026-11-10** `abf3e8e62b6d`: 1 info
  - added the optional property `allOf[#/components/schemas/PhoneNumberAvailabilityResponse]/location/allOf[#/components/schemas/PhoneNumberLocation]/isCoordinateApproximate` to the response with the `200` status

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/phone-numbers/is-available-for-purchase/post.md)

---

[API](https://skmtc.dev/leadping/apis/leadping-api.md) - [All operations](https://skmtc.dev/leadping/apis/leadping-api/llms.txt) - [OpenAPI document](https://skmtc.dev/leadping/apis/leadping-api/revisions/bf1852acaf45?raw)
