List phone sessions with cost
Changed onPaginated, filterable list of the caller's phone sessions over a required time window (allocated_after/allocated_before), each row carrying billing detail: phone-time cost, inference cost, and combined total in microdollars, billing processing status, and allocation source. Filters: session status, billing processing status, agent, allocation source, free-text search. Order with order_by ('<field> <asc|desc>').
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
Only sessions allocated at or after this time (RFC 3339).
Only sessions allocated before this time (RFC 3339).
Number of sessions per page (1-100).
Pagination offset.
Only sessions at one of these lifecycle statuses; repeatable.
Only sessions at one of these billing processing statuses; repeatable.
Restrict results to sessions of a single agent's runs.
Restrict results to the given allocation sources; repeatable.
Filter by session, agent, or phone id substring.
Sort expression '<field> [asc|desc]', direction defaulting to desc; field is allocated_at, deallocated_at, duration_seconds, cost_microdollars, session_status, processed_status, allocated_by, session_id or agent_id. Defaults to allocated_at desc.
Response
OK
Changes
- breaking
removed the enum value
workflow_editorfrom the propertyitems/of thequeryrequest parameterallocated_by - breaking
removed the required property
//from the response with the status - warning
changed the pattern of the
queryrequest parameterorder_byfrom^(allocated_at|deallocated_at|duration_seconds|cost_microdollars|session_status|processed_status|allocated_by|session_id|workflow_id)( (asc|desc))?$to^(allocated_at|deallocated_at|duration_seconds|cost_microdollars|session_status|processed_status|allocated_by|session_id|agent_id)( (asc|desc))?$ - warning
deleted the
queryrequest parameterworkflow_id - info
added the new optional
queryrequest parameteragent_id - info
removed the
workflow_editorenum value from the//response property for the response status - info
added the required property
//to the response with the status
- breaking
- breaking
added the new required
queryrequest parameterallocated_after - breaking
added the new required
queryrequest parameterallocated_before - breaking
added the pattern
^(allocated_at|deallocated_at|duration_seconds|cost_microdollars|session_status|processed_status|allocated_by|session_id|workflow_id)( (asc|desc))?$to thequeryrequest parameterorder_by - warning
deleted the
queryrequest parameterend_date - warning
deleted the
queryrequest parameterprocessed_status_filter - warning
deleted the
queryrequest parametersession_status_filter - warning
deleted the
queryrequest parameterstart_date - warning
added the new
activeenum value to the//response property for the response status - warning
added the new
api_runenum value to the//response property for the response status - warning
added the new
billedenum value to the//response property for the response status - warning
added the new
cancelledenum value to the//response property for the response status - warning
added the new
completedenum value to the//response property for the response status - warning
added the new
dashboard_runenum value to the//response property for the response status - warning
added the new
expiredenum value to the//response property for the response status - warning
added the new
failedenum value to the//response property for the response status - warning
added the new
interactiveenum value to the//response property for the response status - warning
added the new
pendingenum value to the//response property for the response status - warning
added the new
workflow_editorenum value to the//response property for the response status - info
added the new optional
queryrequest parameterprocessed_status - info
added the new optional
queryrequest parametersession_status - info
added the enum value
api_runto the propertyitems/of thequeryrequest parameterallocated_by - info
added the enum value
dashboard_runto the propertyitems/of thequeryrequest parameterallocated_by - info
added the enum value
interactiveto the propertyitems/of thequeryrequest parameterallocated_by - info
added the enum value
workflow_editorto the propertyitems/of thequeryrequest parameterallocated_by - info
added the non-success response with the status
- info
added the non-success response with the status
- breaking