Skip to main content
POST
create widget session token

Headers

Origin
string<uri>

Origin of the page hosting the widget. Required unless the widget allows every origin.

Body

application/json
agentId
string
required

ID of the persona used by the widget.

Example:

"071b0286-4cce-4808-bee2-e642f1062de3"

Response

Widget session token created.

sessionToken
string
required

Short-lived token accepted by POST /v1/engine/session.