Skip to main content
GET
List spans

Authorizations

X-Agentmark-App-Id
string
header
required

Application ID for tenant scoping. X-Outerlayer-App-Id is accepted as an equivalent header.

Authorization
string
header
required

API key (sk_agentmark_*)

Query Parameters

limit
integer
default:100
Required range: 1 <= x <= 500
offset
integer | null
default:0
Required range: x >= 0
trace_id
string
type
enum<string>
Available options:
SPAN,
GENERATION,
EVENT
status
enum<string>
Available options:
UNSET,
OK,
ERROR
name
string
model
string
min_duration
integer | null
Required range: x >= 0
max_duration
integer | null
Required range: x >= 0
start_date
string<date-time>
end_date
string<date-time>
user_id
string
session_id
string
filter
string

Filter expression (string DSL), same grammar as GET /v1/traces. Clauses combined with and; a clause is a predicate (field operator [value]) or a parenthesized OR-group: (a = 1 or b = 2). Supports metadata.<key> with exists / does not exist / = / string operators. Example: (model = "gpt-4o" or model = "o3") and status = ERROR. Malformed filters return 400.

Response

A list of spans.

data
object[]
required
pagination
object
required