Skip to main content

Time entries and timer

A time entry is time a member logged against a project task. An invoice bills for entries. A member can also run a timer: it is stored on the server with its start time, so it survives closing the app and shows the same on every device, and stopping it turns it into a time entry. Time exists only in business workspaces: every operation below returns 409 WORKSPACE_NOT_BUSINESS in a personal workspace. It is part of the Solo Business plan.

All paths are under /v1/workspaces/{workspaceID}. Time entry IDs start with tent_, running timer IDs with rtm_.

OperationMethod and pathScope
list-time-entriesGET /time-entriestime:read
get-time-entryGET /time-entries/{entryID}time:read
get-time-summaryGET /time/summarytime:read
get-running-timerGET /running-timertime:read
create-time-entryPOST /time-entriestime:write
update-time-entryPATCH /time-entries/{entryID}time:write
delete-time-entryDELETE /time-entries/{entryID}time:write
restore-time-entriesPOST /time/restoretime:write
preview-time-billPOST /time/bill/previewinvoices:write
bill-timePOST /time/billinvoices:write
start-timerPOST /running-timertime:write
update-running-timerPATCH /running-timertime:write
stop-timerPOST /running-timer/stoptime:write
discard-running-timerDELETE /running-timertime:write

The time:write scope is not offered to connected apps (OAuth or MCP clients), even with read and write access; time:read is. See Scopes.

Logging time needs the role editor, admin or owner; viewers can read everyone's time. Editors can change and delete only the entries they logged; owners and admins can change anyone's (403 otherwise).

The time entry object​

{
"id": "tent_...",
"projectId": "prj_...",
"taskId": "ptsk_...",
"userId": "usr_...",
"date": "2026-11-02",
"durationMinutes": 90,
"note": "Wireframes",
"metadata": { "external_id": "ABC-123" },
"billable": true,
"rate": { "minor": 10000, "display": "$100.00" },
"amount": { "minor": 15000, "display": "$150.00" },
"source": "manual",
"quoteId": "quo_...",
"writtenOffMinutes": 0,
"status": "unbilled",
"createdAt": "2026-11-02T10:00:00Z",
"updatedAt": "2026-11-02T10:00:00Z"
}
  • taskId is required when creating and must be a task of the workspace (404 PROJECT_TASK_NOT_FOUND). projectId is the task's project.
  • durationMinutes is a whole number from 1 to 1,440 (24 hours); anything else is refused with invalidTimeEntryDuration.
  • date is the day the work happened, YYYY-MM-DD. It defaults to today in the workspace's time zone and can't be later than that (invalidTimeEntryDate).
  • note is optional, up to 2,000 characters.
  • billable defaults to the task's own billable setting.
  • source is manual, or timer when the entry came from stopping a timer.
  • userId is the member who logged it.
  • quoteId is the quote the time is spent under, used to group time. See Quote reference.
  • status, billedMinutes, writtenOffMinutes, writtenOffInvoiceId, invoiceLineId and invoiceId describe the billing state. invoiceId is the invoice of invoiceLineId (inv_...); both are absent unless an invoice bills the entry. Reads (list-time-entries, get-time-entry) fill it in, so a client can link a billed entry to its invoice without a write. See Billed and written-off time.

Rate snapshot and amount​

The hourly rate is saved with the entry when it is created: the task's own price if it is an hourly task with one, otherwise the project's defaultRate. An entry has no rate when it isn't billable, when its task is priced fixed, or when neither the task nor the project has a rate. Changing a task's or project's rate later never reprices entries already logged.

An entry is priced again, at the rates in force then, only when you move it to another task (taskId on update-time-entry) or change billable. Editing the note, date or duration keeps the saved rate.

amount is the duration at the rate (minutes × rate ÷ 60), rounded half-up, and is absent when there is no rate. Money is sent and returned like every other amount in the API: responses carry { minor, display } in the workspace's minor unit, and amounts are stored with four decimal places internally. An entry whose amount would pass the largest storable amount is refused (timeEntryAmountOutOfRange).

Listing​

list-time-entries takes projectId, taskId, userId, from and to (inclusive YYYY-MM-DD dates), billable (true or false), billed (true for time an invoice bills, false for time none does), status (unbilled, billed, written_off, non_billable or unbillable, see below), quoteId (a quote ID, or none for time under no quote), clientId (time on that client's projects), page and pageSize (default 100, max 1000). It returns { entries, total, page, pageSize, totalMinutes, billableMinutes }, newest day first. The two totals cover every entry that matches the filter, not just the page.

unbillable is a list filter only: not-billed time that is either not billable or written off, which is what the summary calls non_billable. An entry's own status is never unbillable.

Summary​

get-time-summary (GET /time/summary) groups time by client, project or quote and splits each group's minutes by billing state. It takes:

ParameterValuesDefault
groupBynone, client, project, quotenone
statusunbilled, billed, non_billable, allunbilled
from, toinclusive YYYY-MM-DD dates in the workspace time zoneno bounds
billabletrue or false, the entry's billable flagboth
clientId, projectId, quoteIdonly time on that client's projects, on that project or under that quoteall

status here is coarser than the entry status: unbilled is billable time nothing bills or writes off, billed is time an invoice line bills, and non_billable is time that no invoice bills and that is either flagged non-billable or written off. A malformed or inverted date range, or an unknown value, is 422.

The response is { groupBy, status, totals, groups }. groups is ordered by unbilled amount, then minutes, largest first; none always returns exactly one group. totals covers all matching time. Each group (and totals) has:

  • entryCount, and minutes (all logged time) split into billableMinutes and nonBillableMinutes. Billable time is whatever is billed, written off or unbilled, so the two add up to minutes.
  • unbilledMinutes, billedMinutes (the minutes an invoice line bills, on a draft or an issued invoice) and writtenOffMinutes.
  • unbilledAmount, a money object: the unbilled minutes at their entries' hourly rates, priced once per rate and group (rounded half-up) the way billing them would. unratedMinutes counts unbilled time without a rate, which has no amount.
  • Labels for the grouping: clientId and clientName (grouping by client, project or quote), projectId and projectName (project or quote), and quoteId, quoteNumber and quoteTitle (quote). Fields that don't apply are left out, except quoteId, which is null. Time under no quote forms one group with quoteId: null (and no project, as it spans projects).

The summary is read-only, stays available after a downgrade and returns 409 WORKSPACE_NOT_BUSINESS in a personal workspace.

On update-time-entry, fields left out are unchanged.

The timer​

Each member has at most one running timer per workspace. The database enforces it, so two concurrent starts can never both succeed.

{
"timer": {
"id": "rtm_...",
"projectId": "prj_...",
"taskId": "ptsk_...",
"startedAt": "2026-11-12T09:00:00Z",
"note": "",
"billable": true
}
}
  • get-running-timer returns your own timer, or { "timer": null } when none runs. Elapsed time is the current time minus startedAt.
  • start-timer takes taskId (the task's project must not be archived), and optionally note and billable. With a timer already running it returns 409 TIMER_ALREADY_RUNNING, whose details name the running timer (timerId, projectId, taskId, startedAt). Set switchFromRunning to stop the running timer, save it as an entry and start the new one in one step; the response then also carries that entry as stoppedEntry. If any part fails, nothing changes.
  • update-running-timer changes note, billable, taskId or startedAt (to correct a late start; not in the future).
  • stop-timer saves the elapsed time as an entry (response 201, the time entry object) and removes the timer.
    • The duration is the elapsed time rounded to the nearest minute, at least 1.
    • The entry is dated by the day the timer started, in the workspace time zone, even if it ran past midnight.
    • stoppedAt is optional (default now): use it when the work ended earlier. It must be after the start and not in the future (timerStopTimeInvalid).
    • A timer that ran for more than 24 hours can't be saved as one entry. Stopping it without stoppedAt returns 422 timerRanTooLong; give the time the work ended.
    • note and billable replace the timer's own when sent.
    • The entry is priced at the rates in force when it is saved.
  • discard-running-timer throws the timer away without saving any time (204).
  • Stopping, updating or discarding with no running timer returns 404 TIMER_NOT_RUNNING.

Quote reference​

An entry can name the quote the time was spent under, with quoteId on create-time-entry and update-time-entry. The reference only groups time; it never changes what an invoice bills.

  • The quote must belong to the task's project and must not be declined or replaced (422 VALIDATION_FAILED, invalidTimeEntryQuote). An unknown quote is 404 QUOTE_NOT_FOUND.
  • When quoteId is left out on create (and when a timer is stopped), the entry gets the project's only accepted quote. With no accepted quote, or several, it gets none. Send "quoteId": "" to log time with no quote.
  • On update, "quoteId": "" clears the reference. Moving an entry to a task of another project clears a quote that doesn't belong to that project, unless you send a new quoteId.
  • A quote made for a client alone (a client-only quote) belongs to no project, so no entry can refer to it (422 VALIDATION_FAILED) and it is never a project's default quote, until it is linked to a project.
  • Deleting a draft quote clears the reference on its entries. Revising a quote (create-quote-version) moves its unbilled and written-off entries to the new version; billed entries keep the version they were billed under.

Billed and written-off time​

Every entry has a derived status:

statusMeaning
billedAn invoice line bills it (invoiceLineId is set).
written_offBilling wrote its time off instead of billing it.
non_billablebillable is false, and it is neither billed nor written off.
unbilledEverything else: billable time nothing bills or writes off yet.

An entry is never split. When it is billed, billedMinutes says how many of its minutes the invoice line bills (1 up to durationMinutes) and writtenOffMinutes the rest, so the two always add up to durationMinutes. A written-off entry has no line, writtenOffMinutes equals durationMinutes, and writtenOffInvoiceId names the invoice whose billing wrote it off. POST /v1/workspaces/{ws}/invoices/{id}/lines/from-time bills entries in full (billedMinutes = durationMinutes); POST /time/bill bills any part of each entry and writes the rest of a billable entry off, one project at a time. See Bill time with a preview.

Locks. A billed entry can't be edited or deleted (409 TIME_ENTRY_BILLED). A written-off entry can't have its hours, rate (billable, taskId) changed until it is restored (409 TIME_ENTRY_WRITTEN_OFF); its note, date and quote can still change. Both errors carry details.timeEntryId and details.invoiceId, so a client can link to the invoice.

Release. Deleting an invoice line frees the entries it bills: the line, the billed minutes and the write-off made with them are cleared. Deleting a draft invoice, or voiding an issued one, frees everything it billed and restores everything it wrote off, so time comes back as unbilled (written-off time becomes billable again).

Restore written-off time​

restore-time-entries (POST /time/restore) takes { "timeEntryIds": [...] } (1 to 500 entries) and returns { "entries": [...] }. It clears the write-off and sets billable to true, pricing the entry again at the current rate when that makes it billable, so the time returns to unbilled. It needs the time:write scope and the write role.

  • An entry nothing wrote off is returned unchanged, so repeating a restore, or racing another one, is safe.
  • Time an invoice bills can't be restored: 409 TIME_ENTRY_BILLED. An unknown entry is 404 TIME_ENTRY_NOT_FOUND. Entries are restored all together or not at all.

Archived projects, deleting​

  • Entries can't be created, changed or deleted, and timers can't start or be stopped, while the task's project is archived (409 PROJECT_ARCHIVED). Reading stays open, and a timer stuck on an archived project can still be discarded. To keep the time, move the timer to a task in an active project with PATCH /running-timer, then stop it.
  • A member's running timer is discarded when they leave the workspace, are removed from it, hand over its ownership, or delete their account.
  • A task with logged time or a running timer can't be deleted (409 PROJECT_TASK_IN_USE), so neither can its project (409 PROJECT_IN_USE). Delete the entries (or discard the timer) first, or archive the project. Logged time doesn't freeze a project's short code.

Metadata​

A time entry carries your own key/value pairs in a metadata object, always present and {} when empty, for an external ID or any other reference from your own systems. It is internal: it is never printed on a document, snapshot, share link or email. The rules are the same for every record and are described once under Metadata.

  • Limits: at most 50 keys. A key is 1 to 40 characters from A-Z a-z 0-9 _ . -, a value 1 to 500 characters. A request that breaks a limit returns 422 and names the key.
  • Write: metadata is optional on create and on update. On update the pairs are merged per key: a value sets or overwrites the key, null or "" removes it, {} changes nothing, and "metadata": null removes every key. On create, null and "" values are ignored.
  • Billed and written-off time stays metadata-writable: a request that changes only metadata is accepted where TIME_ENTRY_BILLED or TIME_ENTRY_WRITTEN_OFF would refuse any other change. The entry's time, rate and billing do not change.
  • Totals: totalMinutes and billableMinutes of list-time-entries cover the filtered entries. A timer stopped into an entry starts without metadata.
  • Filter: list-time-entries takes an exact-match filter written metadata[key]=value. Several keys are AND-ed (at most 10), and it combines with the other filters:
GET /v1/workspaces/{workspaceID}/time-entries?metadata[external_id]=ABC-123
  • Access: the same scopes, role rules and plan feature as the rest of the record. No new scope.

Plan and downgrades​

Changing time needs a plan that includes business tools (Solo Business): the write operations return 402 PLAN_FEATURE_REQUIRED otherwise. Reading stays possible after a downgrade, so existing time is never hidden. While an account is over another plan limit it is read-only (423 plan_limits_exceeded) and time changes are refused too.

Backup, export and clone​

  • Time entries are part of workspace backups; a backup that holds them can only be restored into a business workspace, and restored entries get new IDs and keep their task, project, date, duration, rate snapshot, author, billed and written-off minutes and quote reference. A running timer is transient and is not part of a backup.
  • The data export (data.json) has a timeEntries array with amounts in the workspace's minor unit, and the archive has time-entries.csv. Exports name no member, so entries carry no userId. Each entry also carries billedMinutes, writtenOffMinutes, writtenOffInvoiceId and quoteId (additive fields of format version 1). Each record in data.json carries its metadata object (always present, {} when empty; an additive field of format version 1). Backups and clones carry metadata too.
  • Cloning a business workspace copies its time entries, linked to the clone's own projects and tasks. The clone starts with no timer running.

Events​

Each change publishes an event in the same transaction: time_entry.created (also when a timer is stopped), time_entry.updated (with changes for task_id, date, duration_minutes and billable), time_entry.deleted, running_timer.started, running_timer.updated, running_timer.stopped and running_timer.discarded. They carry identifiers, dates, durations, the billable flag and, for time entries, metadata, and no notes or rates. They are public webhook events: subscribe to them (or to time_entry.* and running_timer.*) on a webhook endpoint (see Webhook events), and read the time_entry.* events from event history and the event stream. Running timers are private to the member who started them, so running_timer.* events are delivered to webhooks but never appear in event history or the event stream. Reading them needs the time:read scope in addition to events:read (event history and stream) or webhooks:read (the event catalog).

Errors​

StatusCodeMeaning
402PLAN_FEATURE_REQUIREDThe plan does not include business tools.
403FORBIDDENThe role can't log time, or the entry belongs to another member and the caller isn't an owner or admin.
404TIME_ENTRY_NOT_FOUNDNo such time entry in this workspace.
404TIMER_NOT_RUNNINGThe caller has no running timer.
404PROJECT_TASK_NOT_FOUNDThe task isn't in this workspace.
409WORKSPACE_NOT_BUSINESSThe workspace is personal.
409TIMER_ALREADY_RUNNINGThe caller already has a running timer. details name it.
409PROJECT_ARCHIVEDThe task's project is archived.
404QUOTE_NOT_FOUNDThe quoteId isn't a quote of this workspace.
409TIME_ENTRY_BILLEDAn invoice bills the entry, so it can't be edited, deleted or restored. details.timeEntryId names it and details.invoiceId the invoice.
422TIME_ENTRIES_MULTIPLE_PROJECTSA bill or preview names entries of more than one project. Billing time works per project; details.projectIds lists them.
409TIME_ENTRY_WRITTEN_OFFBilling wrote the entry's time off, so its hours and rate can't change until it is restored. details.timeEntryId and details.invoiceId name it and the invoice.
422VALIDATION_FAILEDA duration, date, note, start or stop time is out of range, the quote isn't in the task's project or is declined or replaced, or a timer ran more than 24 hours without stoppedAt.