Generate authentication token for widget session
POST
/
widget
/
auth
/
token
Generate authentication token for widget session
curl --request POST \
--url http://localhost:3002/api/v1/widget/auth/token \
--header 'Content-Type: application/json' \
--data '
{
"widgetKey": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({widgetKey: '<string>'})
};
fetch('http://localhost:3002/api/v1/widget/auth/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3002/api/v1/widget/auth/token"
payload = { "widgetKey": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
200
Widget session token generated successfully
Last modified on July 18, 2026
⌘I
Generate authentication token for widget session
curl --request POST \
--url http://localhost:3002/api/v1/widget/auth/token \
--header 'Content-Type: application/json' \
--data '
{
"widgetKey": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({widgetKey: '<string>'})
};
fetch('http://localhost:3002/api/v1/widget/auth/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3002/api/v1/widget/auth/token"
payload = { "widgetKey": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)