We can easily create basic JIRA filters in JQL(JIRA Query Language) for using in JIRA API requests.
For this we have to navigate to “Filters >Advanced Issue Search” page in JIRA after logging in. Here we can see all the tasks the user has view access to.

We can filter out the tasks based on criteria like: ‘project’, ‘type’, ‘status’, ‘assignee’, ‘created date’, ‘due date’ etc.
To add filter criteria not visible on the screen we can use the more button and choose from the preset criteria.

Once the filters are added click update to view the new changes. Now click on the ‘Switch to JQL’ hyperlink to convert the filters added into JQL.

See the filters converted to JQL condition statement:

Now this JQL can be used for API requests.