Get the time that I spent on the project

Hi! Trying to get the time I spent on the project in the last 7 days. I do it like this:

POST https://reports.api.clockify.me/v1/workspaces/#Workspace ID#/reports/summary

{
    "dateRangeEnd": "2020-09-13T23:59:59.000Z",
    "dateRangeStart": "2020-09-07T00:00:00.000Z",
    "amountShown": "HIDE_AMOUNT",
    "summaryFilter": {
        "groups": [
            "USER",
            "PROJECT",
            "TIMEENTRY"
        ]
    },
    "users": {
        "ids": [
            "#MY USER ID#"
        ]
    },
    "projects": {
        "_id": [
            "#project id#"
        ]
    }
}

But all I get is

{
    "totals": [
        null
    ],
    "groupOne": []
}

What am I doing wrong?

Hi Nikita! Are you sure that you have any time tracked on this project in the past 7 days? Does the web show any results when you use the same filters?

1 Like

Oh, my mistake. I used “_id” instead of “ids”.