Hello,
I usually extract data from workspace settings to see our audit log. I was wondering if there is a way to pull equivalent data via the API.
I have tried this URL but it is not working https://api.clockify.me/api/v1/workspaces/{workspaceId}/audit-log
Hi @MB_2024
Thank you for joining the forum!
At this time, the Audit Log feature isn’t available via the API. We’ve logged a feature request to our product team for review.
While audit log endpoints aren’t yet available, you can use the experimental endpoints to track changes to entries.
-
Deleted entries (Shows deleted time entries with timestamps):
GET
https://api.clockify.me/api/v1/workspaces/{workspaceId}/entities/deleted?type=TIME_ENTRY
-
Updated time entries (The response includes timestamps and new field values)
GET
https://api.clockify.me/api/v1/workspaces/{workspaceId}/entities/deleted?type=TIME_ENTRY
When “start” and “end” query parameters, the date range is automatically 30 days from the current date.
Additionally, you might find webhooks also useful to track changes to different entities in Clockify.
Thank you for your feedback!
1 Like