Filter summary report in Clockify API to show only billable hours

I'm trying to use the API to retrieve only billable hours.If "billable" is set to anything other than "BOTH", the API responds with an error.I'm using the following endpoint:https://api.clockify.me/api/workspaces/[workspace id]/reports/summary/This is my request body:{ "archived": "Active", "billable": "true", "clientIds": [], "description": "", "endDate": "2019-05-31T23:59:59.999Z", "firstTime": "true", "includeTimeEntries": "true", "me": "true", "name": "", "projectIds": [], "startDate": "2019-01-01T00:00:00.0...Read more

What the best clockify API endpoint to get time entries of (grouped by) saved reports?

Asking here, after asking to Clockify support.Trying to extend some of clockify capabilities to create extra reporting for our clients, I’ve been playing with your API and specifically: the enpoint /reports/{reportsId}• My goal:Get all the time entries of a specific "saved report” (usually saved by our Project Managers)• What I EXPECT from "/reports/{reportsId}”:To get all the info and entities (users, time entries, projects, etc.) only regarding that particular reportId• What I GET from "/reports/{reportsId}”:Lots of info regarding the whole w...Read more

How can I fix a 501 error from the clockify API?

I'm getting a 501 response from the clockify API when trying to create a Time Entry using CreateTimeEntryRequestI've verified I can query the API and get data from it, so I'm using the correct X-Api-Key, I've resolved a few issues with bad datetime formats, but I'm still getting the error.URL I'm posting to:https://api.clockify.me/api/workspaces/REMOVED/timeEntries/My POST request header looks like this:{"x-api-key": REMOVED, "Content-Type": "application/json"}The body of the request is (For example):{"start": "2019-01-28T14:53:04Z", "billable"...Read more

clockify - Unable to log time entry using API

I am trying to log a time entry using the Clockify API. When I run the line below in my terminal I get the response that followscurl -H 'content-type':'application/json' -H 'X-Api-Key':'api-key' -X POST https://api.clockify.me/api/workspaces/workspace-id/timeEntries/{"start": "2019-16-01T10:00:00" , "billable": "false" , "description": "Clockify API post" , "end": "2019-16-01T10:30:00"}/curl: (3) [globbing] unmatched brace in column 77curl: (3) Port number ended with ':'curl: (6) Could not resolve host: ,curl: (6) Could not resolve host: billab...Read more

Having trouble with GET method Clockify API

I am currently trying to use Clockify's API and when I input the following line in my terminal:curl -H 'content-type':'application/json' -H 'X-Api-Key':'UserKey' -X GET https://api.clockify.me/api/workspaces/workspaceid/projectsI get the following message: {"timestamp":"2019-01-08T17:24:47.011+0000","status":404,"error":"Not Found","message":"No message available","path":"/workspaces/workspaceid/projects"}...Read more

Clockify API - Restart time entry

I would like to mark the last time entry for a user as the current time entry. In other words, I would like to clear the end field of a given time entry, to indicate that it it not finished yet, it's still running.Is it possible to do that?I tried using the Update time entry on workspace endpoint, like so:curl -H 'Content-Type':'application/json' \ -H 'X-Api-Key':'API_KEY' \ -X PUT https://api.clockify.me/api/workspaces/WORKSPACE_ID/timeEntries/TIME_ENTRY_ID \ -d '{"end":null}'But the response code is 400 with the following response:{"messag...Read more

Clockify Integration (extract time entries for a given period)

I am in the process of building an integration between Clockify and Zoho CRM. Where I have clients and projects and staff defined in Zoho.All the clients and projects are synchronised fine from Zoho to Clockify. But now I have reached a snag with the method of fetching time entries for all users in a given period. Time registered in Clockify needs to be transferred to Zoho, so we can bill the client and register the hours for the staff for the salary run, all done in Zoho CRM.At first I looked at the /workspaces/{workspaceid}/timeEntries/But th...Read more

Error 500 when retrieving Clockify workspaces

When retrieving workspaces using the GET /workspaces/ API endpoint, I’m getting the following error 500:{ "timestamp": "2018-10-18T05:48:29.740+0000", "status": 500, "error": "Internal Server Error", "exception": "java.lang.RuntimeException", "message": "java.lang.NullPointerException", "path": "/workspaces/"}This is the request I'm sending:curl -XGET -H 'X-Api-Key: <snip>' https://api.clockify.me/api/workspaces/I hope this is trivial to resolve....Read more

Clockify API in PBI

Does anyone know how to call the Clockify API in Power Bi?I just cant seem to get it right. I have read through the Clockify API documentation and the I cant transpose the code in Power Bi.let Source = Json.Document(Web.Contents("https://api.clockify.me/api/", [Headers=[Accept="application/json", #"x-api-key"="xxxxxxxxxx"]])), messages = Source[messages]in Source...Read more

clockify - Are the IDs reliable?

I'm starting to work with the Clockify APIs and I'd like to know if the different IDs are reliable or not? As in, is it a really bad idea to keep ther IDs in my database to know what's what or that's something that would work long term for sure? Thank you...Read more

clockify - User status API

I would like to get a list of all the active users using API. When I use :GET /workspace/{workspaceId}/usersI get a list of all the users, I wanted to use their "status" field to filter them out. The problem is all the users have "ACTIVE" status, no matter what their real status is (active or inactive).I suppose it some sort of bug, right? Or is there some other way to get a list of active users?...Read more