For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETQuery customer logs
      • GETDebug R2 SQL diagnostics
      • GETGet aggregated log stats
      • GETTrace a conversation
      • GETTrace an execution
Dashboard
LogoLogo
Runtype APILogs

Trace an execution

GET
/v1/logs/trace/execution/:executionId
GET
/v1/logs/trace/execution/:executionId
$curl https://api.runtype.com/v1/logs/trace/execution/executionId \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "success": true,
3 "data": {
4 "executionId": "a3f1c9d2-7b4e-4f8a-9c3d-2e5f7a1b6c9d",
5 "startTime": "2024-06-10T09:15:30Z",
6 "endTime": "2024-06-10T09:17:45Z",
7 "status": "completed",
8 "traceTree": {
9 "id": "root",
10 "name": "MainExecution",
11 "durationMs": 135000,
12 "children": [
13 {
14 "id": "step-1",
15 "name": "InitializeResources",
16 "durationMs": 30000,
17 "children": []
18 },
19 {
20 "id": "step-2",
21 "name": "ProcessData",
22 "durationMs": 90000,
23 "children": [
24 {
25 "id": "step-2-1",
26 "name": "FetchInput",
27 "durationMs": 20000,
28 "children": []
29 },
30 {
31 "id": "step-2-2",
32 "name": "TransformData",
33 "durationMs": 70000,
34 "children": []
35 }
36 ]
37 },
38 {
39 "id": "step-3",
40 "name": "Cleanup",
41 "durationMs": 15000,
42 "children": []
43 }
44 ]
45 }
46 }
47}
Returns a structured trace tree for a single execution.
Was this page helpful?
Previous

List conversations

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

executionIdstringRequired
Execution ID to trace

Response

Trace tree returned
successboolean
dataany

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error