POST /v1/embed/sessions to create an iframe session.
The request must be signed with the same HMAC headers as other Public API requests.
The response contains
iframeUrl. Render that URL in an iframe on your frontend.
showChatPage and startOutboundChat are requested without showChatsList or chatId, the returned iframeUrl uses the /embed/chats/outbound path and opens the outbound message composer.
Response fields:
Validation rules
employeeIdmust belong to an active employee in the API key company.- Requested capabilities are filtered by API key scope.
readkeys can only grantshowChatsListandshowChatPage.read-writekeys can grant all supported capabilities.startOutboundChatrequires aread-writekey. Requesting it with areadkey returns403.- At least one view capability is required:
showChatsListorshowChatPage. - If
showChatPageis requested withoutshowChatsList,chatIdis required unlessstartOutboundChatis also requested. - If
chatIdis provided, the employee must have access to that chat.