API detailed report returns status 401


I’ve just tried to use the endpoint for detailed reports (https://developer.clockify.me/report/v1/workspaces/{workspaceId}/reports/detailed) with my addon token, dateRangeEnd, and dateRangeStart, but it returns 401 Unauthorized.

Here is the redacted fetch that I used for clarity:

const res = await fetch(
                method: "POST",
                headers: {
                    "X-Addon-Token": token,
                    "Content-Type": "application/json",
                body: JSON.stringify({
                    dateRangeEnd: date?.to,
                    dateRangeStart: date?.from,

Is there anything I’ve missed here?

Hi mittlus,

We’ve checked and it should work. Could you send me the token or just the whole fetch you used in the DM and we’ll take a look of what might be the problem.

Thank you

Thanks for the quick reply! Looking forward to it!

It should work now. We’re investigating why this happened.

Thank you very much for resolving this so quickly! It does work now, I just had to add a detailedFilter to my body.