API request help

Hi together,
i am trying to build an api request to get all tasks which have a duedate and which arent done…

The “done-part” is working like this:

https://server/api/v1/tasks/all?filter=done%20%3D%20false

But i cant get the filter of the duedate working.
Any ideas how i have to build it?

I first tried to get all tasks and filter later but as the amount can be to big and the limit of 50 objects per call makes it even harder a filter by duedate would be great for my scenario.

Many thanks

Hm… have found posts from last year where the syntax is very different:

http://localhost:3456/api/v1/tasks/all?
sort_by[]=id
&order_by[]=desc
&filter_by[]=due_date
&filter_value[]=now+30d
&filter_comparator[]=less
&filter_concat=and
&filter_include_nulls=false

but using this syntax isnt realy working for me too as the example above shows all items and doesnt filter anything…

You could create a saved filter for the due date, then use the Gets one saved filter call to get the data you want, I will start testing this for a better solution though.

@Grim73 many thanks for your help, would be great to understand how the syntax is :wink:

The filter syntax is described in detail here: Filter Syntax

Note that you need to snake_case the values when using the api directly.

This filter query should work: done = false && due_date > 0001-01-01

This is working! Many thanks