Skip to contentSkip to navigationSkip to topbar

List Communications


(information)

Legal information

Conversation Orchestrator, including the APIs, may use artificial intelligence or machine learning technologies and is subject to the terms of the Predictive and Generative AI/ML Features Addendum(link takes you to an external page). For details on AI usage and data, see the AI Nutrition Facts for Real-Time Transcription and Conversation Relay.

Conversation Orchestrator is not a HIPAA Eligible Service or PCI compliant and should not be enabled 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/v2/Conversations/{ConversationSid}/Communications

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

Retrieve a list of Communications in a Conversation.


Request

list-communication-by-conversation-request page anchor

Authentication

authentication page anchor
Property nameTypeRequiredPIIDescription
conversationSidstring
required
Not PII
Property nameTypeRequiredPIIDescription
channelIdstring

Optional

Resource identifier to filter communications


pageSizeinteger

Optional

Maximum number of items to return

Default: 50Example: 50Minimum: 1Maximum: 1000

pageTokenstring

Optional

Page token for pagination


200400404429500503

OK

Schema
Property nameTypeRequiredPIIDescriptionChild properties
communicationsarray[object]

Optional


metaobject

Optional

List CommunicationsLink to code sample: List Communications
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 listCommunicationByConversation() {
11
const communications = await client.conversations.v2
12
.communications("ConversationSid")
13
.list({ limit: 20 });
14
15
communications.forEach((c) => console.log(c.id));
16
}
17
18
listCommunicationByConversation();

Response

Note about this response
1
{
2
"communications": [
3
{
4
"id": "id",
5
"conversationId": "conversationId",
6
"accountId": "accountId",
7
"author": {
8
"address": "address",
9
"channel": "SMS",
10
"participantId": "participantId"
11
},
12
"content": "cannot-guess",
13
"channelId": "channelId",
14
"resourceId": "resourceId",
15
"recipients": [
16
{
17
"address": "address",
18
"channel": "SMS",
19
"participantId": "participantId",
20
"deliveryStatus": "INITIATED"
21
}
22
],
23
"createdAt": "2009-07-06T20:30:00Z",
24
"updatedAt": "2009-07-06T20:30:00Z",
25
"occurredAt": "2009-07-06T20:30:00Z"
26
}
27
],
28
"meta": {
29
"key": "key",
30
"pageSize": 42,
31
"previousToken": "previousToken",
32
"nextToken": "nextToken"
33
}
34
}