Filtering

Filtering is useful because it allows you to get specific data out of the whole collection. For example, getting call transcripts only from a specific date and time.

Request parameter

To filter the API endpoint, use the filter query parameter in the request.

Request parameter value

The value of the parameter supports the following syntax (ABNF):

How to use
Examples
GET /api/v1/calls?filter=(id%3D7%3B12)
GET /api/v1/calls?filter=(id%3E7%2Cid%3C12)
GET /api/v1/calls?filter=(id%3E7%2Cid%3C12%2Cid!%3D10)
GET /api/v1/calls?filter=(name%3Dfirst%2520last)
GET /api/v1/calls?filter=(setupTime%3E%3D2022-04-26%2CsetupTime%3C2022-04-27)
GET /api/v1/calls?filter=(setupTime%3E%3D2022-04-26T15%3A00%3A00.000Z%2CsetupTime%3C2022-04-26T16%3A00%3A00.000Z)
Searching by Text

For APIs that allow filtering by free text, the "text" field is used inside the filter. For example:

GET /api/v1/calls?filter=(text%3Dsome%2520words)
GET /api/v1/calls?filter=(setupTime%3E%3D2022-04-26%2CsetupTime%3C2022-04-27%2Ctext%3Dsome%2520words)