REST API
Use your clients, tasks, timers and tracked time from scripts and from tools like Zapier, n8n or a cron job with curl. Everything the AI assistant can do also works over plain HTTP.
What you need
Section titled “What you need”An account on the Plus plan and an API key. All addresses start with https://api.knorky.com/api/v1. The key works only here, not for MCP.
1. Create an API key
Section titled “1. Create an API key”- In the app, open Settings → Account → API keys.
- Give the key a name you will recognise, such as “Zapier”.
- Pick how long it lasts: 30 days, 90 days (the default), 1 year or never.
- Create it and copy it. The key is shown once; after that, the list only shows its first characters.
Revoking a key in the same list stops scripts using it at once. An account can have 25 keys.
2. Make your first request
Section titled “2. Make your first request”Keep the key in a variable, then send it with every request:
export KNORKY_API_KEY="kny_..."curl -H "Authorization: Bearer $KNORKY_API_KEY" \ "https://api.knorky.com/api/v1/clients"The answer is JSON, here your clients:
[ { "id": "c1", "name": "Acme", "archived": false }]3. Track time
Section titled “3. Track time”Find the task, and take its id from the answer:
curl -H "Authorization: Bearer $KNORKY_API_KEY" \ "https://api.knorky.com/api/v1/tasks?search=invoice"Start its timer:
curl -H "Authorization: Bearer $KNORKY_API_KEY" -H "Content-Type: application/json" \ -d '{"task_id":"<task_id>"}' \ "https://api.knorky.com/api/v1/timers"Stop it when the work is done:
curl -X POST -H "Authorization: Bearer $KNORKY_API_KEY" \ "https://api.knorky.com/api/v1/timers/<task_id>/stop"By default, other running timers keep running and the time is split evenly between them. Send "mode":"only" to stop the others instead.
The timer shows in every app as running, marked “Started through the API”, and it keeps counting while no app is open. A task’s change history says “API” for what a key changed.
Add forgotten time and get a report
Section titled “Add forgotten time and get a report”curl -H "Authorization: Bearer $KNORKY_API_KEY" -H "Content-Type: application/json" \ -d '{"task_id":"<task_id>","start":"2026-11-05T09:00","duration_minutes":90,"timezone":"Europe/Berlin"}' \ "https://api.knorky.com/api/v1/entries"
curl -H "Authorization: Bearer $KNORKY_API_KEY" \ "https://api.knorky.com/api/v1/reports/totals?from_date=2026-11-01&to_date=2026-11-30&timezone=Europe/Berlin&group_by=client"Every other call, with all its fields, is in the API reference.
Requests and answers
Section titled “Requests and answers”GETtakes its arguments in the address, everything else as a JSON body. An id in the path goes only there.- Times are ISO 8601. Durations come in minutes and as
h:mm. - Money is in cents of the client’s currency.
- Calls about days take your IANA time zone, such as
Europe/Berlin. - A success is status
200with JSON.
Errors
Section titled “Errors”A failure has one of these statuses and a sentence that says what went wrong:
{ "error": "invalid API key"}| Status | Means |
|---|---|
400 |
The arguments are malformed, or a parameter is unknown; the message names it. |
401 |
No key, a wrong or revoked one, or an expired one. |
402 |
Your plan does not include the API, or a plan limit refused the change. |
404 |
No such id in your account. Another user’s ids look the same. |
422 |
The operation refused the arguments, and says why. |
429 |
Too many requests: slow down. |
500 |
The server failed; try again. |
Limits
Section titled “Limits”- 10 requests a second per account, with bursts up to 60, shared with the AI assistant.
- A request body can be up to 4 MiB, and a request can take up to 30 seconds.
OpenAPI description
Section titled “OpenAPI description”The full description is an OpenAPI 3.1 document, readable without a key. Import it into Postman, Insomnia or an AI tool that reads OpenAPI. It gives its address as /api/v1, so set https://api.knorky.com/api/v1 as the base address after importing.
What it cannot do yet
Section titled “What it cannot do yet”Clients and projects can be listed but not created or changed, and a task’s notes can only be set when it is created: after that, only the app shows them. Tags are not in the API. Answers include the estimate (estimate_minutes) and the parent task (parent_id) from the app; neither can be set through the API. There are no read-only keys yet.
A task either holds time or is a to-do, a checklist item with no time (task_type: timed or todo). You set this when you create it (without it, the project’s kind applies), and it never changes after that. Any task can have a due date (due_date): a day written YYYY-MM-DD in your own calendar, with no time of day. GET /tasks?due_by=<today> answers what is overdue or due today.