Create Bot Preview Token
curl --request POST \
--url http://127.0.0.1:3333/v3/bots/{id}/preview-token \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:3333/v3/bots/{id}/preview-token"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:3333/v3/bots/{id}/preview-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"token": "<string>",
"expiresAt": "<string>",
"revision": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Additional Endpoints
Create Bot Preview Token
Create a short-lived token for web preview rendering.
POST
/
v3
/
bots
/
{id}
/
preview-token
Create Bot Preview Token
curl --request POST \
--url http://127.0.0.1:3333/v3/bots/{id}/preview-token \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:3333/v3/bots/{id}/preview-token"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:3333/v3/bots/{id}/preview-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"token": "<string>",
"expiresAt": "<string>",
"revision": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}