# Projects

List, create and change projects, with their type, hour budget, fee and dates. A project is a retainer, a fixed fee project, an hourly project, an internal project or a time off project. A retainer reads as a project with a monthly budget in hours.

HTML version: https://t.momentic.studio/docs/api/projects

## Endpoints

- `GET /api/v2/projects`: [List projects](https://t.momentic.studio/docs/api/projects#get-projects)
- `GET /api/v2/projects/{project_id}`: [Retrieve a project](https://t.momentic.studio/docs/api/projects#get-projects-project-id)
- `POST /api/v2/projects`: [Create a project](https://t.momentic.studio/docs/api/projects#post-projects)
- `PATCH /api/v2/projects/{project_id}`: [Update a project](https://t.momentic.studio/docs/api/projects#patch-projects-project-id)
- `DELETE /api/v2/projects/{project_id}`: [Delete a project](https://t.momentic.studio/docs/api/projects#delete-projects-project-id)

## List projects

`GET /api/v2/projects`

Supported with differences. Scope: `reports:read`.

Owners and admins list the whole workspace's projects; a manager the projects they are on; a member is refused (403), as in Harvest.

A retainer is a project with budget_is_monthly true and its monthly hours as budget. code, notes and tags are empty; cost_budget is null.

Query parameters:

| Name            | Type     | Required | Description                                                                                                    |
| --------------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------- |
| `is_active`     | boolean  | no       | true for active records only, false for archived only. Another value is ignored, as in Harvest.                |
| `client_id`     | integer  | no       | Only this client's projects.                                                                                   |
| `updated_since` | datetime | no       | Only records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400. |
| `page`          | integer  | no       | The page to return, from 1. Default 1. A page past the end returns no records.                                 |
| `per_page`      | integer  | no       | Records per page, 1 to 2000. Default 2000. Another value is refused with 400.                                  |

Returns 200 with a page of project objects under `projects`.

Example request:

```bash
curl "https://t.momentic.studio/api/v2/projects" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
```

Example response, status 200:

```json
{
  "projects": [
    {
      "id": 3001,
      "client": {
        "id": 2001,
        "name": "Example Client",
        "currency": "USD"
      },
      "name": "Website Refresh",
      "code": null,
      "currency": "USD",
      "is_active": true,
      "is_billable": true,
      "is_fixed_fee": true,
      "bill_by": "Project",
      "hourly_rate": 150,
      "budget_by": "project",
      "budget_is_monthly": false,
      "budget": 120,
      "cost_budget": null,
      "cost_budget_include_expenses": false,
      "notify_when_over_budget": true,
      "over_budget_notification_percentage": 80,
      "over_budget_notification_date": null,
      "show_budget_to_all": false,
      "fee": 18000,
      "fee_schedule": "single",
      "milestones": [],
      "notes": "",
      "starts_on": "2026-01-01",
      "ends_on": "2026-06-30",
      "created_at": "2026-01-05T15:00:00Z",
      "updated_at": "2026-01-05T15:00:00Z",
      "tags": []
    }
  ],
  "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/projects?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/projects?page=1&per_page=2000&ref=last"
  }
}
```

## Retrieve a project

`GET /api/v2/projects/{project_id}`

Supported with differences. Scope: `reports:read`.

Returns 200 with a project object.

Example request:

```bash
curl "https://t.momentic.studio/api/v2/projects/3001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
```

Example response, status 200:

```json
{
  "id": 3001,
  "client": {
    "id": 2001,
    "name": "Example Client",
    "currency": "USD"
  },
  "name": "Website Refresh",
  "code": null,
  "currency": "USD",
  "is_active": true,
  "is_billable": true,
  "is_fixed_fee": true,
  "bill_by": "Project",
  "hourly_rate": 150,
  "budget_by": "project",
  "budget_is_monthly": false,
  "budget": 120,
  "cost_budget": null,
  "cost_budget_include_expenses": false,
  "notify_when_over_budget": true,
  "over_budget_notification_percentage": 80,
  "over_budget_notification_date": null,
  "show_budget_to_all": false,
  "fee": 18000,
  "fee_schedule": "single",
  "milestones": [],
  "notes": "",
  "starts_on": "2026-01-01",
  "ends_on": "2026-06-30",
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z",
  "tags": []
}
```

## Create a project

`POST /api/v2/projects`

Supported with differences. Scope: `projects:write`.

is_fixed_fee true makes a fixed fee project; is_billable false an internal project; otherwise an hourly project. Retainers are created in the app, since they need monthly terms.

budget is taken in hours (budget_by project); fee for a fixed fee project. hourly_rate, bill_by, budget_by values other than project and none, code, notes and the notification fields are ignored.

Body, as JSON or form fields:

| Name           | Type    | Required | Description                                                    |
| -------------- | ------- | -------- | -------------------------------------------------------------- |
| `client_id`    | integer | yes      | The client.                                                    |
| `name`         | string  | yes      | The project's name.                                            |
| `is_billable`  | boolean | yes      | false makes an internal project.                               |
| `bill_by`      | string  | yes      | Accepted and ignored.                                          |
| `budget_by`    | string  | yes      | project to keep budget as an hours budget; none for no budget. |
| `is_fixed_fee` | boolean | no       | true makes a fixed fee project.                                |
| `fee`          | number  | no       | A fixed fee project's total fee in dollars.                    |
| `budget`       | number  | no       | The hours budget.                                              |
| `starts_on`    | date    | no       | The start date.                                                |
| `ends_on`      | date    | no       | The end date.                                                  |
| `is_active`    | boolean | no       | false creates it archived.                                     |

Returns 201 with a project object.

Example request:

```bash
curl -X POST "https://t.momentic.studio/api/v2/projects" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)" \
  -H "Content-Type: application/json" \
  -d '{"client_id":2001,"name":"Example Client","is_billable":true,"bill_by":"Project","budget_by":"project","is_fixed_fee":true,"fee":18000,"budget":120}'
```

Example response, status 201:

```json
{
  "id": 3001,
  "client": {
    "id": 2001,
    "name": "Example Client",
    "currency": "USD"
  },
  "name": "Website Refresh",
  "code": null,
  "currency": "USD",
  "is_active": true,
  "is_billable": true,
  "is_fixed_fee": true,
  "bill_by": "Project",
  "hourly_rate": 150,
  "budget_by": "project",
  "budget_is_monthly": false,
  "budget": 120,
  "cost_budget": null,
  "cost_budget_include_expenses": false,
  "notify_when_over_budget": true,
  "over_budget_notification_percentage": 80,
  "over_budget_notification_date": null,
  "show_budget_to_all": false,
  "fee": 18000,
  "fee_schedule": "single",
  "milestones": [],
  "notes": "",
  "starts_on": "2026-01-01",
  "ends_on": "2026-06-30",
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z",
  "tags": []
}
```

## Update a project

`PATCH /api/v2/projects/{project_id}`

Supported with differences. Scope: `projects:write`.

Changes client_id, name, budget (hours), fee, starts_on, ends_on and is_active. Other fields are ignored. Changing the type is done in the app.

Body, as JSON or form fields:

| Name        | Type    | Required | Description                                       |
| ----------- | ------- | -------- | ------------------------------------------------- |
| `client_id` | integer | no       | The client.                                       |
| `name`      | string  | no       | The project's name.                               |
| `budget`    | number  | no       | The hours budget; null removes it.                |
| `fee`       | number  | no       | A fixed fee project's total fee; null removes it. |
| `starts_on` | date    | no       | The start date.                                   |
| `ends_on`   | date    | no       | The end date.                                     |
| `is_active` | boolean | no       | false archives the project; true restores it.     |

Returns 200 with a project object.

Example request:

```bash
curl -X PATCH "https://t.momentic.studio/api/v2/projects/3001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)" \
  -H "Content-Type: application/json" \
  -d '{"budget":120,"fee":18000}'
```

Example response, status 200:

```json
{
  "id": 3001,
  "client": {
    "id": 2001,
    "name": "Example Client",
    "currency": "USD"
  },
  "name": "Website Refresh",
  "code": null,
  "currency": "USD",
  "is_active": true,
  "is_billable": true,
  "is_fixed_fee": true,
  "bill_by": "Project",
  "hourly_rate": 150,
  "budget_by": "project",
  "budget_is_monthly": false,
  "budget": 120,
  "cost_budget": null,
  "cost_budget_include_expenses": false,
  "notify_when_over_budget": true,
  "over_budget_notification_percentage": 80,
  "over_budget_notification_date": null,
  "show_budget_to_all": false,
  "fee": 18000,
  "fee_schedule": "single",
  "milestones": [],
  "notes": "",
  "starts_on": "2026-01-01",
  "ends_on": "2026-06-30",
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z",
  "tags": []
}
```

## Delete a project

`DELETE /api/v2/projects/{project_id}`

Not supported. Scope: `projects:write`.

Archive with is_active false. Deleting a project and its time is not offered by the app.

Returns 200 with no body.

Example request:

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

## The project object

| Field                                 | Type                         | Description                                                                                                                             |
| ------------------------------------- | ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `id`                                  | integer                      | The project's id.                                                                                                                       |
| `client`                              | object (client_ref_currency) | The project's client.                                                                                                                   |
| `name`                                | string                       | The project's name.                                                                                                                     |
| `code`                                | string or null               | Null. The time tracker has no such data, so this is the empty value.                                                                    |
| `currency`                            | string                       | USD.                                                                                                                                    |
| `is_active`                           | boolean                      | False when the project is archived.                                                                                                     |
| `is_billable`                         | boolean                      | True for retainer, fixed fee and hourly projects; false for internal and time off projects.                                             |
| `is_fixed_fee`                        | boolean                      | True for a fixed fee project.                                                                                                           |
| `bill_by`                             | string                       | Project when the project has a project rate, People otherwise, none for internal and time off projects.                                 |
| `hourly_rate`                         | number or null               | The project rate. Null unless the token has rates:read and its person is an owner, an admin or a manager of the project.                |
| `budget_by`                           | string                       | project when the project has an hours budget (a retainer: its monthly hours), none otherwise.                                           |
| `budget_is_monthly`                   | boolean                      | True for a retainer, whose budget is its monthly hours.                                                                                 |
| `budget`                              | number or null               | The hours budget, or a retainer's monthly hours in effect today.                                                                        |
| `cost_budget`                         | number or null               | Null. This API does not return cost, for any role or scope.                                                                             |
| `cost_budget_include_expenses`        | boolean                      | False. The time tracker has no such data, so this is the empty value.                                                                   |
| `notify_when_over_budget`             | boolean                      | True when the project has a budget: the time tracker notifies at 80 and 100 percent of it.                                              |
| `over_budget_notification_percentage` | number                       | 80: the time tracker notifies at 80 percent of a budget.                                                                                |
| `over_budget_notification_date`       | date or null                 | Null. The time tracker has no such data, so this is the empty value.                                                                    |
| `show_budget_to_all`                  | boolean                      | False. The time tracker has no such data, so this is the empty value.                                                                   |
| `fee`                                 | number or null               | A fixed fee project's total fee. Null unless the token has rates:read and its person is an owner, an admin or a manager of the project. |
| `fee_schedule`                        | string or null               | single, or null when the token may not read fees.                                                                                       |
| `milestones`                          | integer[] or null            | An empty list, or null when the token may not read fees. The time tracker has no such data, so this is the empty value.                 |
| `notes`                               | string                       | An empty string. The time tracker has no such data, so this is the empty value.                                                         |
| `starts_on`                           | date or null                 | The start date.                                                                                                                         |
| `ends_on`                             | date or null                 | The end date.                                                                                                                           |
| `created_at`                          | datetime                     | When the record was created.                                                                                                            |
| `updated_at`                          | datetime                     | When the record was last changed.                                                                                                       |
| `tags`                                | array of project_tag         | An empty list. The time tracker has no such data, so this is the empty value.                                                           |

## The client ref currency object

| Field      | Type    | Description        |
| ---------- | ------- | ------------------ |
| `id`       | integer | The client's id.   |
| `name`     | string  | The client's name. |
| `currency` | string  | USD.               |

## The project tag object

| Field  | Type    | Description     |
| ------ | ------- | --------------- |
| `id`   | integer | The tag's id.   |
| `name` | string  | The tag's name. |
