Traces
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. A node's generations are listed by GET /v1/projects/{project_id}/generations?trace_id=, and a node's direct children page by GET /v1/projects/{project_id}/traces?parent_trace_id=.
get/v1/projects/{project_id}/traces/{trace_id}/tree
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/traces/{trace_id}/tree
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Path parameters
trace_idstring required
Public ID of any trace in the tree (root or child)
Response
Trace tree rooted at the resolved root trace
Example response
{
"error": {
"code": "AI_PROVIDER_ERROR",
"message": "Provider returned 402: insufficient credits"
},
"content_redacted_by_principal_type": "user",
"content_redacted_by_principal_id": "user_V1StGXR8Z5jdHi6B"
}Changes
No recorded changes to this operation across all 1 revision of this API.