WebWork Tracker REST API V2 provides programmatic access to your workspace data. This API allows you to manage members, projects, tasks, time tracking, leaves, and expenses. Access is restricted to workspace owners and executive managers only.
WebWork Tracker REST API V2 (2.0.0)
Request
Retrieve tracked hours report data for a workspace. Supports filtering by users, projects, teams, and titles. Data is always grouped by day. Always returns: Day-by-day breakdown grouped by date (date as key), with users array inside each date. Tracked time is returned in minutes (total_minutes field), aggregated across all tracking methods and grouped by user_id, project_id, and contract_id. If user has access to rates (rate_status = 1), also returns total_amount as an object with currency codes as keys. When user_id is provided: Results are filtered to that specific user only. Date range is limited to maximum 31 days (1 month) when user_id is provided. Security: Only workspace owners and executive managers can access this endpoint.
ID of the workspace (team_id from owner_user_rel table)
Filter by specific user ID. When provided, results are filtered to that user only. Date range is limited to maximum 31 days.
Start date for the report (Y-m-d format). Defaults to start of current week if not provided. Maximum 31 days from end_date when user_id is provided.
End date for the report (Y-m-d format). Defaults to end of current week if not provided. Maximum 31 days from start_date when user_id is provided.
Filter by user IDs (comma-separated or array)
Filter by project IDs (comma-separated or array)
- Production Serverhttps://api.webwork-tracker.com/api/v2/reports/tracked-hours
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X GET \
'https://api.webwork-tracker.com/api/v2/reports/tracked-hours?workspace_id=1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "success": true, "data": { "report_type": "tracked_hours", "start_date": "2024-01-01", "end_date": "2024-01-31", "total": { … }, "daily_breakdown": { … } }, "message": "Tracked hours report retrieved successfully", "meta": { "api_version": "2.0.0", "timestamp": "2024-01-15T10:30:00Z" } }