Create a new webchat session.
Creates a new webchat visitor session for the given widget. Always creates a brand-new session.
Request body
Example request
{
"widget_id": "550e8400-e29b-41d4-a716-446655440000",
"page_url": "https://example.com/pricing",
"referrer": "https://example.com/blog/some-article"
}Response
Details of the created session.
Example response
{
"id": "7a1bcb1a-1b8e-4f5c-9a6d-3e2f1a0b4c5d",
"customer_id": "7c4d2f3a-1b8e-4f5c-9a6d-3e2f1a0b4c5d",
"widget_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "active",
"page_url": "https://example.com/pricing",
"referrer": "https://example.com/blog/some-article",
"peer": {
"type": "tel",
"target": "+14155551234",
"target_name": "John Smith",
"name": "Main Office",
"detail": "Primary contact number"
},
"local": {
"type": "tel",
"target": "+14155551234",
"target_name": "John Smith",
"name": "Main Office",
"detail": "Primary contact number"
},
"tm_last_activity": "2026-01-15T09:30:00.000000Z",
"tm_create": "2026-01-15T09:30:00.000000Z",
"tm_update": "2026-01-15T09:30:00.000000Z",
"tm_end": "2026-01-15T09:30:00.000000Z"
}Changes
Changed in 7 of the 54 revisions of this API.138
- ●
added the new
web_sessionenum value to thelocal/typeresponse property for the response status200response-property-enum-value-added
- ●
added the new
web_sessionenum value to thepeer/typeresponse property for the response status200response-property-enum-value-added
- ●
- ○
added the new optional request property
referrernew-optional-request-property
- ○
added the optional property
localto the response with the200statusresponse-optional-property-added
- ○
added the optional property
peerto the response with the200statusresponse-optional-property-added
- ○
added the optional property
referrerto the response with the200statusresponse-optional-property-added
- ○
- ○
added the new optional request property
page_urlnew-optional-request-property
- ○
added the optional property
page_urlto the response with the200statusresponse-optional-property-added
- ○
- ●
removed the optional property
welcome_messagefrom the response with the200statusresponse-optional-property-removed
- ●
- ○
added the optional property
welcome_messageto the response with the200statusresponse-optional-property-added
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲