Skip to content

Docs / API objects

Tasks

List, create and change the tasks your team logs time under.

View as Markdown

List tasks

GET/api/v2/tasks
Scope
reports:read

Differs from Harvest

default_hourly_rate is 0. A member is refused (403).

Query parameters

Query parameters of List tasks
NameTypeDescription
is_activebooleanOptionalbooleantrue for active records only, false for archived only. Another value is ignored, as in Harvest.
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
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 task objects under tasks, and the pagination fields.

curl "https://t.momentic.studio/api/v2/tasks" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "tasks": [
    {
      "id": 4001,
      "name": "Design",
      "billable_by_default": true,
      "default_hourly_rate": null,
      "is_default": true,
      "is_active": true,
      "created_at": "2026-01-05T15:00:00Z",
      "updated_at": "2026-01-05T15:00: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/tasks?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/tasks?page=1&per_page=2000&ref=last"
  }
}

Retrieve a task

GET/api/v2/tasks/{task_id}
Scope
reports:read

Differs from Harvest

Returns

Status 200 with a task object.

curl "https://t.momentic.studio/api/v2/tasks/4001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 4001,
  "name": "Design",
  "billable_by_default": true,
  "default_hourly_rate": null,
  "is_default": true,
  "is_active": true,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Create a task

POST/api/v2/tasks
Scope
projects:write

Differs from Harvest

default_hourly_rate is ignored.

Body, as JSON or form fields

Body fields of Create a task
NameTypeDescription
namestringRequiredstringThe task's name.
billable_by_defaultbooleanOptionalbooleanDefault true.
is_defaultbooleanOptionalbooleantrue adds it to new projects.
is_activebooleanOptionalbooleanfalse creates it archived.

Returns

Status 201 with a task object.

curl -X POST "https://t.momentic.studio/api/v2/tasks" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)" \
  -H "Content-Type: application/json" \
  -d '{"name":"Example Client"}'
Response201
{
  "id": 4001,
  "name": "Design",
  "billable_by_default": true,
  "default_hourly_rate": null,
  "is_default": true,
  "is_active": true,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Update a task

PATCH/api/v2/tasks/{task_id}
Scope
projects:write

Differs from Harvest

Body, as JSON or form fields

Body fields of Update a task
NameTypeDescription
namestringOptionalstringThe task's name.
billable_by_defaultbooleanOptionalbooleanWhether new project time on it is billable.
is_defaultbooleanOptionalbooleantrue adds it to new projects.
is_activebooleanOptionalbooleanfalse archives it; true restores it.

Returns

Status 200 with a task object.

curl -X PATCH "https://t.momentic.studio/api/v2/tasks/4001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 4001,
  "name": "Design",
  "billable_by_default": true,
  "default_hourly_rate": null,
  "is_default": true,
  "is_active": true,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Delete a task

DELETE/api/v2/tasks/{task_id}
Scope
projects:write

Not supported

Archive with is_active false. Deleting tasks is not offered by the app.

Returns

Status 200. No body.

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

The note above says what this endpoint returns.

The task object

Fields of the task object
FieldTypeDescription
idintegerintegerThe task's id.
namestringstringThe task's name.
billable_by_defaultbooleanbooleanWhether time on the task is billable when a project adds it.
default_hourly_ratenumber or nullnumber or nullNull: rates are set on people and projects, not tasks. The time tracker has no such data, so this is the empty value.
is_defaultbooleanbooleanTrue when the task is on the standard list or is added to new projects.
is_activebooleanbooleanFalse when the task is archived.
created_atdatetimedatetimeWhen the record was created.
updated_atdatetimedatetimeWhen the record was last changed.