Start the timer in toggl via HTTP Request Node (curl)


I’m trying to start the timer via HTTP Request Node (curl) :

curl -v -u 40784:api_token \ -H "Content-Type: application/json" \ -d '{"time_entry":{"description":"Tasks2","tags":["tag1"],"pid":176726344,"created_with":"curl"}}' \ -X POST

It is written in the documentation:

I get an error: “ERROR: The data in “Body Parameters” is no valid JSON. Set Body Content Type to “RAW/Custom” for XML or other types of payloads”

Information on your n8n setup

  • n8n version: 0.183.0
  • Database you’re using: SQLite
  • Running n8n via: Docker

Where is the mistake?

Thank you very much!

Hey @Mikhail,

Looking at the screenshot in the Body Parameters you are sending the entire CURL command which is why it is failing. Instead of doing that try just sending the part below and seeing if that works.

1 Like

@Jon Thank you for the quick response!


Maybe it’s an access problem ( Authentication ) ?

Yes authentication should be the problem. You need to provide Basic Auth Credentials like this:


Hey @Mikhail,

That could be it the Toggl docs says it will return a 403 if auth fails, In the HTTP Request node set the Authentication to Basic auth and input your credentials and you should be good to go.

1 Like

Yes, it worked! :+1: :smiley:

@marcus @Jon Thank you very much!

1 Like