API for Query tab (found in admin UI)

I cant find the HTTP api to use Query which is present in the UI. Or how can i create short lived projections?

The  *Query*  tab a code editor field where you can create transient and short-lived projections for quick analysis of your event streams.