Returns a paginated list of tasks with optional filtering.
Query Parameters
Filter by conversation ID
Filter by status: active, completed, failed, timeout
Filter by whether loops were detected
Filter tasks that have any issues (loops OR failures)
Filter tasks started after this date (ISO 8601)
Filter tasks started before this date (ISO 8601)
Page number for pagination
Number of tasks per page (max 100)
sort_by
string
default:"started_at"
Field to sort by: started_at, completed_at, trace_count
Response
Array of task objects with summary information
Total number of tasks matching the filters
Example
curl -X GET "https://api.tracelm.ai/api/v1/tasks?has_issues=true&status=completed&page=1" \
-H "X-API-Key: $TRACELM_API_KEY"
Response
{
"tasks": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"task_name": "booking_flow",
"user_id": "user_123",
"conversation_id": "conv_456",
"status": "completed",
"trace_count": 5,
"tool_call_count": 3,
"tool_failure_count": 1,
"loop_detected": false,
"context_failure_count": 0,
"started_at": "2024-01-15T10:30:00Z",
"completed_at": "2024-01-15T10:31:00Z"
}
],
"total": 42,
"page": 1,
"page_size": 50
}