Queries API
The Queries API powers the Tune page, providing operations over the query curation lifecycle and access to reuse statistics.
What to Expect
GET /api/v1/aim/queries/stats: status breakdown (pending, approved, rejected, declined counts)GET /api/v1/aim/queries/pending: list queries awaiting approval with similarity contextGET /api/v1/aim/queries/approved: approved templates with reuse countersPOST /api/v1/aim/queries/{id}/approve: approve a query (promotes to reusable template)POST /api/v1/aim/queries/{id}/reject: reject a queryPOST /api/v1/aim/queries/{id}/amend: amend and approvePOST /api/v1/aim/queries/test-cypher: test read-only query before approvingDELETE /api/v1/aim/queries/{id}: delete a query- Pagination, filtering, and error handling
Next Steps
- API Overview: authentication and error codes
- Query Curation Guide: how to use the Tune page