Filtering

Filtering, pagination and sorting is done with query string parameters.

Available query parameters

ParameterDescriptionFormat
pageWhich page to get.page=1
limitHow many items to get per page.limit=100
filterResult filtering.filter=status:eq:open,name:like:john
searchFull text search across multiple fields, where available.search=john
sortWhich field and direction to sort the results.sort=created_at:desc,name:asc

Available operators

OperatorDescriptionExample
eqEquals (one)status:eq:active
eqEquals (at least one of multiple)status:eq:active|pending
gtGreater thancreated_at:gt:2018-01-01
gteGreater than or equal toamount:gte:50.00
ltLess thancreated_at:lt:2018-01-01
lteLess than or equal toamount:lte:50.00
likePartial text searchname:like:john

Example

?filter=status:eq:open|closed,created_at:lt:2018-01-01,name:like:john&sort=name:asc