Skip to main content
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) or telephony_provider_id to 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 Request is returned when page or limit is below 1 or not a whole number, or sortBy or sortOrder is outside its allowed values.
  • 401 Unauthorized is returned when the API key is missing or invalid.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
number
default:1

Page number, starting from 1.

Required range: x >= 1
limit
number
default:20

Results per page.

Required range: x >= 1
sortBy
enum<string>
default:id

Field to sort by.

Available options:
id,
created_at,
updated_at,
status
sortOrder
enum<string>
default:ASC

Sort direction.

Available options:
ASC,
DESC

Response

Phone numbers returned successfully.

success
enum<boolean>
required
Available options:
true
error
enum<boolean>
required
Available options:
false
statusCode
integer
required
Example:

200

message
string
required
Example:

"Success"

data
object
required
timestamp
string<date-time>
required