TwilioInsightsAsync

Retrieve asynchronous query results

Changed on

Retrieve paginated results for a completed asynchronous query operation. The resultUrl in the status response points to this endpoint. Returns 404 if the operation is not yet COMPLETED or has expired.

get/v3/InsightsDomains/Conversations/QueryJobs/{operationId}/Results

Request

  • Base URL
    https://insights.twilio.com
  • URL
    https://insights.twilio.com/v3/InsightsDomains/Conversations/QueryJobs/{operationId}/Results
  • Auth
    HTTP basic

Path parameters

operationIdstring Proc_JobTtid required
Example:proc_job_01h9d8r0vte3hz8tykdj329t7r

The unique identifier for the asynchronous query operation, in TTID format.

Query parameters

pageSizeinteger

The maximum number of resources to return

pageTokenstring

Token for pagination

Response

Query results

domainstring

Indicates the business domain the query was executed against

itemsobject[]

Array of result objects containing the query results. Each object contains properties matching the requested measures and dimensions.

Example response

{
  "domain": "Insights",
  "items": [
    {
      "Id": "conv1",
      "Languages": [
        "en"
      ],
      "Channels": [
        "voice"
      ],
      "OperatorResult.Value": "positive"
    },
    {
      "Id": "conv2",
      "Languages": [
        "en",
        "es"
      ],
      "Channels": [
        "chat"
      ],
      "OperatorResult.Value": "negative"
    }
  ],
  "meta": {
    "key": "items",
    "pageSize": 20,
    "previousToken": "eyJwYWdlIjowLCJxdWVyeSI6ImJvb2tzIn0=",
    "nextToken": "eyJwYWdlIjoyLCJxdWVyeSI6ImJvb2tzIn0="
  }
}

Changes