Get stream
curl --request GET \
--url https://api.overshoot.ai/v1beta/streams/{stream_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.overshoot.ai/v1beta/streams/{stream_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.overshoot.ai/v1beta/streams/{stream_id}', 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.overshoot.ai/v1beta/streams/{stream_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.overshoot.ai/v1beta/streams/{stream_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.overshoot.ai/v1beta/streams/{stream_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.overshoot.ai/v1beta/streams/{stream_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "active",
"source": {
"type": "livekit"
},
"last_pull": 123,
"stream_time_ms": 123,
"first_frame_at_ms": 123,
"last_frame_at_ms": 123,
"last_frame_index": 123,
"first_available_frame_at_ms": 123,
"first_available_frame_index": 123,
"created_at_ms": 123,
"recent_fps": 123,
"retained_frame_count": 123,
"evicted_frame_count": 123,
"expires_at_ms": 123,
"ttl_seconds": 123,
"ended_at_ms": 123,
"end_reason": "expired",
"audio": false
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": {
"error": "region_error",
"expected_region": "us-west1",
"requested_region": "us-central1"
}
}Streams
Get stream
Return a Stream’s current state and frame telemetry, including recent FPS, retained frame counts, and lease expiry timestamps.
GET
/
streams
/
{stream_id}
Get stream
curl --request GET \
--url https://api.overshoot.ai/v1beta/streams/{stream_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.overshoot.ai/v1beta/streams/{stream_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.overshoot.ai/v1beta/streams/{stream_id}', 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.overshoot.ai/v1beta/streams/{stream_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.overshoot.ai/v1beta/streams/{stream_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.overshoot.ai/v1beta/streams/{stream_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.overshoot.ai/v1beta/streams/{stream_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "active",
"source": {
"type": "livekit"
},
"last_pull": 123,
"stream_time_ms": 123,
"first_frame_at_ms": 123,
"last_frame_at_ms": 123,
"last_frame_index": 123,
"first_available_frame_at_ms": 123,
"first_available_frame_index": 123,
"created_at_ms": 123,
"recent_fps": 123,
"retained_frame_count": 123,
"evicted_frame_count": 123,
"expires_at_ms": 123,
"ttl_seconds": 123,
"ended_at_ms": 123,
"end_reason": "expired",
"audio": false
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": {
"error": "region_error",
"expected_region": "us-west1",
"requested_region": "us-central1"
}
}Reading the response
The response covers three axes you’ll mix when authoring stream URLs:- Wall-clock time —
created_at_ms,first_frame_at_ms,last_frame_at_ms,expires_at_ms. Unix ms. Useful for absolute deadlines andtimestamp_msmath (thetimestamp_msanchor is measured fromfirst_frame_at_ms). - Stream-clock time —
stream_time_ms. Monotonically increases from0at the first frame; resets to no other clock if the publisher pauses. - Frame indices —
last_frame_index,first_available_frame_index. Lifetime indices that never reset, even after eviction. The pair defines the retention window — anything in[first_available_frame_index, last_frame_index]resolves cleanly; older indices clamp up tofirst_available_frame_index.
*_at_ms / *_index field returns null (only id, state, created_at_ms, expires_at_ms, ttl_seconds are populated). Polling last_frame_at_ms is the cheapest “wait for ingest” check.
After the stream ends, state becomes ended with ended_at_ms and end_reason set. The endpoint keeps returning the ended record for a short tombstone window, then 404s.Authorizations
Every public HTTP request requires Authorization: Bearer <api_key>, except
GET /models and the public /billing/pricing endpoints.
401means the key is missing, unknown, or revoked.403means the key is valid but cannot access the requested resource.- The publish token returned by
POST /streamsis only for publishing media to LiveKit. It does not replace the API key for HTTP calls.
Headers
Response
Stream state.
Server-pulled sources only. Wall-clock Unix ms of the most recent frame
pulled from the source, written at most once per second. A value that keeps
advancing means the pull is healthy; one that is frozen or null means the
source has gone quiet, which is distinct from the stream having failed.
Always null for client-published streams.