Sessions
Get the workspace's session-history retention policy
How long the workspace’s plan keeps session history and recordings,
with the server’s clock. A session older than cutoff answers
403 upgrade_required on its reads.
GET
/
v1
/
sessions
/
history-policy
Get the workspace's session-history retention policy
curl --request GET \
--url https://api.lusor.ai/v1/sessions/history-policy \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/sessions/history-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/sessions/history-policy"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"server_now": "2023-11-07T05:31:56Z",
"retention_days": 123,
"cutoff": "2023-11-07T05:31:56Z",
"unlimited": true,
"video_retention_days": 123
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Query Parameters
Was this page helpful?
⌘I
Get the workspace's session-history retention policy
curl --request GET \
--url https://api.lusor.ai/v1/sessions/history-policy \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/sessions/history-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/sessions/history-policy"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"server_now": "2023-11-07T05:31:56Z",
"retention_days": 123,
"cutoff": "2023-11-07T05:31:56Z",
"unlimited": true,
"video_retention_days": 123
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
