List sessions
Changed onReturns one page of the org's phone sessions for the Session Inspector table: active/unbilled sessions pinned on top, terminal history paginated beneath. Covers agents' runs and interactive leases; each row links to a session. Filters: search, agent_id, status.
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-Axilio-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
max rows to return
rows to skip for pagination
case-insensitive match on phone/session/agent
only sessions of this agent's runs
only sessions at one of these statuses; repeatable
only sessions from one of these sources; repeatable
only sessions on shared and/or dedicated phones; repeatable
only sessions allocated at/after this time (RFC 3339)
only sessions allocated at/before this time (RFC 3339)
only sessions de-allocated at/after this time (RFC 3339)
only sessions de-allocated at/before this time (RFC 3339)
Sort expression '<field> [asc|desc]', direction defaulting to desc; field is allocated_at, deallocated_at, status, duration_seconds or source.
Response
OK
Example response
{
"$schema": "/api/v1/PhoneSessionListResponse.json"
}Changes
- breaking
removed the enum value
workflowfrom the propertyitems/of thequeryrequest parametersource - warning
deleted the
queryrequest parameterworkflow_id - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
added the new
agentenum value to the//response property for the response status - info
added the new optional
queryrequest parameteragent_id - info
added the enum value
agentto the propertyitems/of thequeryrequest parametersource - info
added the optional property
to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
removed the
workflowenum value from the//response property for the response status - info
removed the
workflow_editorenum value from the//response property for the response status
- breaking
- breaking
for the
queryrequest parameterlimit, default value50was added - breaking
for the
queryrequest parameteroffset, default value0was added - warning
for the
queryrequest parameterlimit, the max was set to100.00 - warning
for the
queryrequest parameterlimit, the min was set to1.00 - warning
for the
queryrequest parameteroffset, the min was set to0.00 - warning
deleted the
queryrequest parameterended_after - warning
deleted the
queryrequest parameterended_before - warning
deleted the
queryrequest parameterorder - warning
deleted the
queryrequest parametersort - warning
deleted the
queryrequest parameterstarted_after - warning
deleted the
queryrequest parameterstarted_before - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added the new optional
queryrequest parameterallocated_after - info
added the new optional
queryrequest parameterallocated_before - info
added the new optional
queryrequest parameterdeallocated_after - info
added the new optional
queryrequest parameterdeallocated_before - info
added the new optional
queryrequest parameterorder_by - info
added the enum value
activeto the propertyitems/of thequeryrequest parameterstatus - info
added the enum value
cancelledto the propertyitems/of thequeryrequest parameterstatus - info
added the enum value
completedto the propertyitems/of thequeryrequest parameterstatus - info
added the enum value
dedicatedto the propertyitems/of thequeryrequest parameterdedicated - info
added the enum value
expiredto the propertyitems/of thequeryrequest parameterstatus - info
added the enum value
interactiveto the propertyitems/of thequeryrequest parametersource - info
added the enum value
sharedto the propertyitems/of thequeryrequest parameterdedicated - info
added the enum value
workflowto the propertyitems/of thequeryrequest parametersource - 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
- breaking