Get Log Details
Retrieve detailed information about a specific log entry, including workflow metadata, execution data, and cost breakdown.
GET
/api/v1/logs/{id}Authorization
apiKey X-API-Key<token>
Your Sim API key (personal or workspace). Generate one from the Sim dashboard under Settings > API Keys.
In: header
Path Parameters
id*string
The unique identifier of the log entry.
Response Body
application/json
application/json
application/json
application/json
curl -X GET \ "https://www.sim.ai/api/v1/logs/{id}" \ -H "X-API-Key: YOUR_API_KEY"{
"data": {
"id": "log_7x8y9z0a1b",
"workflowId": "wf_1a2b3c4d5e",
"executionId": "exec_9f8e7d6c5b",
"level": "info",
"trigger": "api",
"startedAt": "2025-06-20T14:15:22Z",
"endedAt": "2025-06-20T14:15:23Z",
"totalDurationMs": 1250,
"workflow": {
"id": "wf_1a2b3c4d5e",
"name": "Customer Support Agent",
"description": "Routes incoming support tickets and drafts responses"
},
"executionData": {
"traceSpans": [
{}
],
"finalOutput": {}
},
"cost": {
"total": 0.0032,
"tokens": {
"prompt": 450,
"completion": 120,
"total": 570
},
"models": {
"property1": {
"input": 0,
"output": 0,
"total": 0,
"tokens": {
"prompt": 0,
"completion": 0,
"total": 0
}
},
"property2": {
"input": 0,
"output": 0,
"total": 0,
"tokens": {
"prompt": 0,
"completion": 0,
"total": 0
}
}
}
}
},
"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",
"isExceeded": false
}
}
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}