List phone sessions with cost
Paginated, filterable list of the caller's phone sessions over a required time window (start_date/end_date), 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, workflow, allocation source, free-text search. Order with order_by ('<field> <asc|desc>').
Query parameters
Beginning of the sessions query window (RFC 3339).
Beginning of the sessions query window (RFC 3339).
End of the sessions query window (RFC 3339).
End of the sessions query window (RFC 3339).
Number of sessions per page (1-100).
Number of sessions per page (1-100).
Pagination offset.
Pagination offset.
Restrict results to the given session lifecycle statuses.
Restrict results to the given session lifecycle statuses.
Restrict results to the given billing processing statuses.
Restrict results to the given billing processing statuses.
Restrict results to sessions of a single workflow.
Restrict results to sessions of a single workflow.
Restrict results to the given allocation sources.
Restrict results to the given allocation sources.
Filter by session, workflow, or phone id substring.
Filter by session, workflow, or phone id substring.
Sort expression '<field> <asc|desc>'; field one of allocated_at, deallocated_at, duration, cost_microdollars, session_status, processed_status, allocated_by, session_id, workflow_id. Defaults to allocated_at desc.
Sort expression '<field> <asc|desc>'; field one of allocated_at, deallocated_at, duration, cost_microdollars, session_status, processed_status, allocated_by, session_id, workflow_id. Defaults to allocated_at desc.
Response
OK
Example response
{
"$schema": "/api/v1/UsageSessionsResponse.json"
}