Get SQL Query Status

Use the GET /api/v3/query/{queryId} endpoint of the Data 360 Query API to check the execution status of a submitted query. Poll this endpoint after submitting an ASYNC or timed-out ADAPTIVE query to determine when results are ready to retrieve. The response includes completion status, row count, chunk count, and execution statistics.

Syntax 

  • HTTP Method: GET
  • Format: REST
  • URI: /api/v3/query/{queryId}

Path Parameters 

ParameterTypeDescription
queryIdstringRequired. The unique identifier of the query. Returned in the x-hyperdb-status response header from POST /api/v3/query. Example: MTAuMjcuMTgxLjE0OTo3NDg0_1cfc8d35.

Query Parameters 

ParameterTypeDescription
waitTimeMsinteger(Optional) How long to wait for a status change before returning, in milliseconds. Default and maximum: 10000 (10 seconds).

Request Headers 

HeaderValue
AuthorizationBearer {accessToken}

Response Structure 

FieldDescription
queryIdUnique identifier for the query
completionStatusQuery state: RUNNING (still executing), RESULTS_PRODUCED (complete but not yet durably stored), or FINISHED (persisted to storage, results retrievable for the full expiration window)
chunkCountTotal number of result chunks available
rowCountTotal rows in the result set
progressCompletion fraction from 0 to 1
expirationTimeISO 8601 timestamp when results expire
executionStatsObject containing wallClockTime and rowsProcessed

Examples 

This example shows a status poll request and response.

Request 

1GET https://{dne_cdpInstanceUrl}/api/v3/query/MTAuMjcuMTgxLjE0OTo3NDg0_1cfc8d35-464c-9185-1f41-3eb638a71f7a
2Authorization: Bearer {accessToken}

Response 

1{
2  "queryId": "MTAuMjcuMTgxLjE0OTo3NDg0_1cfc8d35-464c-9185-1f41-3eb638a71f7a",
3  "completionStatus": "RESULTS_PRODUCED",
4  "chunkCount": 1,
5  "rowCount": 10,
6  "progress": 1,
7  "expirationTime": "2025-09-26T10:55:07.438Z",
8  "executionStats": {
9    "wallClockTime": 0.204560264,
10    "rowsProcessed": 10
11  }
12}

Related Resources