Sorting

Sorting allows you to organize the information in the response, for example, in descending order by creation date.

Request query parameter

Parameter

Description

sort

Defines the name of the field to sort.

For descending order, prefix the value with the minus sign ("-"), for example: ?sort=-setupTime

For sorting by multiple fields, repeat the sort query parameter, for example: ?sort=successful&sort=-setupTime

Request example

Sorts the call detail reports by the setup time field.

GET /api/v1/Calls?sort=setupTime