Skip to contentSkip to navigationSkip to topbar

Retrieve a list of asynchronous queries


(new)

Public beta

Conversation Insights, including the APIs, is currently available as a public beta release and the information contained in this document is subject to change. Some features are not yet implemented and others may be changed before the product is declared as generally available. Public beta products are not covered by the Twilio Support Terms or Twilio Service Level Agreement.

Conversation Insights is not PCI compliant or a HIPAA Eligible Service and should not be used in workflows that are subject to HIPAA or PCI.

Conversations products are only available in the new Twilio Console(link takes you to an external page). If your account hasn't been migrated, you'll be redirected to the legacy Console where these products won't appear.

GET/v3/InsightsDomains/Conversations/QueryJobs

Base url: https://insights.twilio.com (base url)

Returns a paginated list of asynchronous query operations for the authenticated account. Optionally filter by status.


Request

list-query-jobs-request page anchor

Authentication

authentication page anchor
Property nameTypeRequiredPIIDescription
pageSizeinteger

Optional

Not PII

The maximum number of resources to return

Default: 50Minimum: 1Maximum: 1000

pageTokenstring

Optional

Token for pagination


statusenum<string>

Optional

The operation status to filter results by.

Possible values:
PENDINGRUNNINGCANCELLEDCOMPLETEDFAILED

200400429500

Paginated list of async query operations

SchemaExample
Property nameTypeRequiredPIIDescriptionChild properties
itemsarray[object]

Optional


metaobject

Optional

The pagination metadata containing navigation tokens and result information. By convention, this schema should be added to the response payload's 'meta' attribute.

Retrieve a list of asynchronous queriesLink to code sample: Retrieve a list of asynchronous queries
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function listQueryJobs() {
11
const queryJobs = await client.insights.v3.queryJobs.list({ limit: 20 });
12
13
queryJobs.forEach((q) => console.log(q.operationId));
14
}
15
16
listQueryJobs();

Response

Note about this response
1
{
2
"items": [
3
{
4
"operationId": "proc_job_01h9d8r0vte3hz8tykdj329t7r",
5
"status": "RUNNING",
6
"createdAt": "2026-05-25T14:30:00Z",
7
"statusUrl": "https://insights.twilio.com/v3/InsightsDomains/Conversations/QueryJobs/proc_job_01h9d8r0vte3hz8tykdj329t7r",
8
"resultId": "proc_job_01h9d8r0vte3hz8tykdj329t7r"
9
}
10
],
11
"meta": {
12
"key": "items",
13
"pageSize": 1
14
}
15
}