Agent Traces API

Fetch the activity timeline for a Steel browser session as JSON.

Use the Agent Traces API when you want the same activity timeline shown in the dashboard, but as JSON for analysis, replay, or internal tooling.

GET /v1/sessions/
/agent-traces

Returns the trace timeline for a finished or in-progress session.

Response

FieldTypeNotes
eventsarrayTimeline activities in chronological order.
totalnumberNumber of activities returned.
hasMorebooleanWhether more activity data is available.

Each activity includes a small common envelope:

FieldTypeNotes
typestringActivity type, such as click, input, navigate, scroll, drag, or error.
timestampISO 8601 stringWhen the activity happened.
endTimestampISO 8601 stringPresent when the activity spans a range of time.
pageobjectPage context, usually including url.
targetobjectElement context when available.

Activity-specific details appear when relevant. For example, click activities can include pointer, typing activities can include value, keyboard activities can include keyboard, navigation activities can include navigation, and error activities can include error.

Target Details

When Steel can identify the element involved in an activity, target can include readable labels and useful selectors:

Use target details as hints for review or replay. Some activities, such as navigation or errors, may not include a target.

Filtering by Time

You can limit results to a time range:

Query paramNotes
startTimeInclude activities at or after this ISO timestamp.
endTimeInclude activities at or before this ISO timestamp.

Errors

StatusMeaning
401Missing or invalid steel-api-key.
403The session belongs to a different organization.
404No session with that ID.
429Rate limit hit. Retry after the Retry-After header.
Need help with the Agent Traces API?

Reach out on the #help channel on Discord under the ⭐ community section.