Pulling query history only for the last 5 mins using "/api/2.0/sql/history/queries" api

Chinu
Contributor

I know query history api provides filter_by option with start and end time in ms but I was wondering if I can get only the last 5 mins of query data every time I run the api call (using telegraf to call the api). Is it possible I can use relative dates (such as not - 5 min ago) with the query history api?

Thanks,