Start a widget session
Headers
Secret widget API key (plaintext_api_key from POST /api/widgets). Takes precedence over
x-widget-id and wid. Send one of the three. Never expose it in a browser.
Public widget id, the credential the embed script uses. Used when x-widget-api-key is absent.
Query parameters
Request
Stable id the embedding page keeps for this visitor (the embed stores a UUID in
localStorage). Reusing it within 30 days resumes the same session and conversation.
Free-form visitor data stored on the session (merged on resume). email links the
conversation to a contact (created in the workspace’s manual-conversations campaign if none
matches, case-insensitively); name fills the contact’s name when it is empty.
Response
Session created or resumed (both return 201).

