Subscribe to SSE events
curl --request GET \
--url https://api.illocution.ai/analyze/live/{session_id}/events \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.illocution.ai/analyze/live/{session_id}/events"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.illocution.ai/analyze/live/{session_id}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"detail": "Invalid or missing API key"
}{
"detail": "Invalid or missing API key"
}Live Streaming
Subscribe to SSE events
Subscribe to Server-Sent Events for a live session. Only one SSE consumer may be attached at a time.
GET
/
analyze
/
live
/
{session_id}
/
events
Subscribe to SSE events
curl --request GET \
--url https://api.illocution.ai/analyze/live/{session_id}/events \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.illocution.ai/analyze/live/{session_id}/events"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.illocution.ai/analyze/live/{session_id}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"detail": "Invalid or missing API key"
}{
"detail": "Invalid or missing API key"
}