1. Retrieve the document’s queries
GET /api/v1/documents/:id/queries
2. Extract a query object from the response
The query objects returned by the Document Queries API are already structured in the format required by the Query API, making it easy to run these queries programmatically without having to manually build the query structure.3. Run the query
Use the query object directly with the Query API to run the query:POST /api/v1/query/run