Retrieves a Conversation by its SID.
The SID of the conversation to retrieve.
A promise that resolves to the Conversation object.
FlexSdkError with the following error code(s):
import { createClient } from "@twilio/flex-sdk";import { GetConversationBySid } from "@twilio/flex-sdk/actions/Conversation";async function getConversation() { const client = await createClient("SDK_TOKEN"); const getConversation = new GetConversationBySid("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); const conversation = await client.execute(getConversation); return conversation;} Copy
import { createClient } from "@twilio/flex-sdk";import { GetConversationBySid } from "@twilio/flex-sdk/actions/Conversation";async function getConversation() { const client = await createClient("SDK_TOKEN"); const getConversation = new GetConversationBySid("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); const conversation = await client.execute(getConversation); return conversation;}
Retrieves a Conversation by its SID.
Param: conversationSid
The SID of the conversation to retrieve.
Returns
A promise that resolves to the Conversation object.
Throws
FlexSdkError with the following error code(s):
Example