List Conversations
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. 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. If your account hasn't been migrated, you'll be redirected to the legacy Console where these products won't appear.
GET/v2/Conversations
Base url: https://conversations.twilio.com (base url)
Retrieve a list of Conversations.
Filters for specific statuses
ACTIVEINACTIVECLOSEDThe resource identifier (such as callSid or messageSid) to filter conversations.
Maximum number of items to return in a single response
50Example: 50Minimum: 1Maximum: 1000A URL-safe, base64-encoded token representing the page of results to return
eyJwYWdlIjoyLCJxdWVyeSI6ImJvb2tzIn0=1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listConversationByAccount() {11const conversations = await client.conversations.v2.conversations.list({12limit: 20,13});1415conversations.forEach((c) => console.log(c.id));16}1718listConversationByAccount();
Response
1{2"conversations": [3{4"id": "id",5"accountId": "accountId",6"configurationId": "configurationId",7"status": "ACTIVE",8"name": "name",9"createdAt": "2009-07-06T20:30:00Z",10"updatedAt": "2009-07-06T20:30:00Z",11"configuration": {12"displayName": "My Support Config",13"description": "description",14"conversationGroupingType": "GROUP_BY_PROFILE",15"memoryStoreId": "memoryStoreId",16"channelSettings": {},17"statusCallbacks": [18{19"url": "https://www.example.com",20"method": "POST"21}22],23"intelligenceConfigurationIds": [24"intelligenceConfigurationIds"25],26"memoryExtractionEnabled": false,27"conversationsV1Bridge": {28"serviceId": "IS00000000000000000000000000000000"29}30},31"participants": [32{33"id": "id",34"conversationId": "conversationId",35"accountId": "accountId",36"name": "name",37"type": "CUSTOMER",38"profileId": "profileId",39"addresses": [40{41"channel": "SMS",42"address": "address",43"channelId": "channelId"44}45],46"createdAt": "2009-07-06T20:30:00Z",47"updatedAt": "2009-07-06T20:30:00Z"48}49]50}51],52"meta": {53"key": "key",54"pageSize": 20,55"previousToken": "previousToken",56"nextToken": "nextToken"57}58}