Retrieve a paginated list of active phone numbers for a specific account. Supports filtering, pagination, and optional exclusion of number pool assignments.
Autorización
Bearer token generado desde el portal Leadway. Ver Autenticación .
Version string
default: "2021-07-28"
required
Versión de la API.
Path parameters
locationId string
default: "ve9EPM428h8vShlRW1KT"
required
The unique identifier of the account
Query parameters
How many resources to return in each list page. The default is 50, and the maximum is 1000.
The page index for pagination. The default is 0.
Filter numbers by phone number pattern. Supports partial matching (e.g., “+91” to find all Indian numbers).
Whether to exclude numbers that are assigned to number pools. Default is true.
Respuestas
200 - Successfully retrieved list of active numbers
Array of phone number objects with detailed configuration phoneNumber string
default: "+14155552671"
required
E.164 formatted phone number
friendlyName string
default: "Sales Line 1"
Human-readable name assigned to the number
sid string
default: "PN1234567890abcdef1234567890abcde"
required
Phone number SID (unique identifier)
countryCode string
default: "US"
required
ISO 3166-1 alpha-2 country code
Communication capabilities supported by this number Whether the number supports voice calls
Whether the number supports SMS messaging
Whether the number supports MMS messaging
Whether the number supports fax transmission
type string
default: "local"
required
Type of phone number (local, toll-free, mobile, etc.) Posibles valores: ‘local’, ‘toll-free’, ‘mobile’, ‘national’
isDefaultNumber boolean
default: "False"
required
Whether this is the default outbound number for the account
linkedUser string
default: "user_123456789"
User ID of the user assigned to this number
Array of user IDs that should ring when this number is called
Configuration for inbound call handling service Type of inbound call service Posibles valores: ‘voice_ai’, ‘ivr’, ‘forward’
value string
default: "68e381b296a83800a27cd1"
Service configuration value or ID
forwardingNumber string
default: "+14155552672"
Phone number to forward calls to
isGroupConversationEnabled boolean
default: "True"
required
Whether group conversations are enabled for this number (US/CA numbers with SMS/MMS only)
addressSid string
default: "AD1234567890abcdef1234567890abcde"
Address SID for compliance purposes
bundleSid string
default: "BU1234567890abcdef1234567890abcde"
Bundle SID for regulatory compliance
dateAdded string
default: "2023-01-15T10:30:00Z"
When the number was originally purchased/added
dateUpdated string
default: "2023-02-20T14:45:00Z"
When the number configuration was last updated
Source or origin of the phone number Posibles valores: ‘twilio’, ‘hosted’, ‘ported’
isUnderGhl boolean
default: "True"
required
Whether this account is manged by LeadconnectorHQ
pageSize number
default: "100"
required
Number of items requested per page
page number
default: "0"
required
Current page index (0-based)
accountStatus string
default: "active"
required
Current status of the account Posibles valores: ‘active’, ‘suspended’, ‘closed’
400 - Bad request - Invalid parameters
error string
default: "Bad Request"
404 - Phone system not connected
message string
default: "Phone system is not connected to this account"
500 - Internal server error
msg string
default: "Internal server error"
accountStatus string
default: "suspended"
Account status when error occurs
Ejemplo