Fetch Configuration
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/ControlPlane/Configurations/{Sid}
Base url: https://conversations.twilio.com (base url)
Retrieve a Configuration.
OK
A human-readable name for the configuration. Limited to 32 characters.
My Support ConfigPattern: ^[a-zA-Z0-9-_ ]+$Max length: 32Human-readable description for the Configuration. Allows spaces and special characters, typically limited to a paragraph of text. This serves as a descriptive field rather than just a name.
Customer Support Configuration for handling all inbound customer inquiriesType of Conversation grouping strategy:
GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created forCUSTOMERParticipant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel.GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS.GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.
GROUP_BY_PROFILEPossible values: GROUP_BY_PROFILEGROUP_BY_PARTICIPANT_ADDRESSESGROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPEMemory Store ID for Profile resolution.
mem_store_01k1etk2y5f1y9fpe2epfdtvv2Channel-specific configuration settings including timeout settings and capture rules.
{"SMS":{"statusTimeouts":{"inactive":10,"closed":15},"captureRules":[{"from":"+18005550100","to":"+18005550101","metadata":{}},{"from":"+18005550103","to":"*","metadata":{}},{"from":"*","to":"+18005550103","metadata":{}}]},"VOICE":{"statusTimeouts":{"inactive":5,"closed":30},"captureRules":[{"from":"+18005550104","to":"+18005550105","metadata":{"callType":"PSTN"}},{"from":"+18005550106","to":"*","metadata":{}},{"from":"*","to":"+18005550106","metadata":{}}]},"WHATSAPP":{"statusTimeouts":{"inactive":15,"closed":60},"captureRules":[{"from":"whatsapp:+18005550100","to":"*","metadata":{}},{"from":"*","to":"whatsapp:+18005550100","metadata":{}}]},"RCS":{"statusTimeouts":{"inactive":15,"closed":60},"captureRules":[{"from":"rcs:brand_acme_agent","to":"*","metadata":{}},{"from":"*","to":"rcs:brand_acme_agent","metadata":{}},{"from":"rcs:+18005550107","to":"*","metadata":{}}]},"CHAT":{"statusTimeouts":{"inactive":15,"closed":60},"captureRules":[{"from":"*","to":"*","metadata":{"chatService":"IS00000000000000000000000000000000"}}]}}List of default webhook configurations applied to Conversations under this Configuration.
20A list of Conversational Intelligence configuration IDs.
["agent1","agent2"]Max items: 5Whether memory extraction is enabled for conversations under this configuration. Defaults to false.
falseExample: falseConfiguration for Conversations V1 bridge. When set, messaging channels route through Conversations V1. Use this to integrate with existing Conversations V1 applications.
{"serviceId":"IS00000000000000000000000000000000"}Timestamp when this Configuration was created.
2023-10-14T10:30:00ZTimestamp when this Configuration was last updated.
2023-10-14T15:45:30ZVersion number used for optimistic locking.
11// 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 fetchConfiguration() {11const configuration = await client.conversations.v212.configurations("Sid")13.fetch();1415console.log(configuration.id);16}1718fetchConfiguration();
Response
1{2"channelSettings": {},3"conversationGroupingType": "GROUP_BY_PROFILE",4"conversationsV1Bridge": {5"serviceId": "IS00000000000000000000000000000000"6},7"createdAt": "2009-07-06T20:30:00Z",8"description": "description",9"displayName": "My Support Config",10"id": "id",11"intelligenceConfigurationIds": [12"intelligenceConfigurationIds"13],14"memoryExtractionEnabled": false,15"memoryStoreId": "memoryStoreId",16"statusCallbacks": [17{18"url": "https://www.example.com",19"method": "POST"20}21],22"updatedAt": "2009-07-06T20:30:00Z",23"version": 124}