Initialize a new chat conversation session from widget
POST
/
widget
/
conversations
Initialize a new chat conversation session from widget
curl --request POST \
--url http://localhost:3002/api/v1/widget/conversations \
--header 'x-widget-token: <x-widget-token>'const options = {method: 'POST', headers: {'x-widget-token': '<x-widget-token>'}};
fetch('http://localhost:3002/api/v1/widget/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3002/api/v1/widget/conversations"
headers = {"x-widget-token": "<x-widget-token>"}
response = requests.post(url, headers=headers)
print(response.text)Headers
Response
200
Conversation session initialized successfully
Last modified on July 18, 2026
⌘I
Initialize a new chat conversation session from widget
curl --request POST \
--url http://localhost:3002/api/v1/widget/conversations \
--header 'x-widget-token: <x-widget-token>'const options = {method: 'POST', headers: {'x-widget-token': '<x-widget-token>'}};
fetch('http://localhost:3002/api/v1/widget/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3002/api/v1/widget/conversations"
headers = {"x-widget-token": "<x-widget-token>"}
response = requests.post(url, headers=headers)
print(response.text)