Push a live session's idle expiry out from now.
curl --request POST \
--url https://api.infrawatch.com/api/v1/projects/{project_uuid}/sessions/{session_uuid}/extend \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.infrawatch.com/api/v1/projects/{project_uuid}/sessions/{session_uuid}/extend"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.infrawatch.com/api/v1/projects/{project_uuid}/sessions/{session_uuid}/extend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.infrawatch.com/api/v1/projects/{project_uuid}/sessions/{session_uuid}/extend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"session": {
"created_at": "2023-11-07T05:31:56Z",
"creator": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"egress_country": "<string>",
"last_activity_at": "2023-11-07T05:31:56Z",
"project_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"viewport": {
"height": 1040,
"width": 1600
},
"close_requested_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"ready_at": "2023-11-07T05:31:56Z",
"replayed_from_session_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"terminal_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field_errors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field_errors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
],
"request_id": "<string>"
}
}Sessions
Push a live session's idle expiry out from now.
Creator-only. Buys the session another full idle window, for when you are reading the page rather than driving it. Captures and stream frames already do this implicitly. It does not raise the hard lifetime, so the session still ends at the expires_at it was given when it started. The session must be ready.
POST
https://api.infrawatch.com/api/v1
/
projects
/
{project_uuid}
/
sessions
/
{session_uuid}
/
extend
Push a live session's idle expiry out from now.
curl --request POST \
--url https://api.infrawatch.com/api/v1/projects/{project_uuid}/sessions/{session_uuid}/extend \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.infrawatch.com/api/v1/projects/{project_uuid}/sessions/{session_uuid}/extend"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.infrawatch.com/api/v1/projects/{project_uuid}/sessions/{session_uuid}/extend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.infrawatch.com/api/v1/projects/{project_uuid}/sessions/{session_uuid}/extend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"session": {
"created_at": "2023-11-07T05:31:56Z",
"creator": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"egress_country": "<string>",
"last_activity_at": "2023-11-07T05:31:56Z",
"project_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"viewport": {
"height": 1040,
"width": 1600
},
"close_requested_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"ready_at": "2023-11-07T05:31:56Z",
"replayed_from_session_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"terminal_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field_errors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field_errors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
],
"request_id": "<string>"
}
}Authorizations
Infrawatch API key. Supply the complete key directly as the header value.
Response
Idle expiry moved; the updated session is returned.
Show child attributes
Show child attributes
⌘I