Metanow Docs
API & IntegrationReference

Timesheets API

Time logged against a project — or against a record that is not one.

Base path: /timesheets. Reads gate on two-segment timesheets:read and row-filter to the caller's own entries unless they hold timesheets:read:all. Single-entry mutations are own-only for members on the same rule.

MethodPathPermissionTool
POST/timer/starttimesheets:create:selfstart_timer
POST/:id/stoptimesheets:update:selfstop_timer
GET/timer/activetimesheets:readget_active_timer
POST/timesheets:create:selflog_time
GET/timesheets:readlist_timesheets
GET/summarytimesheets:readtimesheet_summary
GET/gridtimesheets:read—
POST/grid/celltimesheets:update:selfset_timesheet_cell
GET/ratestimesheets:approve:all—
PUT/rates/:userIdtimesheets:approve:all—
POST/invoicetimesheets:approve:all—
GET/:idtimesheets:readget_timesheet
GET/:id/logstimesheets:readtimesheet_logs
PATCH/:idtimesheets:update:selfupdate_time_entry
DELETE/:idtimesheets:delete:selfdelete_time_entry
POST/:id/submittimesheets:update:selfsubmit_timesheet
POST/:id/approvetimesheets:approve:allapprove_timesheet
POST/:id/rejecttimesheets:approve:allreject_timesheet

What an entry is for

An entry is project work or anchored to another record, never both and never neither. POST / takes either project_id, or res_model + res_id where res_model is one of helpdesk.ticket or crm.lead. Anything else is refused by name rather than ignored.

An anchored entry can never be billable: no sale order line, no billing rate, no billing amount, is_billable: false. Billing flows from the project, so there is no path from an entry without one to an invoice. Cost still accrues — what the org pays the worker is true either way.

Money on the wire

Rates are millicents per hour (cost_rate_millicents, billing_rate_millicents) — thousandths of a minor unit, because a cost rate is salary ÷ working hours and is almost never a whole cent. Amounts are minor units (cost_amount_cents, billing_amount_cents) and are stored, not derived: the ledger post, the project rollup and the invoice line read the same number. null means "no rate", which is not the same fact as zero, and an amount never travels without its currency.

Retries

log_time and start_timer accept external_key. A second call with the same key returns the entry the first one made rather than booking the hours twice. The by-id transitions (submit, approve, reject, stop, update, delete) do not take one: they mutate a single identified row and cannot duplicate anything.

start_timer answers 409 when a different timer is already running — one per user — and a replay of the same key returns that timer instead.

Billing approved time

POST /invoice drafts invoices from approved, billable, un-invoiced hours in a date window. It is not agent-exposed, including its dry run: an agent that can enumerate what a customer would be billed is a disclosure surface.

Entries are grouped by (customer, currency). Anything that cannot be billed is reported, not dropped — skipped carries a reason per group: billed_by_sales (the entry has a sale order line, so Sales bills it through delivered quantity), no_contact, ambiguous_contact (the project matches more than one customer — refused rather than guessed), no_rate, no_currency, no_tax_rate. dry_run: true computes the same grouping and writes nothing.

On this page