Search available phone numbers
POST /api/phone-numbers/search
Queries the Telnyx network for available phone numbers matching your criteria. This endpoint does not purchase numbers — it returns a list you can choose from before calling the purchase endpoint.
Request body
object
erforderlich
An object containing search filters.
string
erforderlich
ISO 3166-1 alpha-2 country code (for example,
"US", "GB", "CA").string
Three-digit area code to filter by (for example,
"415" for San Francisco). Only applicable for US and CA numbers.string
Type of number to search for. One of:
local (default), toll-free.integer
Maximum number of results to return. Defaults to
20.Example request
Antwort
array
Array of available phone number objects.
string
The phone number in E.164 format. Pass this value to the purchase endpoint.
string
Recurring monthly cost for the number, in USD.
string
One-time setup fee for the number, in USD.
array
Capabilities supported by this number (for example,
"voice", "sms").string
The telephony provider that supplies this number.
integer
Number of results returned.
Purchase a phone number
POST /api/phone-numbers/purchase
Purchases a phone number and adds it to your team’s account. After purchasing, you can assign the number to an assistant using the assign phone numbers endpoint.
Request body
string
erforderlich
The phone number to purchase in E.164 format (for example,
"+14155550101"). Use a number returned by the search endpoint.string
erforderlich
The team ID to associate this number with.
string
Optional FQDN connection ID for a custom Talkturo provider configuration.
Example request
Antwort
string
Unique identifier for this phone number record. Use this ID when assigning the number to an assistant or campaign.
string
The purchased phone number in E.164 format.
string
The identifier assigned by the telephony provider.
string
Current status of the number (for example,
active).boolean
true if this is a free trial number with an expiry date.string
ISO 8601 datetime when the trial number expires.
null for non-trial numbers.integer
Number of phone numbers your team currently owns.
integer
Maximum phone numbers allowed by your current plan.
boolean
Whether your account has an active paid subscription.
string
The name of your current plan.
List purchased phone numbers
GET /api/phone-numbers/purchase
Retrieves all phone numbers your team has purchased, including which assistant each number is currently assigned to.
Query parameters
string
erforderlich
The team ID to list phone numbers for.
Example request
Antwort
array
Array gekaufter Telefonnummernobjekte.
string
Eindeutiger Bezeichner für den Telefonnummerndatensatz.
string
Die Telefonnummer im E.164-Format.
string
Der Telefonanbieter für diese Nummer.
string
Aktueller Status der Nummer.
boolean
Ob es sich hierbei um eine Testnummer handelt.
string
Ablaufdatum und Uhrzeit für Testnummern. „null“ für kostenpflichtige Nummern.
string
Die ID des Assistenten, dem diese Nummer derzeit zugewiesen ist. „null“, wenn nicht zugewiesen.
string
Der Name des zugewiesenen Assistenten. „null“, wenn nicht zugewiesen.
string
E-Mail des Teammitglieds, das diese Nummer gekauft hat.
string
Name des Teammitglieds, das diese Nummer gekauft hat.
string
ISO 8601-Zeitstempel des Kaufzeitpunkts der Nummer.
integer
Gesamtzahl der Telefonnummern im Konto.