There is nothing special with the syntax here - just a query string parameter. Here is an example from my local Grafana:
http://grafana.staged-by-discourse.com/api/search?query=PR
In my case it matched a few dashboards with Prometheus in the title.