Query Spans
curl --request GET \
--url https://flow.seekr.com/v2/spans \
--header 'Authorization: <api-key>'import requests
url = "https://flow.seekr.com/v2/spans"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://flow.seekr.com/v2/spans', 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://flow.seekr.com/v2/spans",
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: <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://flow.seekr.com/v2/spans"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://flow.seekr.com/v2/spans")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow.seekr.com/v2/spans")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"run_id": "<string>",
"thread_id": "<string>",
"agent_id": "<string>",
"trace_id": "<string>",
"span_id": "<string>",
"span_name": "<string>",
"level": 123,
"service_name": "<string>",
"start_timestamp": "2023-11-07T05:31:56Z",
"end_timestamp": "2023-11-07T05:31:56Z",
"kind": "span",
"message": "<string>",
"group": "<string>",
"parent_span_id": "<string>",
"otel_scope_name": "<string>",
"is_exception": true,
"exception_type": "<string>",
"gen_ai_operation_name": "<string>",
"gen_ai_request_model": "<string>",
"gen_ai_response_model": "<string>",
"gen_ai_system": "<string>",
"gen_ai_usage_input_tokens": "<string>",
"gen_ai_usage_output_token": "<string>",
"seekr_metadata": {}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query spans
Retrieve span summaries that match your filters.
GET
/
v2
/
spans
Query Spans
curl --request GET \
--url https://flow.seekr.com/v2/spans \
--header 'Authorization: <api-key>'import requests
url = "https://flow.seekr.com/v2/spans"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://flow.seekr.com/v2/spans', 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://flow.seekr.com/v2/spans",
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: <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://flow.seekr.com/v2/spans"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://flow.seekr.com/v2/spans")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow.seekr.com/v2/spans")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"run_id": "<string>",
"thread_id": "<string>",
"agent_id": "<string>",
"trace_id": "<string>",
"span_id": "<string>",
"span_name": "<string>",
"level": 123,
"service_name": "<string>",
"start_timestamp": "2023-11-07T05:31:56Z",
"end_timestamp": "2023-11-07T05:31:56Z",
"kind": "span",
"message": "<string>",
"group": "<string>",
"parent_span_id": "<string>",
"otel_scope_name": "<string>",
"is_exception": true,
"exception_type": "<string>",
"gen_ai_operation_name": "<string>",
"gen_ai_request_model": "<string>",
"gen_ai_response_model": "<string>",
"gen_ai_system": "<string>",
"gen_ai_usage_input_tokens": "<string>",
"gen_ai_usage_output_token": "<string>",
"seekr_metadata": {}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Returns a list of span summaries matching the provided filters. All filters are optional. If
min_start_datetime is not provided, the query defaults to the last 15 minutes. Start with run_id when investigating a specific agent run. Use limit and offset to paginate results and order to sort by start time. To filter by run metadata, add a metadata[key] query parameter for each field.
To retrieve the full record for a specific span, use the get span endpoint.Authorizations
Headers
Query Parameters
Response
Success
Last modified on December 2, 2026
⌘I