Endpoint for all changes to time entries in a workspace

Endpoint for all changes to time entries in a workspace.

We currently perform a relatively large number of queries via https://api.track.toggl.com/reports/api/v3/workspace/{wid}/search/time_entries to keep the time entries in our database up to date. In order to comply with the API limits, it would be a good idea to have an API endpoint that delivers changes to time entries. In other words, which time entries were newly created, which were changed and which were removed.

Is there something like this? That would save us a lot of requests.

Hi @featvalue :waving_hand:

There’s currently no dedicated “change feed” or delta endpoint for tracking created/updated/deleted time entries in a workspace. However, a practical workaround is to use the order_by: last_update parameter in the Detailed Report endpoint.

This sorts entries by their last update timestamp (or creation date if no updates exist). The field this refers to is at in the time entry object — you can store the previous at values locally and compare them on each sync to detect new or modified entries.

:prohibited: There’s still no way to detect deletions directly — so if that’s important, you’ll need to track existing time entry IDs and compare between syncs to find which ones were removed.

This method doesn’t eliminate the need for regular polling, but it can reduce redundant updates and API calls by letting you skip unchanged entries.


All right, let’s sort by last_update for now. Thank’s a lot!

1 Like