Hi all! I’m attempting to get my time entries via the Toggl API so I can do some reporting that Toggl currently doesn’t support (specifically, grouping my time entries by Day → Project → Task → time total and notes).
I’ve never used the Toggl API but am pretty familiar with APIs in general.
Reproduction Steps:
- Generated API token
- Imported the Swagger file into Postman
- Set up basic auth with the API token
- Made a request to the “me” endpoint to validate that auth is working correctly
Then, I figured I’d make a request to me/time_entries
.
- I inherit auth in Postman so that I’m using the same successful auth from earlier, and I see that reflected to me in the Postman UI.
- The documentation provides two options: since/before, which seem to use unix epochs, and start_date/end_date, which use RFC3339.
- I try the request two ways:
- with a
since
of1746835200000
and abefore
of1747439999000
- with a
start_date
of2025-05-10T00:00:00-04:00
and anend_date
of2025-05-17T00:00:00-04:00
- with a
Expected behavior: See a list of time entries
Actual behavior: In these situations, I receive back a 400 response with an HTML page that has a heading that says “Error: Bad Request” and text that says “Your client has issued a malformed or illegal request”.
Postman console log below (sensitive parts redacted) – can someone see what I’m missing?
Log for request using start_date / end_date:
Request Headers
Content-Type: application/x-www-form-urlencoded
Accept: application/json
Authorization: Basic [REDACTED]
User-Agent: PostmanRuntime/7.43.4
Postman-Token: [REDACTED]
Host: api.track.toggl.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 83
Request Body
start_date: "2025-05-10T00:00:00-04:00"
end_date: "2025-05-17T00:00:00-04:00"
And with since/before:
Content-Type: application/x-www-form-urlencoded
Accept: application/json
Authorization: Basic [REDACTED]
User-Agent: PostmanRuntime/7.43.4
Postman-Token: [REDACTED]
Host: api.track.toggl.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 40
Request Body
since: "1746835200000"
before: "1747439999000"