v1

latestOpenAPI 3.0.32026-08-0613775357.6 KB
time entries

List project time entries

Retrieves a paginated list of time entries for a specific project.

get/projects/{project_id}/time_entries

Path parameters

project_idinteger required

The ID of the project.

Query parameters

fromstring date

Get time entries that start on or after this date.

tostring date

Get time entries that end on or before this date.

with_suggestionsboolean

If set to true, includes suggested (unconfirmed) time entries.

sort_field'created' | 'updated'

Field to sort the return document.

sort_order'ascending' | 'descending'

Order to sort the results on.

Response

A paginated list of time entries for the project.

Example response

{
  "data": [
    {
      "id": 100000,
      "user_id": 123,
      "assignable_id": 1001,
      "assignable_type": "Project",
      "date": "2024-09-12",
      "is_suggestion": true,
      "scheduled_hours": 8,
      "bill_rate": 150,
      "bill_rate_id": 4,
      "created_at": "2024-09-12T04:32:28Z",
      "updated_at": "2024-09-18T04:32:28Z"
    }
  ],
  "paging": {
    "per_page": 100,
    "page": 1,
    "previous": "/api/v1/users?per_page=1000&page=1",
    "self": "/api/v1/users?per_page=1000&page=2",
    "next": "/api/v1/users?per_page=1000&page=3"
  }
}