Skip to main content
GET
cURL
Retrieve the latest Event node for each event_id in a Run, together with structural parent edges and causal links.
The API key determines the team. Pass environment_id on every request. Runs with the same run_id in other Environments are never included.

Edges and unresolved targets

Every edge connects a source Event to a target Event.
  • parent connects an Event to its single structural parent. Run trees and breadcrumbs use only parent edges.
  • link records a causal input and may point to another run in the same Environment.
The response includes every edge target in nodes, including targets outside the requested page or in another Run in the same Environment. If the target Event has not been stored yet, its node contains the requested public IDs and internal_event_id: null. This preserves the reference without pretending the target exists.

Pagination

limit defaults to 100. The API rejects 0 and clamps any value above 100 to 100. Pass next_cursor as after to load the next page. A cursor is valid only for the Environment and Run that produced it; using it with another scope returns 400. The graph returns the latest attempt for each public event_id, regardless of whether it completed or failed. A retry created while you paginate moves that Event to its new latest-attempt position, which may be before your current cursor. Restart pagination when you need a fresh complete latest-attempt view; cursors do not snapshot a changing Run. Use the returned internal_event_id with the Get Event endpoint to retrieve moderation details.

Authorizations

Authorization
string
header
required

API Key required. Format: Bearer wc-your-api-key

Headers

whitecircle-version
string
required

API Version

Path Parameters

run_id
string
required

Query Parameters

environment_id
string
required

Required environment selector.

limit
integer<int32>
default:100

Number of Events to return. Values above 100 are clamped to 100.

Required range: x >= 1
after
string | null

Response

Run graph retrieved

nodes
object[]
required
edges
object[]
required
has_more
boolean
required
next_cursor
string | null