v1

latestOpenAPI 3.0.12026-07-226992320.0 KB
Phone Numbers

List Phone Numbers

Returns a paginated list of all phone numbers registered on the account, sorted by most recently added first. Includes both SigmaMind-provisioned numbers and BYO numbers imported via SIP trunking. Use page and size to navigate through results.

get/v1/phone-numbers

Query parameters

pageinteger

Zero-based page number to retrieve. Use 0 for the first page. Must be 0 or greater.

sizeinteger

Number of phone numbers to return per page. Must be 1 or greater. Defaults to 10.

Response

OK

pageinteger

Current page number (0-based index). Indicates which page of results is being returned.

sizeinteger

Number of items requested per page. Determines the maximum size of the 'data' list.

totalCountinteger

Total number of records available across all pages. Useful for calculating pagination on the client side.

totalPagesinteger

Total number of pages available based on totalCounts and size. Helps clients understand how many pages exist in total.

hasNextboolean

Indicates whether there is a next page available after the current one. Useful for implementing 'Load More' or next navigation.

hasPreviousboolean

Indicates whether there is a previous page before the current one. Useful for enabling backward navigation.

Example response

{
  "data": [
    {
      "sipPhoneNumber": "+14155552671",
      "provider": "twilio",
      "inboundAgentId": "agent_D5D0p7TUs66TTAEAx",
      "outboundAgentId": "agent_D5D0p7TUs66TTAEAx",
      "outboundPhoneNumber": "+14155552671",
      "active": true,
      "terminationSipURI": "sip.telnyx.com",
      "friendlyName": "Support Line - US"
    }
  ],
  "size": 20,
  "totalCount": 125,
  "totalPages": 7,
  "hasNext": true
}