Skip to content
Main navigation
All integrations

curl

How it works:Try every request on the command line before it goes into a button or an automation.

With curl you can try every request on the command line before you put it into a button or an automation. All answers are JSON; the API documentation describes the fields.

Put the token into the environment once:

Example (bash)
export HORAKA_TOKEN='YOUR_TOKEN'

Start the timer, with an Idempotency-Key against double starts:

Example (bash)
curl -X POST https://api.horaka.com/v1/track/start \
  -H "Authorization: Bearer $HORAKA_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"project": "PROJECT", "activity": "ACTIVITY"}'

Toggle, switch and stop:

Example (bash)
curl -X POST https://api.horaka.com/v1/track/toggle -H "Authorization: Bearer $HORAKA_TOKEN" -H "Content-Type: application/json" -d '{"project": "PROJECT"}'
curl -X POST https://api.horaka.com/v1/track/switch -H "Authorization: Bearer $HORAKA_TOKEN" -H "Content-Type: application/json" -d '{"project": "PROJECT"}'
curl -X POST https://api.horaka.com/v1/track/stop -H "Authorization: Bearer $HORAKA_TOKEN"

Status as a sentence and as JSON:

Example (bash)
curl "https://api.horaka.com/v1/track/status?format=text" -H "Authorization: Bearer $HORAKA_TOKEN"
curl https://api.horaka.com/v1/timer -H "Authorization: Bearer $HORAKA_TOKEN"

Win back the hours you give away.

Get started in a minute. 14 days of Premium free and without a card, then carry on with Free at no cost or from €4.90 a month with everything for billing.