Skip to main content
Use POST /v1/embed/sessions to create an iframe session. The request must be signed with the same HMAC headers as other Public API requests.
Create embed sessions on your backend. Do not call this endpoint from browser code because it requires the API secret.
Request fields: The response contains iframeUrl. Render that URL in an iframe on your frontend.
When 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

  • employeeId must belong to an active employee in the API key company.
  • Requested capabilities are filtered by API key scope.
  • read keys can only grant showChatsList and showChatPage.
  • read-write keys can grant all supported capabilities.
  • startOutboundChat requires a read-write key. Requesting it with a read key returns 403.
  • At least one view capability is required: showChatsList or showChatPage.
  • If showChatPage is requested without showChatsList, chatId is required unless startOutboundChat is also requested.
  • If chatId is provided, the employee must have access to that chat.