Control session lifecycle
curl --request POST \
--url https://api.illocution.ai/analyze/live/{session_id}/control \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'import requests
url = "https://api.illocution.ai/analyze/live/{session_id}/control"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.illocution.ai/analyze/live/{session_id}/control', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "<string>"
}{
"detail": "Invalid or missing API key"
}{
"detail": "Invalid or missing API key"
}{
"detail": "Invalid or missing API key"
}Live Streaming
Control session lifecycle
Control a live session: finalize processing, cancel, or extend TTL.
POST
/
analyze
/
live
/
{session_id}
/
control
Control session lifecycle
curl --request POST \
--url https://api.illocution.ai/analyze/live/{session_id}/control \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'import requests
url = "https://api.illocution.ai/analyze/live/{session_id}/control"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.illocution.ai/analyze/live/{session_id}/control', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "<string>"
}{
"detail": "Invalid or missing API key"
}{
"detail": "Invalid or missing API key"
}{
"detail": "Invalid or missing API key"
}Authorizations
API key for authentication. Can also be passed as query parameter: api_key=
Path Parameters
Live session identifier
Body
application/json
Response
Control action successful