Skip to content

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 context
  • GET /api/v1/aim/queries/approved: approved templates with reuse counters
  • POST /api/v1/aim/queries/{id}/approve: approve a query (promotes to reusable template)
  • POST /api/v1/aim/queries/{id}/reject: reject a query
  • POST /api/v1/aim/queries/{id}/amend: amend and approve
  • POST /api/v1/aim/queries/test-cypher: test read-only query before approving
  • DELETE /api/v1/aim/queries/{id}: delete a query
  • Pagination, filtering, and error handling

Next Steps