Skip to main content
GET
/
v1
/
runs
/
{runId}
/
traces
List Traces for a Run
curl --request GET \
  --url https://api.agentmark.co/v1/runs/{runId}/traces \
  --header 'Authorization: <api-key>' \
  --header 'X-Agentmark-App-Id: <x-agentmark-app-id>'
{
  "data": [
    {
      "id": "abc123-def456",
      "name": "chat-completion",
      "status": "OK",
      "start": "2026-04-10T15:30:45.123Z",
      "end": "2026-04-10T15:30:46.357Z",
      "latency_ms": 1234.5,
      "cost": 0.0032,
      "tokens": 450,
      "span_count": 3,
      "tags": [
        "production"
      ]
    }
  ],
  "pagination": {
    "total": 150,
    "limit": 50,
    "offset": 0
  }
}

Authorizations

Authorization
string
header
required

Your AgentMark API key. Create one in the dashboard under Settings > API Keys.

Example: Authorization: Bearer am_live_abc123

Headers

X-Agentmark-App-Id
string
required

Your application ID. Found in the dashboard under Settings > General.

Example:

"app_abc123"

Path Parameters

runId
string
required

The run ID whose traces to retrieve.

Query Parameters

limit
integer
default:50

Maximum number of traces to return.

Required range: 1 <= x <= 200
offset
integer
default:0

Number of traces to skip for pagination.

Required range: x >= 0

Response

Paginated list of traces for the run.

data
object[]
pagination
object