Skip to content

Docs / API objects

Time entries

List, create, change and delete time entries, and start and stop timers.

View as Markdown

List time entries

GET/api/v2/time_entries
Scope
reports:read

Differs from Harvest

  • A member reads their own entries, a manager also the entries on projects they manage, an owner or admin the whole workspace's entries.
  • A running timer is listed as an entry with is_running true.
  • is_billed, invoice and approval_status hold their empty values: nothing is invoiced or approved here. is_locked is true in a closed month.

Query parameters

Query parameters of List time entries
NameTypeDescription
user_idintegerOptionalintegerOnly this person's entries. An id that is not an integer matches none.
client_idintegerOptionalintegerOnly entries on this client's projects.
project_idintegerOptionalintegerOnly entries on this project.
task_idintegerOptionalintegerOnly entries on this task.
external_reference_idstringOptionalstringOnly entries attached to this Asana task id.
is_billedbooleanOptionalbooleantrue matches no entry: nothing is invoiced here. false matches each entry. Another value is ignored.
is_runningbooleanOptionalbooleantrue for running timers only, false for stopped entries only. Another value is ignored.
approval_statusstringOptionalstringunsubmitted matches each entry; submitted, approved and any other value match none.
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
fromdateOptionaldateOnly entries on or after this date: YYYY-MM-DD, YYYYMMDD or a date-time. Another value is refused with 400.
todateOptionaldateOnly entries on or before this date.
pageintegerOptionalintegerThe page to return, from 1. Default 1. A page past the end returns no records.
per_pageintegerOptionalintegerRecords per page, 1 to 2000. Default 2000. Another value is refused with 400.

Returns

Status 200 with a page of time entry objects under time_entries, and the pagination fields.

curl "https://t.momentic.studio/api/v2/time_entries?from=2026-03-01&to=2026-03-31" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "time_entries": [
    {
      "id": 9001,
      "spent_date": "2026-03-02",
      "user": {
        "id": 1001,
        "name": "Alex Example"
      },
      "user_assignment": {
        "id": 6001,
        "is_project_manager": false,
        "is_active": true,
        "use_default_rates": true,
        "budget": null,
        "created_at": "2026-01-05T15:00:00Z",
        "updated_at": "2026-01-05T15:00:00Z",
        "hourly_rate": 150
      },
      "client": {
        "id": 2001,
        "name": "Example Client",
        "currency": "USD"
      },
      "project": {
        "id": 3001,
        "name": "Website Refresh",
        "code": null
      },
      "task": {
        "id": 4001,
        "name": "Design"
      },
      "task_assignment": {
        "id": 5001,
        "billable": true,
        "is_active": true,
        "created_at": "2026-01-05T15:00:00Z",
        "updated_at": "2026-01-05T15:00:00Z",
        "hourly_rate": null,
        "budget": null
      },
      "external_reference": {
        "id": "1200000000000001",
        "group_id": null,
        "account_id": null,
        "permalink": "https://app.asana.com/0/0/1200000000000001",
        "service": "app.asana.com",
        "service_icon_url": null
      },
      "invoice": null,
      "hours": 1.5,
      "hours_without_timer": 1.5,
      "rounded_hours": 1.5,
      "notes": "Homepage layout",
      "is_locked": false,
      "is_explicitly_locked": false,
      "locked_reason": null,
      "is_closed": false,
      "approval_status": "unsubmitted",
      "is_billed": false,
      "timer_started_at": null,
      "started_time": "9:00am",
      "ended_time": "10:30am",
      "is_running": false,
      "billable": true,
      "budgeted": true,
      "billable_rate": 150,
      "cost_rate": null,
      "created_at": "2026-03-02T16:31:00Z",
      "updated_at": "2026-03-02T16:31:00Z"
    }
  ],
  "per_page": 2000,
  "total_pages": 1,
  "total_entries": 1,
  "next_page": null,
  "previous_page": null,
  "page": 1,
  "links": {
    "first": "https://t.momentic.studio/api/v2/time_entries?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/time_entries?page=1&per_page=2000&ref=last"
  }
}

Retrieve a time entry

GET/api/v2/time_entries/{time_entry_id}
Scope
reports:read

Differs from Harvest

Returns

Status 200 with a time entry object.

curl "https://t.momentic.studio/api/v2/time_entries/9001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 9001,
  "spent_date": "2026-03-02",
  "user": {
    "id": 1001,
    "name": "Alex Example"
  },
  "user_assignment": {
    "id": 6001,
    "is_project_manager": false,
    "is_active": true,
    "use_default_rates": true,
    "budget": null,
    "created_at": "2026-01-05T15:00:00Z",
    "updated_at": "2026-01-05T15:00:00Z",
    "hourly_rate": 150
  },
  "client": {
    "id": 2001,
    "name": "Example Client",
    "currency": "USD"
  },
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "task": {
    "id": 4001,
    "name": "Design"
  },
  "task_assignment": {
    "id": 5001,
    "billable": true,
    "is_active": true,
    "created_at": "2026-01-05T15:00:00Z",
    "updated_at": "2026-01-05T15:00:00Z",
    "hourly_rate": null,
    "budget": null
  },
  "external_reference": {
    "id": "1200000000000001",
    "group_id": null,
    "account_id": null,
    "permalink": "https://app.asana.com/0/0/1200000000000001",
    "service": "app.asana.com",
    "service_icon_url": null
  },
  "invoice": null,
  "hours": 1.5,
  "hours_without_timer": 1.5,
  "rounded_hours": 1.5,
  "notes": "Homepage layout",
  "is_locked": false,
  "is_explicitly_locked": false,
  "locked_reason": null,
  "is_closed": false,
  "approval_status": "unsubmitted",
  "is_billed": false,
  "timer_started_at": null,
  "started_time": "9:00am",
  "ended_time": "10:30am",
  "is_running": false,
  "billable": true,
  "budgeted": true,
  "billable_rate": 150,
  "cost_rate": null,
  "created_at": "2026-03-02T16:31:00Z",
  "updated_at": "2026-03-02T16:31:00Z"
}

Create a time entry

POST/api/v2/time_entries
Scope
time:write

Differs from Harvest

  • Both forms are accepted: hours (duration), or started_time and ended_time. Without hours and without ended_time, a timer starts, for the token's own person only.
  • An entry is at most 24 hours and at least one minute. Closed months, archived projects, the project's task list and the workspace's notes rule apply as in the app.

Body, as JSON or form fields

Body fields of Create a time entry
NameTypeDescription
user_idintegerOptionalintegerThe person the entry is for. Default: the token's person. Logging for someone else needs the same right as in the app.
project_idintegerRequiredintegerThe project.
task_idintegerRequiredintegerThe task. It must be on the project's task list.
spent_datedateRequireddateThe date the time counts on.
notesstringOptionalstringThe note, up to 2000 characters. Required when the workspace requires notes.
external_referenceobjectOptionalobjectAn Asana task: id (the task id) or permalink (its address). The task must be in an Asana project linked to the project.
hoursnumberOptionalnumberDuration form: hours, such as 1.5. Leave out to start a timer.
started_timetimeOptionaltimeStart and end form: the start, such as 9:00am, in the workspace time zone.
ended_timetimeOptionaltimeStart and end form: the end. Leave out to start a timer.

Returns

Status 201 with a time entry object.

curl -X POST "https://t.momentic.studio/api/v2/time_entries" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)" \
  -H "Content-Type: application/json" \
  -d '{"project_id":3001,"task_id":4001,"spent_date":"2026-03-02","notes":"Homepage layout","hours":1.5}'
Response201
{
  "id": 9001,
  "spent_date": "2026-03-02",
  "user": {
    "id": 1001,
    "name": "Alex Example"
  },
  "user_assignment": {
    "id": 6001,
    "is_project_manager": false,
    "is_active": true,
    "use_default_rates": true,
    "budget": null,
    "created_at": "2026-01-05T15:00:00Z",
    "updated_at": "2026-01-05T15:00:00Z",
    "hourly_rate": 150
  },
  "client": {
    "id": 2001,
    "name": "Example Client",
    "currency": "USD"
  },
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "task": {
    "id": 4001,
    "name": "Design"
  },
  "task_assignment": {
    "id": 5001,
    "billable": true,
    "is_active": true,
    "created_at": "2026-01-05T15:00:00Z",
    "updated_at": "2026-01-05T15:00:00Z",
    "hourly_rate": null,
    "budget": null
  },
  "external_reference": {
    "id": "1200000000000001",
    "group_id": null,
    "account_id": null,
    "permalink": "https://app.asana.com/0/0/1200000000000001",
    "service": "app.asana.com",
    "service_icon_url": null
  },
  "invoice": null,
  "hours": 1.5,
  "hours_without_timer": 1.5,
  "rounded_hours": 1.5,
  "notes": "Homepage layout",
  "is_locked": false,
  "is_explicitly_locked": false,
  "locked_reason": null,
  "is_closed": false,
  "approval_status": "unsubmitted",
  "is_billed": false,
  "timer_started_at": null,
  "started_time": "9:00am",
  "ended_time": "10:30am",
  "is_running": false,
  "billable": true,
  "budgeted": true,
  "billable_rate": 150,
  "cost_rate": null,
  "created_at": "2026-03-02T16:31:00Z",
  "updated_at": "2026-03-02T16:31:00Z"
}

Update a time entry

PATCH/api/v2/time_entries/{time_entry_id}
Scope
time:write

Differs from Harvest

A running timer takes project_id, task_id, notes and external_reference; stop it to change its time.

Body, as JSON or form fields

Body fields of Update a time entry
NameTypeDescription
project_idintegerOptionalintegerThe project.
task_idintegerOptionalintegerThe task.
spent_datedateOptionaldateThe date.
started_timetimeOptionaltimeThe start.
ended_timetimeOptionaltimeThe end.
hoursnumberOptionalnumberThe hours. Clears the start and end times when they no longer match.
notesstringOptionalstringThe note.
external_referenceobjectOptionalobjectAn Asana task, as on create.

Returns

Status 200 with a time entry object.

curl -X PATCH "https://t.momentic.studio/api/v2/time_entries/9001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)" \
  -H "Content-Type: application/json" \
  -d '{"hours":1.5,"notes":"Homepage layout"}'
Response200
{
  "id": 9001,
  "spent_date": "2026-03-02",
  "user": {
    "id": 1001,
    "name": "Alex Example"
  },
  "user_assignment": {
    "id": 6001,
    "is_project_manager": false,
    "is_active": true,
    "use_default_rates": true,
    "budget": null,
    "created_at": "2026-01-05T15:00:00Z",
    "updated_at": "2026-01-05T15:00:00Z",
    "hourly_rate": 150
  },
  "client": {
    "id": 2001,
    "name": "Example Client",
    "currency": "USD"
  },
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "task": {
    "id": 4001,
    "name": "Design"
  },
  "task_assignment": {
    "id": 5001,
    "billable": true,
    "is_active": true,
    "created_at": "2026-01-05T15:00:00Z",
    "updated_at": "2026-01-05T15:00:00Z",
    "hourly_rate": null,
    "budget": null
  },
  "external_reference": {
    "id": "1200000000000001",
    "group_id": null,
    "account_id": null,
    "permalink": "https://app.asana.com/0/0/1200000000000001",
    "service": "app.asana.com",
    "service_icon_url": null
  },
  "invoice": null,
  "hours": 1.5,
  "hours_without_timer": 1.5,
  "rounded_hours": 1.5,
  "notes": "Homepage layout",
  "is_locked": false,
  "is_explicitly_locked": false,
  "locked_reason": null,
  "is_closed": false,
  "approval_status": "unsubmitted",
  "is_billed": false,
  "timer_started_at": null,
  "started_time": "9:00am",
  "ended_time": "10:30am",
  "is_running": false,
  "billable": true,
  "budgeted": true,
  "billable_rate": 150,
  "cost_rate": null,
  "created_at": "2026-03-02T16:31:00Z",
  "updated_at": "2026-03-02T16:31:00Z"
}

Remove the external reference

DELETE/api/v2/time_entries/{time_entry_id}/external_reference
Scope
time:write

Differs from Harvest

Removes the Asana task from the entry.

Returns

Status 200. No body.

curl -X DELETE "https://t.momentic.studio/api/v2/time_entries/9001/external_reference" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response 200

No body.

Delete a time entry

DELETE/api/v2/time_entries/{time_entry_id}
Scope
time:write

Differs from Harvest

Refused in a closed month for each role. Deleting a running timer discards it.

Returns

Status 200. No body.

curl -X DELETE "https://t.momentic.studio/api/v2/time_entries/9001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response 200

No body.

Restart a time entry

PATCH/api/v2/time_entries/{time_entry_id}/restart
Scope
time:write

Differs from Harvest

Starts a new timer with the entry's project, task, note and Asana task, for the token's own person. The stopped entry stays as it is; the response is the running timer, with its own id, and stopping it writes a new entry.

Returns

Status 200 with a time entry object.

curl -X PATCH "https://t.momentic.studio/api/v2/time_entries/9001/restart" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 9001,
  "spent_date": "2026-03-02",
  "user": {
    "id": 1001,
    "name": "Alex Example"
  },
  "user_assignment": {
    "id": 6001,
    "is_project_manager": false,
    "is_active": true,
    "use_default_rates": true,
    "budget": null,
    "created_at": "2026-01-05T15:00:00Z",
    "updated_at": "2026-01-05T15:00:00Z",
    "hourly_rate": 150
  },
  "client": {
    "id": 2001,
    "name": "Example Client",
    "currency": "USD"
  },
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "task": {
    "id": 4001,
    "name": "Design"
  },
  "task_assignment": {
    "id": 5001,
    "billable": true,
    "is_active": true,
    "created_at": "2026-01-05T15:00:00Z",
    "updated_at": "2026-01-05T15:00:00Z",
    "hourly_rate": null,
    "budget": null
  },
  "external_reference": {
    "id": "1200000000000001",
    "group_id": null,
    "account_id": null,
    "permalink": "https://app.asana.com/0/0/1200000000000001",
    "service": "app.asana.com",
    "service_icon_url": null
  },
  "invoice": null,
  "hours": 1.5,
  "hours_without_timer": 1.5,
  "rounded_hours": 1.5,
  "notes": "Homepage layout",
  "is_locked": false,
  "is_explicitly_locked": false,
  "locked_reason": null,
  "is_closed": false,
  "approval_status": "unsubmitted",
  "is_billed": false,
  "timer_started_at": null,
  "started_time": "9:00am",
  "ended_time": "10:30am",
  "is_running": false,
  "billable": true,
  "budgeted": true,
  "billable_rate": 150,
  "cost_rate": null,
  "created_at": "2026-03-02T16:31:00Z",
  "updated_at": "2026-03-02T16:31:00Z"
}

Stop a running time entry

PATCH/api/v2/time_entries/{time_entry_id}/stop
Scope
time:write

Note

The entry the stop writes keeps the timer's id.

Returns

Status 200 with a time entry object.

curl -X PATCH "https://t.momentic.studio/api/v2/time_entries/9001/stop" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 9001,
  "spent_date": "2026-03-02",
  "user": {
    "id": 1001,
    "name": "Alex Example"
  },
  "user_assignment": {
    "id": 6001,
    "is_project_manager": false,
    "is_active": true,
    "use_default_rates": true,
    "budget": null,
    "created_at": "2026-01-05T15:00:00Z",
    "updated_at": "2026-01-05T15:00:00Z",
    "hourly_rate": 150
  },
  "client": {
    "id": 2001,
    "name": "Example Client",
    "currency": "USD"
  },
  "project": {
    "id": 3001,
    "name": "Website Refresh",
    "code": null
  },
  "task": {
    "id": 4001,
    "name": "Design"
  },
  "task_assignment": {
    "id": 5001,
    "billable": true,
    "is_active": true,
    "created_at": "2026-01-05T15:00:00Z",
    "updated_at": "2026-01-05T15:00:00Z",
    "hourly_rate": null,
    "budget": null
  },
  "external_reference": {
    "id": "1200000000000001",
    "group_id": null,
    "account_id": null,
    "permalink": "https://app.asana.com/0/0/1200000000000001",
    "service": "app.asana.com",
    "service_icon_url": null
  },
  "invoice": null,
  "hours": 1.5,
  "hours_without_timer": 1.5,
  "rounded_hours": 1.5,
  "notes": "Homepage layout",
  "is_locked": false,
  "is_explicitly_locked": false,
  "locked_reason": null,
  "is_closed": false,
  "approval_status": "unsubmitted",
  "is_billed": false,
  "timer_started_at": null,
  "started_time": "9:00am",
  "ended_time": "10:30am",
  "is_running": false,
  "billable": true,
  "budgeted": true,
  "billable_rate": 150,
  "cost_rate": null,
  "created_at": "2026-03-02T16:31:00Z",
  "updated_at": "2026-03-02T16:31:00Z"
}

The time entry object

Fields of the time entry object
FieldTypeDescription
idintegerintegerThe time entry's id.
spent_datedatedateThe date the time counts on.
userobject (user_ref)object (user_ref)The person.
user_assignmentobject (user_assignment_embedded)object (user_assignment_embedded)The person's assignment to the project. On a project open to everyone, a person who is not assigned to it gets an assignment with id 0.
clientobject (client_ref_currency)object (client_ref_currency)The project's client.
projectobject (project_ref)object (project_ref)The project.
taskobject (task_ref)object (task_ref)The task.
task_assignmentobject (task_assignment_embedded)object (task_assignment_embedded)The task on the project. Id 0 when the task is no longer on the project's task list.
external_referenceobject (external_reference) or nullobject (external_reference) or nullThe Asana task attached to the entry, or null.
invoiceobject (invoice_ref) or nullobject (invoice_ref) or nullNull. The time tracker has no such data, so this is the empty value.
hoursnumbernumberHours, to two decimals. A running timer: the hours so far.
hours_without_timernumbernumberThe same as hours for a stopped entry; 0 for a running timer.
rounded_hoursnumbernumberThe same as hours: the time tracker does not round.
notesstring or nullstring or nullThe note.
is_lockedbooleanbooleanTrue when the entry's month is closed.
is_explicitly_lockedbooleanbooleanFalse: entries are locked by a closed month, not one by one. The time tracker has no such data, so this is the empty value.
locked_reasonstring or nullstring or nullWhy the entry is locked, or null.
is_closedbooleanbooleanFalse. The time tracker has no such data, so this is the empty value.
approval_statusstringstringunsubmitted. The time tracker has no such data, so this is the empty value.
is_billedbooleanbooleanFalse. The time tracker has no such data, so this is the empty value.
timer_started_atdatetime or nulldatetime or nullWhen the running timer started, or null.
started_timetime or nulltime or nullThe start time in the workspace time zone, like 9:30am, or null.
ended_timetime or nulltime or nullThe end time in the workspace time zone, or null.
is_runningbooleanbooleanTrue for a running timer.
billablebooleanbooleanWhether the entry is billable.
budgetedbooleanbooleanTrue when the project has an hours budget.
billable_ratenumber or nullnumber or nullThe billable rate that applied on the entry's date. Null unless the token has rates:read and its person is an owner, an admin or a manager of the project.
cost_ratenumber or nullnumber or nullNull. This API does not return cost, for any role or scope.
created_atdatetimedatetimeWhen the record was created.
updated_atdatetimedatetimeWhen the record was last changed.

The user ref object

Fields of the user ref object
FieldTypeDescription
idintegerintegerThe person's id.
namestringstringThe person's name.

The user assignment embedded object

Fields of the user assignment embedded object
FieldTypeDescription
idintegerintegerThe assignment's id.
is_project_managerbooleanbooleanTrue when the person manages the project.
is_activebooleanbooleanFalse when the person is archived.
use_default_ratesbooleanbooleanFalse when the person has their own rate on the project.
budgetnumber or nullnumber or nullNull. The time tracker has no such data, so this is the empty value.
created_atdatetimedatetimeWhen the record was created.
updated_atdatetimedatetimeWhen the record was last changed.
hourly_ratenumber or nullnumber or nullThe person's billable rate on the project. Null unless the token has rates:read and its person is an owner, an admin or a manager of the project.

The client ref currency object

Fields of the client ref currency object
FieldTypeDescription
idintegerintegerThe client's id.
namestringstringThe client's name.
currencystringstringUSD.

The project ref object

Fields of the project ref object
FieldTypeDescription
idintegerintegerThe project's id.
namestringstringThe project's name.
codestring or nullstring or nullNull.

The task ref object

Fields of the task ref object
FieldTypeDescription
idintegerintegerThe task's id.
namestringstringThe task's name.

The task assignment embedded object

Fields of the task assignment embedded object
FieldTypeDescription
idintegerintegerThe task assignment's id.
billablebooleanbooleanWhether time on the task is billable on this project.
is_activebooleanbooleanFalse when the task is archived.
created_atdatetimedatetimeWhen the record was created.
updated_atdatetimedatetimeWhen the record was last changed.
hourly_ratenumber or nullnumber or nullNull: a task rate applies to projects billed by task, which the time tracker does not have. The rate is on the project and the person. The time tracker has no such data, so this is the empty value.
budgetnumber or nullnumber or nullNull. The time tracker has no such data, so this is the empty value.

The external reference object

Fields of the external reference object
FieldTypeDescription
idstringstringThe Asana task id.
group_idstring or nullstring or nullNull.
account_idstring or nullstring or nullNull.
permalinkstringstringThe Asana task's address.
servicestringstringapp.asana.com.
service_icon_urlstring or nullstring or nullNull.

The invoice ref object

Fields of the invoice ref object
FieldTypeDescription
idintegerintegerThe invoice's id.
numberstringstringThe invoice number.