Refresh a public chat share viewing token
curl --request GET \
--url https://api.itoflow.ai/chat-shares/public/{slug}/runtime-tokenimport requests
url = "https://api.itoflow.ai/chat-shares/public/{slug}/runtime-token"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.itoflow.ai/chat-shares/public/{slug}/runtime-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"runtime": {
"chat_id": "share_VufIWcgY0FlG",
"expires_at": 1770000000,
"kind": "cloudflare_readonly_share",
"token": "<string>"
}
}{
"error": "<string>",
"available": "<string>",
"billing_action": {
"href": "<string>",
"kind": "upgrade",
"label": "<string>"
},
"code": "<string>",
"currentVersion": 123,
"details": "<unknown>",
"expectedVersion": 123,
"message": "<string>",
"requested": "<string>",
"usage": "<unknown>"
}{
"error": "<string>",
"available": "<string>",
"billing_action": {
"href": "<string>",
"kind": "upgrade",
"label": "<string>"
},
"code": "<string>",
"currentVersion": 123,
"details": "<unknown>",
"expectedVersion": 123,
"message": "<string>",
"requested": "<string>",
"usage": "<unknown>"
}{
"error": "<string>",
"available": "<string>",
"billing_action": {
"href": "<string>",
"kind": "upgrade",
"label": "<string>"
},
"code": "<string>",
"currentVersion": 123,
"details": "<unknown>",
"expectedVersion": 123,
"message": "<string>",
"requested": "<string>",
"usage": "<unknown>"
}Chat
Refresh a public chat share viewing token
Returns a short-lived read-only token for viewing a public chat share.
Operation ID: get__chat_shares_public_slug_runtime_token.
GET
https://api.itoflow.ai
/
chat-shares
/
public
/
{slug}
/
runtime-token
Refresh a public chat share viewing token
curl --request GET \
--url https://api.itoflow.ai/chat-shares/public/{slug}/runtime-tokenimport requests
url = "https://api.itoflow.ai/chat-shares/public/{slug}/runtime-token"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.itoflow.ai/chat-shares/public/{slug}/runtime-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"runtime": {
"chat_id": "share_VufIWcgY0FlG",
"expires_at": 1770000000,
"kind": "cloudflare_readonly_share",
"token": "<string>"
}
}{
"error": "<string>",
"available": "<string>",
"billing_action": {
"href": "<string>",
"kind": "upgrade",
"label": "<string>"
},
"code": "<string>",
"currentVersion": 123,
"details": "<unknown>",
"expectedVersion": 123,
"message": "<string>",
"requested": "<string>",
"usage": "<unknown>"
}{
"error": "<string>",
"available": "<string>",
"billing_action": {
"href": "<string>",
"kind": "upgrade",
"label": "<string>"
},
"code": "<string>",
"currentVersion": 123,
"details": "<unknown>",
"expectedVersion": 123,
"message": "<string>",
"requested": "<string>",
"usage": "<unknown>"
}{
"error": "<string>",
"available": "<string>",
"billing_action": {
"href": "<string>",
"kind": "upgrade",
"label": "<string>"
},
"code": "<string>",
"currentVersion": 123,
"details": "<unknown>",
"expectedVersion": 123,
"message": "<string>",
"requested": "<string>",
"usage": "<unknown>"
}