I would like to use the API to retrieve all search results for the query filebeat_service_type:nginx.
I see /search has been moved to /legacy and will be removed.
I found /views/search/sync, but that requires me to specify things like id, owner, created_at of which I have no idea what their values should be - I could not find any documentation about this.
So: how do I use the API to retrieve all search results for a query?