Skip to main content

What Can You Build With a Time Tracking API?

A time tracking API lets your own tools read and write hours. Here are practical uses, from dashboards to invoicing handoffs, and when the work is not worth it.

← Back to Blog
5 min read · by Tracking Tabs

A time tracking API lets your own scripts and tools create, read and update time entries, projects and reports. Common uses are dashboards, nightly exports, starting timers from other tools, feeding invoices or accounting sheets, and alerts. It pays off only if you have a repeated manual step to remove.

Most people who track time never touch an API. The app does what they need, and that is fine. An API becomes interesting at one particular moment: when you notice that you are doing the same manual thing with your hours every week, and the thing is dull enough that a script could do it.

This post is a list of those things, with a view on which ones are worth the effort. It stays general about how requests are made, since the app's own settings are the right place to check specifics such as tokens.

What does an API give you?

Access to the same data you see in the app, from your own code. You can read time entries, projects and clients, create and edit entries, start and stop timers and pull report totals. In Tracking Tabs, the REST API is available from the Solo plan up and uses personal access tokens, which are stored hashed and can be revoked. Because it works with the data you already have, the question is less "what can the API do" than "what do I keep doing by hand."

Which uses are practical?

Here are the ones that tend to justify themselves.

  • A custom dashboard. Pull hours by client and by week into a page, spreadsheet or internal wiki your team already looks at, so nobody has to log into a separate tool for the number.
  • A nightly or weekly export. Copy the week's entries into a spreadsheet, a database or a file store for your own records. Built-in CSV, Excel and PDF exports exist for one-off needs, and the API is for when you want it unattended.
  • Starting timers from elsewhere. A command-line helper, a chat command or a script tied to opening a ticket can start a timer with the right project, so the habit costs one keystroke less.
  • Feeding another system. Hours by client for a month can flow to your invoicing process, a client portal you built, or your own accounting spreadsheet. Tracking Tabs makes invoices from tracked time itself, so this is for cases where your process is different. Note that it does not connect to accounting software out of the box.
  • Alerts you define. A script that checks a project's hours each morning and tells you in chat when it passes a figure you set. The product does not have budgets or alerts built in, so this fills a gap you may care about.
  • Cleanup jobs. Renaming a tag across hundreds of entries or moving a client's work between projects is slow in a screen and quick in a script.

None of these is large. Most are an afternoon of work, and that is the right scale. Time tracking automation tends to go wrong when it grows into a system nobody owns.

When do webhooks fit better?

When you want to react to a change and not poll for it. On Team and above, Tracking Tabs can send a webhook when an entry is created, updated or deleted. Requests are signed with HMAC-SHA256, failed deliveries are retried up to six times, and there is a test button that sends a sample delivery. A webhook suits things like posting a note in chat when a long entry is saved, or mirroring entries into a database as they happen. There is more in how webhooks for time entries work. The practical rule is to verify the signature before you trust a delivery, and to make your receiver safe to run twice, since retries mean the same event can arrive more than once.

Where do AI assistants come in?

An API is one way in. Another is the MCP server that Tracking Tabs includes, with twelve tools covering timers, entries, projects, clients, reports and invoices. It works with Claude Desktop, Cursor and Cline and runs locally with your token. That lets you ask an assistant to start a timer or summarize last week without writing code. Tracking time with an AI assistant covers it in more detail.

Which pitfalls should you plan for?

Four things.

Tokens. A token can do what you can do. Give each script its own, store it as a secret and revoke it when the script is retired. Someone leaving the team should not leave live tokens behind.

Ownership. A script that nobody understands is a liability. Put it somewhere shared, write three lines on what it does and name a person who maintains it.

Duplicates. If your script creates entries, make sure running it twice does not create them twice. Overlapping entries are rejected, which helps, but do not rely on that as your only guard.

Privacy and law. Hours data names clients and people. If you copy it into other systems, keep the same care with access that you would in the app, and check any retention duties with a professional.

How do you build the first one safely?

Start with a read-only script. Pull last week's entries and print a total by client, then compare it with the same report in the app. If the two agree, you understand the data and your token works. Only then add anything that writes. A script that creates or edits entries should run against a small date range first, and you should keep a copy of the full workspace backup before the first real run. Tracking Tabs can export a workspace backup as a ZIP of CSV files, which is a cheap safety net.

Log what the script does. A line per entry created or changed, with the time it ran, makes a bad run easy to undo by hand. And keep it boring: one job per script, no clever branching. Automation that fails loudly in one place is far easier to live with than a clever tool that fails quietly in five.

Is it worth it?

Ask how often the manual step happens and how long it takes. If you spend ten minutes a week on it, a script that takes four hours to write pays back within a year, with some maintenance on the side. If it happens monthly and takes five minutes, copy and paste is fine. Start with the built-in reports and exports, see what is left over, and automate only that. The features page lists what the app already does, and it is longer than people expect. When the leftover is real and you hit it every week, an API call is the right tool for it.

Common questions

Do I need to be a developer to use an API?
Mostly yes, or at least comfortable with scripts. An API is a set of web requests your own code sends. If nobody on your team writes code, a built-in export, a webhook connected to an automation service or the app's own reports may do the job.
Which Tracking Tabs plans include the REST API?
Solo and above, which means Solo, Team and Business. You authenticate with a personal access token, which is stored hashed and can be revoked. Webhooks need Team or above.
What is the difference between an API and a webhook?
With an API, your code asks Tracking Tabs for something or tells it to do something. With a webhook, Tracking Tabs tells your code when an entry is created, updated or deleted. Many setups use both: webhooks for news, the API for lookups and changes.
Is it safe to put an API token in a script?
Treat a token like a password. Keep it in an environment variable or a secrets store, never in a public repository, and revoke it if you think it leaked. Use a separate token per script so you can cut one off without breaking the rest.
Can an AI assistant use my time data?
Tracking Tabs includes an MCP server with twelve tools for timers, entries, projects, clients, reports and invoices. It works with Claude Desktop, Cursor and Cline and runs locally with your token.
Share this article