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_.
| Operation | Method and path | Scope |
|---|---|---|
list-time-entries | GET /time-entries | time:read |
get-time-entry | GET /time-entries/{entryID} | time:read |
get-time-summary | GET /time/summary | time:read |
get-running-timer | GET /running-timer | time:read |
create-time-entry | POST /time-entries | time:write |
update-time-entry | PATCH /time-entries/{entryID} | time:write |
delete-time-entry | DELETE /time-entries/{entryID} | time:write |
restore-time-entries | POST /time/restore | time:write |
preview-time-bill | POST /time/bill/preview | invoices:write |
bill-time | POST /time/bill | invoices:write |
start-timer | POST /running-timer | time:write |
update-running-timer | PATCH /running-timer | time:write |
stop-timer | POST /running-timer/stop | time:write |
discard-running-timer | DELETE /running-timer | time: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"
}
taskIdis required when creating and must be a task of the workspace (404PROJECT_TASK_NOT_FOUND).projectIdis the task's project.durationMinutesis a whole number from 1 to 1,440 (24 hours); anything else is refused withinvalidTimeEntryDuration.dateis 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).noteis optional, up to 2,000 characters.billabledefaults to the task's ownbillablesetting.sourceismanual, ortimerwhen the entry came from stopping a timer.userIdis the member who logged it.quoteIdis the quote the time is spent under, used to group time. See Quote reference.status,billedMinutes,writtenOffMinutes,writtenOffInvoiceId,invoiceLineIdandinvoiceIddescribe the billing state.invoiceIdis the invoice ofinvoiceLineId(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:
| Parameter | Values | Default |
|---|---|---|
groupBy | none, client, project, quote | none |
status | unbilled, billed, non_billable, all | unbilled |
from, to | inclusive YYYY-MM-DD dates in the workspace time zone | no bounds |
billable | true or false, the entry's billable flag | both |
clientId, projectId, quoteId | only time on that client's projects, on that project or under that quote | all |
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, andminutes(all logged time) split intobillableMinutesandnonBillableMinutes. Billable time is whatever is billed, written off or unbilled, so the two add up tominutes.unbilledMinutes,billedMinutes(the minutes an invoice line bills, on a draft or an issued invoice) andwrittenOffMinutes.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.unratedMinutescounts unbilled time without a rate, which has no amount.- Labels for the grouping:
clientIdandclientName(grouping by client, project or quote),projectIdandprojectName(project or quote), andquoteId,quoteNumberandquoteTitle(quote). Fields that don't apply are left out, exceptquoteId, which isnull. Time under no quote forms one group withquoteId: 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-timerreturns your own timer, or{ "timer": null }when none runs. Elapsed time is the current time minusstartedAt.start-timertakestaskId(the task's project must not be archived), and optionallynoteandbillable. With a timer already running it returns409TIMER_ALREADY_RUNNING, whosedetailsname the running timer (timerId,projectId,taskId,startedAt). SetswitchFromRunningto stop the running timer, save it as an entry and start the new one in one step; the response then also carries that entry asstoppedEntry. If any part fails, nothing changes.update-running-timerchangesnote,billable,taskIdorstartedAt(to correct a late start; not in the future).stop-timersaves the elapsed time as an entry (response201, 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.
stoppedAtis 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
stoppedAtreturns422timerRanTooLong; give the time the work ended. noteandbillablereplace the timer's own when sent.- The entry is priced at the rates in force when it is saved.
discard-running-timerthrows the timer away without saving any time (204).- Stopping, updating or discarding with no running timer returns
404TIMER_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 (
422VALIDATION_FAILED,invalidTimeEntryQuote). An unknown quote is404QUOTE_NOT_FOUND. - When
quoteIdis 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 newquoteId. - A quote made for a client alone (a client-only quote)
belongs to no project, so no entry can refer to it (
422VALIDATION_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:
status | Meaning |
|---|---|
billed | An invoice line bills it (invoiceLineId is set). |
written_off | Billing wrote its time off instead of billing it. |
non_billable | billable is false, and it is neither billed nor written off. |
unbilled | Everything 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:
409TIME_ENTRY_BILLED. An unknown entry is404TIME_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 (
409PROJECT_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 withPATCH /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 (
409PROJECT_TASK_IN_USE), so neither can its project (409PROJECT_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 returns422and names the key. - Write:
metadatais optional on create and on update. On update the pairs are merged per key: a value sets or overwrites the key,nullor""removes it,{}changes nothing, and"metadata": nullremoves every key. On create,nulland""values are ignored. - Billed and written-off time stays metadata-writable: a request that changes only
metadatais accepted whereTIME_ENTRY_BILLEDorTIME_ENTRY_WRITTEN_OFFwould refuse any other change. The entry's time, rate and billing do not change. - Totals:
totalMinutesandbillableMinutesoflist-time-entriescover the filtered entries. A timer stopped into an entry starts without metadata. - Filter:
list-time-entriestakes an exact-match filter writtenmetadata[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 atimeEntriesarray with amounts in the workspace's minor unit, and the archive hastime-entries.csv. Exports name no member, so entries carry nouserId. Each entry also carriesbilledMinutes,writtenOffMinutes,writtenOffInvoiceIdandquoteId(additive fields of format version 1). Each record indata.jsoncarries itsmetadataobject (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
| Status | Code | Meaning |
|---|---|---|
402 | PLAN_FEATURE_REQUIRED | The plan does not include business tools. |
403 | FORBIDDEN | The role can't log time, or the entry belongs to another member and the caller isn't an owner or admin. |
404 | TIME_ENTRY_NOT_FOUND | No such time entry in this workspace. |
404 | TIMER_NOT_RUNNING | The caller has no running timer. |
404 | PROJECT_TASK_NOT_FOUND | The task isn't in this workspace. |
409 | WORKSPACE_NOT_BUSINESS | The workspace is personal. |
409 | TIMER_ALREADY_RUNNING | The caller already has a running timer. details name it. |
409 | PROJECT_ARCHIVED | The task's project is archived. |
404 | QUOTE_NOT_FOUND | The quoteId isn't a quote of this workspace. |
409 | TIME_ENTRY_BILLED | An invoice bills the entry, so it can't be edited, deleted or restored. details.timeEntryId names it and details.invoiceId the invoice. |
422 | TIME_ENTRIES_MULTIPLE_PROJECTS | A bill or preview names entries of more than one project. Billing time works per project; details.projectIds lists them. |
409 | TIME_ENTRY_WRITTEN_OFF | Billing 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. |
422 | VALIDATION_FAILED | A 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. |