Skip to content

Retrieve status of query

Request

Retrieve the status of a query.

Security
TdApikeyAuth
Path
audienceIdinteger, (int64)required

Audience ID of the segment

queryIdinteger, (int64)required

ID of query

curl -i -X GET \
  'https://api-cdp.treasuredata.com/audiences/{audienceId}/segments/queries/{queryId}' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

successful operation

Bodyapplication/json
idstring

Query identifier (may be UUID or platform-specific ID like job ID or statement handle)

queryIdstring

Same value as id.

statusstring
Enum:"success""killed""error""running"
countinteger or null

Number of profiles produced by the given segment rules

maxPageinteger or null
errorstring or null
jobidstring, (integer)
countJobidstring or null, (integer)
customerGroupCountinteger or null

Number of customer groups related by the given segment rules

Response
{ "id": "string", "queryId": "string", "status": "success", "count": 0, "maxPage": 0, "error": "string", "jobid": "string", "countJobid": "string", "customerGroupCount": 0 }