Create embed session
Creates a short-lived iframe session for embedding YoLead chat UI in a customer system. Embed sessions expire after 60 minutes.
Required API key scope: read.
A read key can only receive showChatsList and showChatPage. A read-write key can receive all supported capabilities. If showChatPage is requested without showChatsList, chatId is required.
Authorizations
Public API key generated in the YoLead UI.
Unix timestamp in milliseconds. Requests must be signed within a 5-minute window.
Hex HMAC-SHA256 signature over <timestamp>.<raw_body> using the API secret.
Body
Embed session settings.
MongoDB ObjectId represented as a 24-character hexadecimal string.
^[0-9a-fA-F]{24}$"64f000000000000000000001"
1UI/runtime capability granted to the generated iframe session.
showChatsList, showChatPage, showSendInput, showStatusButton, showAssigneeButton MongoDB ObjectId represented as a 24-character hexadecimal string.
^[0-9a-fA-F]{24}$"64f000000000000000000001"
Response
Embed session created.