GET /api/v1/query-history
Find runs in a time window and get their query IDs.
Access
Request a workspace OAuth token for the workspace that owns the resource. If your workspace uses OAuth scopes for API access, request query_engine.history:read. If your admin confirms that workspace permissions are active for management API calls, omit the scope field for this call.
Use a workspace that has Query History enabled.
Request
Use start and end (RFC 3339 timestamps) to select a time window. If omitted, the default window is the past 24 hours. page starts at 1. limit defaults to 50 and is capped at 100. Use filters to pass a URL-encoded JSON object, and sort_by and sort_order to change the result order.
No request body.
Example request
Set WORKSPACE_URL to the same HTTPS workspace origin and ACCESS_TOKEN to the access token from that workspace.
Response
HTTP 200. Content type: application/json.
Example response (selected fields and sample values):
Available where workspace history is configured. Choose a time window within workspace retention.
Troubleshooting
For 401, check the workspace URL and token expiry. For 403, ask your admin to check the machine client’s access to this operation and resource. In a scope-based workspace, also check the scope on the token. Troubleshoot the token or request.
Workspace management guideLast modified on December 2, 2026