v13

latestOpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-08-015232292.9 KB
Logs

Get Log Details

Retrieve detailed information about a specific log entry, including workflow metadata, execution data, and cost breakdown.

get/api/v1/logs/{id}

Path parameters

idstring required
Example:log_7x8y9z0a1b

The unique identifier of the log entry.

Response

Detailed log entry with full execution data and cost breakdown.

Example response

{
  "data": {
    "id": "log_7x8y9z0a1b",
    "workflowId": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36",
    "executionId": "e4f8d2b6-9a1c-4e3d-8b7f-5c0a2d9e6f13",
    "level": "info",
    "trigger": "api",
    "startedAt": "2025-06-20T14:15:22Z",
    "endedAt": "2025-06-20T14:15:23Z",
    "totalDurationMs": 1250,
    "workflow": {
      "id": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36",
      "name": "Customer Support Agent",
      "description": "Routes incoming support tickets and drafts responses"
    },
    "cost": {
      "total": 0.0032,
      "tokens": {
        "prompt": 450,
        "completion": 120,
        "total": 570
      }
    }
  },
  "limits": {
    "workflowExecutionRateLimit": {
      "sync": {
        "requestsPerMinute": 60,
        "maxBurst": 10,
        "remaining": 59,
        "resetAt": "2025-06-20T14:16:00Z"
      },
      "async": {
        "requestsPerMinute": 60,
        "maxBurst": 10,
        "remaining": 59,
        "resetAt": "2025-06-20T14:16:00Z"
      }
    },
    "usage": {
      "currentPeriodCost": 1.25,
      "limit": 50,
      "plan": "pro"
    }
  }
}