Get time bookings grid
Retrieves a paginated, filterable grid of all time booking entries in the workspace.
What are Time Bookings? Time bookings (also called time logs or time entries) are records of working hours that employees have logged to specific tasks or projects. They document how much time was spent on different activities, which is essential for:
- Project planning and resource allocation
- Billing customers accurately
- Analyzing productivity and team workload
- Understanding where time is being spent in the organization
What data is returned: The grid returns time booking entries with the following information:
- Date: When the time was logged
- Hours: Amount of time logged (decimal format, e.g., 8.5 for 8 hours 30 minutes)
- Comment: Optional notes about the work performed
- Project ID: The project the time was logged to
- Task ID: The specific task (if time was logged to a task rather than just a project)
- User ID: Which employee logged the time
- Activity ID: The type of work performed (e.g., development, research, management)
- Value Group: The project value group for categorization
Response includes:
- Paginated list of time booking items
- Total count of matching entries
- totalHours: Sum of all hours across filtered entries (useful for reporting)
- Current page and page size
Filtering and sorting: You can filter by date range, project, task, user, activity, or value group. Quick search is available on comments. Results are sorted by date (newest first) by default.
Permissions: Requires either “seeLoggedTimeDetails” (to see your own time) or “seeCompanyLoggedTime” (to see all company time).
/timebookings/timeGridAuthorizationOAuth2 access token · headerrequiredapi:readAuthorizationBearer token (JWT) · headerrequiredpagenumberpageSizenumberviewIdstringquickSearchstringfiltersstringsortstringfieldsToReturnany[]groupstringdayweekmonthnonegroupMetaobject[]Show propertiesHide properties
objectcontinuedFromPreviousbooleancontinuesToNextbooleanfullGroupCountnumberfullGroupSumnumbergroupKeystringpageFragmentCountnumberpageFragmentSumnumberitemsobject[]requiredShow propertiesHide properties
objectactivityIdstringcommentstring | nulldatestring<date-time>hoursnumberidstringprojectIdstringtaskIdstring | nulluserIdstringpagenumberrequiredpageSizenumberrequiredtotalnumberrequiredtotalChildrennumbertotalHoursnumberrequiredcurl -X GET "https://leadtime.app/api/public/timebookings/timeGrid" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/timebookings/timeGrid", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/timebookings/timeGrid",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
){
"groupMeta": [
{
"continuedFromPrevious": false,
"continuesToNext": false,
"fullGroupCount": 12,
"fullGroupSum": 114.3,
"groupKey": "2026-02-19",
"pageFragmentCount": 12,
"pageFragmentSum": 114.3
}
],
"items": [
{
"activityId": "550e8400-e29b-41d4-a716-446655440004",
"comment": "Development work on feature X",
"date": "2025-01-15T00:00:00.000Z",
"hours": 8.5,
"id": "550e8400-e29b-41d4-a716-446655440000",
"projectId": "550e8400-e29b-41d4-a716-446655440002",
"taskId": "550e8400-e29b-41d4-a716-446655440001",
"userId": "550e8400-e29b-41d4-a716-446655440003"
}
],
"page": 1,
"pageSize": 100,
"total": 150,
"totalChildren": 250,
"totalHours": 1250.5
}