Generate authentication token for widget session
POST
Generate authentication token for widget session
Body
application/json
Response
200
Widget session token generated successfully
Last modified on July 17, 2026
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
InteraOne is open source — star or contribute on GitHub.
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)Widget session token generated successfully
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)