[Clockify integration] Get currently logged in user ID; Stop currently running timer

The idea is:

Clockify has an extensive API that is not completely covered by the N8N integration. I would like to have a node to fetch my currently logged in user’s ID to use it in the other node I wish I had: stop the currently running timer of my currently logged in user.

My use case:

My use case is as follows: I use an Aqara Magic Cube to track my working time. It is paired with my Home Assistant. Lacking a proper integration in Home Assistant I want to use my local N8N instance to do the connection between HA and Clockify for me. Whenever I turn the Magic Cube to side 1 up (when I call it a day) I want an N8N webhook to be called which in turn stops my currently running Clockify timer, whatever that may be, immediately with end=now().

I think it would be beneficial to add this because:

It extends the Clockify API integration of N8N. Whoever uses Clockify with N8N will benefit from this, I’m sure.

Any resources to support this?

The Clockify API docs for sure.

Are you willing to work on this?

Willing, yes, absolutely. Finding the time to get my head around N8N node code is the bigger challenge.

I’ve opened a PR that should tackle some of what you’re trying to do.

BTW I like the Aqara cube trigger to stop the timer :ok_hand:

It has an optional end time which defaults to now()