List numbers and inventory
GET
/v1/phone-numbers
const url = 'https://api.vocapable.com/v1/phone-numbers?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.vocapable.com/v1/phone-numbers?limit=50' \ --header 'Authorization: Bearer <token>'This tenant’s numbers plus the unassigned platform inventory it may claim.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
Limit
integer
reputation_state
telephony_account_id
telephony_account_id.gte
telephony_account_id.lte
telephony_account_id.gt
telephony_account_id.lt
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
CursorPage[PhoneNumberSummary]
object
data
required
Data
Array<object>
PhoneNumberSummaryobject
id
required
Id
string
phone_e164
required
Phone E164
string
telephony_account_id
required
Telephony Account Id
string
capabilities
Capabilities
Array<string>
status
required
Status
string
dials_today
required
Dials Today
integer
reputation_state
required
Reputation State
string
inbound_route_mode
Inbound Route Mode
string
created_at
required
Created At
string format: date-time
has_more
Has More
boolean
Example
{ "data": [ { "capabilities": [ "voice" ], "status": "provisioning", "reputation_state": "clean", "inbound_route_mode": "agent" } ], "has_more": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}