Read paginated run spans and live usage/cost totals
curl --request GET \
--url https://app.factorize.sh/api/v1/runs/{runId}/telemetry \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.factorize.sh/api/v1/runs/{runId}/telemetry"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.factorize.sh/api/v1/runs/{runId}/telemetry', 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://app.factorize.sh/api/v1/runs/{runId}/telemetry",
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://app.factorize.sh/api/v1/runs/{runId}/telemetry"
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://app.factorize.sh/api/v1/runs/{runId}/telemetry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.factorize.sh/api/v1/runs/{runId}/telemetry")
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{
"available": true,
"traceId": "<string>",
"items": [
{
"id": "<string>",
"key": "<string>",
"traceId": "<string>",
"parentId": "<string>",
"kind": "<string>",
"name": "<string>",
"model": "<string>",
"status": "running",
"startedAt": "<string>",
"endedAt": "<string>",
"durationMs": 123,
"usage": {
"input": 123,
"uncachedInput": 123,
"output": 123,
"cacheRead": 123,
"cacheWrite": 123,
"reasoning": 123,
"total": 123
},
"costUsd": 123
}
],
"nextCursor": 0,
"summary": {
"durationMs": 123,
"modelCalls": 0,
"toolCalls": 0,
"unreportedCalls": 0,
"unpricedCalls": 0,
"usage": {
"input": 123,
"uncachedInput": 123,
"output": 123,
"cacheRead": 123,
"cacheWrite": 123,
"reasoning": 123,
"total": 123
},
"costUsd": 123
},
"phoenix": {
"url": "<string>",
"pending": 0,
"sent": 0,
"failed": 0,
"canceled": 0,
"lastError": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}runs
Read paginated run spans and live usage/cost totals
Local telemetry remains available without Phoenix. Model input counts include cached tokens; reasoning is a subset of output. Unreported usage and unknown pricing remain unavailable. Wall time comes from the root span and does not sum overlapping child durations.
Requires the runs:read scope.
Accepts a scoped bearer token, vendor-verified run identity, or interactive owner session.
GET
/
api
/
v1
/
runs
/
{runId}
/
telemetry
Read paginated run spans and live usage/cost totals
curl --request GET \
--url https://app.factorize.sh/api/v1/runs/{runId}/telemetry \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.factorize.sh/api/v1/runs/{runId}/telemetry"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.factorize.sh/api/v1/runs/{runId}/telemetry', 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://app.factorize.sh/api/v1/runs/{runId}/telemetry",
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://app.factorize.sh/api/v1/runs/{runId}/telemetry"
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://app.factorize.sh/api/v1/runs/{runId}/telemetry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.factorize.sh/api/v1/runs/{runId}/telemetry")
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{
"available": true,
"traceId": "<string>",
"items": [
{
"id": "<string>",
"key": "<string>",
"traceId": "<string>",
"parentId": "<string>",
"kind": "<string>",
"name": "<string>",
"model": "<string>",
"status": "running",
"startedAt": "<string>",
"endedAt": "<string>",
"durationMs": 123,
"usage": {
"input": 123,
"uncachedInput": 123,
"output": 123,
"cacheRead": 123,
"cacheWrite": 123,
"reasoning": 123,
"total": 123
},
"costUsd": 123
}
],
"nextCursor": 0,
"summary": {
"durationMs": 123,
"modelCalls": 0,
"toolCalls": 0,
"unreportedCalls": 0,
"unpricedCalls": 0,
"usage": {
"input": 123,
"uncachedInput": 123,
"output": 123,
"cacheRead": 123,
"cacheWrite": 123,
"reasoning": 123,
"total": 123
},
"costUsd": 123
},
"phoenix": {
"url": "<string>",
"pending": 0,
"sent": 0,
"failed": 0,
"canceled": 0,
"lastError": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
bearerAuthvendorRunIdentity & runIdentityHeadercookieAuth