Single chat
Use this when your CRM already knows which YoLead chat should be opened.showChatsList is not requested, chatId is required and the session is restricted to that chat.
Inbox
Use this when you want to show the YoLead chats list inside your product.Start an outbound chat
Use this with aread-write API key when the user should start a new conversation without an existing chatId.
chat.created event to the parent window with the resulting chatId, then opens that chat. Requesting startOutboundChat with a read key returns 403. Starting the conversation also requires outbound chat initiation on the company’s current plan; otherwise the send action returns 403 with code 40352.
Connected email mailboxes are available in the same composer. When an email channel is selected, the recipient must have an email identity. A subject can be supplied for a new email chat; replies in an existing chat retain the conversation’s previous subject.
Telegram Account channels can use recipients identified by Telegram user id, phone number, or username. The composer supports photos and documents for Telegram Bot, Telegram Account, and Email; MAX supports attachments in existing chats. See Capabilities for channel limits and the required permissions.
Inbox with actions
Use this with aread-write API key when users should be able to perform actions from the iframe.
read API key, YoLead only grants showChatsList and showChatPage. Check the capabilities returned by POST /v1/embed/sessions to see the effective session permissions.