List the org's phones
Changed onReturns the caller org's full dedicated (private/rented) phone inventory - every state, not just the free ones: busy phones in an active session, offline/inactive phones, and phones in maintenance are all included, so this is the endpoint to discover a phone_id you can pin via POST /phones:allocate. Each phone's current_session_id and status reflect its live state. include_expired=true also keeps rentals past their rental_expires_at so users can see what they used to own. Filter by status/phone_type and paginate; the response total is the full match count. Pass ownership=dedicated.
Request
- Base URLhttps://api.axilio.ai/api/v1
- AuthAPI key in header X-Axilio-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Which phones to return. 'dedicated' = the org's dedicated/rented inventory in every state (busy, offline, and maintenance phones included).
include rented devices whose rental window has expired
free-text search across phone_id, nickname, name, model, location
only phones at one of these statuses; repeatable
only phones of one of these platforms; repeatable
only phones whose rental expires at/after this time (RFC 3339)
only phones whose rental expires at/before this time (RFC 3339)
only phones whose last heartbeat is at/after this time (RFC 3339)
only phones whose last heartbeat is at/before this time (RFC 3339)
Sort expression '<field> [asc|desc]', direction defaulting to desc; field is created_at, rental_expires_at, last_heartbeat_at, status, phone_type or location.
Response
OK
Changes
- breaking
for the
queryrequest parameterrental_expires_after, the format changed from no format todate-time - breaking
for the
queryrequest parameterrental_expires_before, the format changed from no format todate-time - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - warning
deleted the
queryrequest parameterlast_active_after - warning
deleted the
queryrequest parameterlast_active_before - warning
deleted the
queryrequest parameterorder - warning
deleted the
queryrequest parametersort - warning
deleted the
queryrequest parametertype - info
added the new optional
queryrequest parameterlast_heartbeat_after - info
added the new optional
queryrequest parameterlast_heartbeat_before - info
added the new optional
queryrequest parameterorder_by - info
added the new optional
queryrequest parameterphone_type - info
added the enum value
activeto the propertyitems/of thequeryrequest parameterstatus - info
added the enum value
inactiveto the propertyitems/of thequeryrequest parameterstatus - info
added the enum value
maintenanceto the propertyitems/of thequeryrequest parameterstatus - info
added the enum value
out_of_serviceto the propertyitems/of thequeryrequest parameterstatus - info
added the enum value
recoveringto the propertyitems/of thequeryrequest parameterstatus - info
added the enum value
suspendedto the propertyitems/of thequeryrequest parameterstatus - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- breaking
- warning
added the new
out_of_serviceenum value to the//response property for the response status - warning
added the new
recoveringenum value to the//response property for the response status
- warning