# Get trace tree

> Returns the full execution tree rooted at the given trace (or its root if the given trace is a child). Each node represents one agent's execution session. The `children` array contains traces triggered by sub-agent tool calls from that trace.

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Get trace tree"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/api/v1/traces/{trace_id}/tree"}
  context={"endpoint"}
>
  
</MethodEndpoint>

Returns the full execution tree rooted at the given trace (or its root if the given trace is a child). Each node represents one agent's execution session. The `children` array contains traces triggered by sub-agent tool calls from that trace.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
>
  <Translate id="theme.openapi.request.title">Request</Translate>
</Heading>

<ParamsDetails
  {...require("./get-trace-tree.ParamsDetails.json")}
>
  
</ParamsDetails>

<RequestSchema
  {...require("./get-trace-tree.RequestSchema.json")}
>
  
</RequestSchema>

<StatusCodes
  {...require("./get-trace-tree.StatusCodes.json")}
>
  
</StatusCodes>
