The Query Management API endpoints provide an interface to run and perform CRUD operations on queries. Running queries is asynchronous. Creating or previewing queries creates a query object that can be executed separately. Query execution results in the creation of an entity with a status that can be polled. A status of COMPLETED or ERROR indicates the query has completed. You must first obtain a token to download a CSV file of the query results.