Extend a session
Extend the timeout of an active browser session by 1–1440 minutes. Requires scope browser.sessions.update. See Runtime Updates & Extensions.
PUT
/
api
/
session
/
{id}
/
extend-session
cURL
curl -X PUT "https://api.hyperbrowser.ai/api/session/<id>/extend-session" \
-H "x-api-key: $HYPERBROWSER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"durationMinutes": 30}'const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({durationMinutes: 720})
};
fetch('https://api.hyperbrowser.ai/api/session/{id}/extend-session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));from hyperbrowser import Hyperbrowser
client = Hyperbrowser(api_key="your-api-key")
client.sessions.extend_session("session-id", 30){
"success": true
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Was this page helpful?
cURL
curl -X PUT "https://api.hyperbrowser.ai/api/session/<id>/extend-session" \
-H "x-api-key: $HYPERBROWSER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"durationMinutes": 30}'const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({durationMinutes: 720})
};
fetch('https://api.hyperbrowser.ai/api/session/{id}/extend-session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));from hyperbrowser import Hyperbrowser
client = Hyperbrowser(api_key="your-api-key")
client.sessions.extend_session("session-id", 30){
"success": true
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}