Skip to main content
GET
/
v1
/
traces
List traces
curl --request GET \
  --url https://api.agentmark.co/v1/traces \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Agentmark-App-Id: <api-key>'
{
  "data": [
    {
      "cost": 123,
      "end": "2023-11-07T05:31:56Z",
      "id": "<string>",
      "latency_ms": 123,
      "name": "<string>",
      "span_count": 1,
      "start": "2023-11-07T05:31:56Z",
      "tokens": 1,
      "tags": [
        "<string>"
      ]
    }
  ],
  "pagination": {
    "limit": 1,
    "offset": 1,
    "total": 1
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Agentmark-App-Id
string
header
required

Application ID for tenant scoping

Authorization
string
header
required

API key (sk_agentmark_*)

Query Parameters

limit
integer
default:50
Required range: 1 <= x <= 1000
offset
integer | null
default:0
Required range: x >= 0
start_date
string<date>
end_date
string<date>
sort_by
string
sort_order
enum<string>
Available options:
asc,
desc
status
enum<string>
Available options:
OK,
ERROR
user_id
string
model
string
dataset_run_id
string
session_id
string
name
string
tag
commit_sha
string
filter
string

Response

A paginated list of traces.

data
object[]
required
pagination
object
required