Phone Numbers
List Phone Numbers
List phone numbers provisioned in your workspace.
GET
List Phone Numbers
Read only
Returns every phone number provisioned in your workspace, paginated. Each entry carries
country_iso (the country calling code without a plus, for example 91), phone_number (the national number as a string of digits; the E.164 form is + followed by both), its status, the telephony_provider_id, the inbound_agent_id and outbound_agent_id it is linked to, the rental window (rental_start_date, rental_end_date, rental_status), whether a SIP trunk is linked, the dashboard nickname, created_at, and is_default (whether it is a DialNexa system default number). The meta object reports the current page, the page size and hasMore; no total count is returned. Use this to power a number management view, audit which numbers are in use, or sync your DialNexa number portfolio with your asset inventory.
When to use this
- Number management UIs: render a table of every number with its status, rental window and assigned agents.
- Routing audits: confirm every active number has an agent assigned, or surface unrouted numbers as a follow-up task.
- Cost reporting: aggregate by calling code (
country_iso) ortelephony_provider_idto attribute telephony spend per workspace, region, or provider. - Operational scripts: enumerate numbers before auditing routing assignments or provisioning additional numbers.
Query parameters
Errors
400 Bad Requestis returned whenpageorlimitis below1or not a whole number, orsortByorsortOrderis outside its allowed values.401 Unauthorizedis returned when the API key is missing or invalid.
Related endpoints
- Get Phone Number Details: fetch a single number’s detail.
- Buy a Phone Number: purchase a new number.
- Search Available Numbers: find provider numbers available for purchase.
- Link SIP Trunk: connect a bring-your-own number.
- Delete Phone Number: remove a number you no longer use.
- API pagination: how DialNexa list endpoints paginate.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Page number, starting from 1.
Required range:
x >= 1Results per page.
Required range:
x >= 1Field to sort by.
Available options:
id, created_at, updated_at, status Sort direction.
Available options:
ASC, DESC