curl --request GET \
--url https://api.cloudcruise.com/live/sessions/{session_id}/connection \
--header 'cc-key: <api-key>'import requests
url = "https://api.cloudcruise.com/live/sessions/{session_id}/connection"
headers = {"cc-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'cc-key': '<api-key>'}};
fetch('https://api.cloudcruise.com/live/sessions/{session_id}/connection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudcruise.com/live/sessions/{session_id}/connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"cc-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloudcruise.com/live/sessions/{session_id}/connection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cc-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cloudcruise.com/live/sessions/{session_id}/connection")
.header("cc-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/live/sessions/{session_id}/connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cc-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"url": "https://live-view.cloudcruise.com/viewer?authToken=eyJhbGciOi...#e5f6a7b8-9abc-4def-0123-56789abcdef0",
"sessionId": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
"authToken": "eyJhbGciOi..."
}Get live-view connection
Fetches a fresh live-view connection for watching an active session’s browser stream: a viewer URL plus its auth token.
The auth token is single-use — once a viewer link has been opened, opening it again (reloading the tab, or reopening it later) fails to connect. Call this endpoint again to mint a fresh token/link rather than reusing an old one.
Only works while the session is still active; fails once the session has ended.
curl --request GET \
--url https://api.cloudcruise.com/live/sessions/{session_id}/connection \
--header 'cc-key: <api-key>'import requests
url = "https://api.cloudcruise.com/live/sessions/{session_id}/connection"
headers = {"cc-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'cc-key': '<api-key>'}};
fetch('https://api.cloudcruise.com/live/sessions/{session_id}/connection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudcruise.com/live/sessions/{session_id}/connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"cc-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloudcruise.com/live/sessions/{session_id}/connection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cc-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cloudcruise.com/live/sessions/{session_id}/connection")
.header("cc-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/live/sessions/{session_id}/connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cc-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"url": "https://live-view.cloudcruise.com/viewer?authToken=eyJhbGciOi...#e5f6a7b8-9abc-4def-0123-56789abcdef0",
"sessionId": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
"authToken": "eyJhbGciOi..."
}Authorizations
API key-based authentication. Provide your CloudCruise API key in the cc-key header.
Path Parameters
The unique identifier for the workflow execution session
Response
Live-view connection successfully retrieved
A viewer URL and its single-use auth token for watching an active session's browser stream. Note the field names are camelCase, unlike other Run API responses.
The viewer URL, with the single-use auth token embedded.
"https://live-view.cloudcruise.com/viewer?authToken=eyJhbGciOi...#e5f6a7b8-9abc-4def-0123-56789abcdef0"
Unique identifier for the workflow execution session
"e5f6a7b8-9abc-4def-0123-56789abcdef0"
Single-use auth token embedded in url. Consuming the viewer link invalidates it — call this endpoint again for a fresh one.
"eyJhbGciOi..."
Was this page helpful?

