# Projects

List, read, create and update projects through the TimeSubmit API: each operation, its scope, its body and the project's fields.

## The project object

Work for a client, with its rate and approval settings.

```json
{
  "id": "k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t",
  "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "name": "Warehouse Platform Migration",
  "title": "Warehouse management platform migration",
  "description": "Moving Fernhill's warehouse system to a cloud platform.",
  "comments": null,
  "status": "active",
  "startDate": "2026-09-01",
  "endDate": "2027-02-26",
  "hourlyRate": 95,
  "currency": "GBP",
  "logoUrl": null,
  "approvalsRequired": 1,
  "sequentialApproval": true,
  "createdAt": "2026-08-20T08:30:00.000Z",
  "updatedAt": "2026-09-01T07:55:12.000Z"
}
```

Every field below is in every answer. A required field always has a value; a nullable one is `null` when it has none. More fields may be added within `/v1`, so have your code ignore any it doesn't recognise.

| Field | Type | About it |
| --- | --- | --- |
| `id` (required) | string | The project's id. |
| `clientId` (required) | string | The client it is for. |
| `name` (required) | string | The project's name. |
| `title` (nullable) | string or null | A longer title. |
| `description` (nullable) | string or null | What the project is. |
| `comments` (nullable) | string or null | Internal notes. |
| `status` (required) | "planning" \| "active" \| "paused" \| "completed" \| "archived" | Where the project is. Archived is the only removal. |
| `startDate` (nullable) | date (YYYY-MM-DD) or null | The day it starts. |
| `endDate` (nullable) | date (YYYY-MM-DD) or null | The day it ends. Never before `startDate`; it may be the same day. |
| `hourlyRate` (nullable) | number or null | The rate the client is charged an hour, in `currency`, as stored. From 0 to 1000000. |
| `currency` (nullable) | string or null | An ISO 4217 code. One of 7 values. Values: `GBP`, `USD`, `EUR`, `AUD`, `CAD`, `NZD`, `ZAR`. |
| `logoUrl` (nullable) | string or null | The project's logo. |
| `approvalsRequired` (required, deprecated) | integer | The number of approvers a project asked for. It has no effect. From 1 to 10. Deprecated on 1 December 2026. It has never changed approval: a timesheet needs every approver on the project, then final approval. Removed in `/v2`. |
| `sequentialApproval` (required) | boolean | Whether approvers approve in order. Margin and Enterprise. |
| `createdAt` (nullable) | time (ISO 8601) or null | When it was created. |
| `updatedAt` (nullable) | time (ISO 8601) or null | When it last changed. |

This list can grow within `/v1`, so ignore any you don't recognise rather than failing on it. See [versioning](https://www.timesubmit.com/developers/versioning).

## Operations

### `GET /projects`

**List projects.** A page of your organisation's projects, all or one client's. Needs the `projects:read` scope. Succeeds with 200, a page of them.

| Query parameter | Type | About it |
| --- | --- | --- |
| `clientId` (optional) | string | Only this client's projects. |
| `limit` (optional) | integer | How many to a page, 1 to 100. 25 when absent. From 1 to 100. |
| `cursor` (optional) | string | The `nextCursor` from the page before. |

Example request. The key is read from `TIMESUBMIT_API_KEY`:

curl:

```bash
curl 'https://www.timesubmit.com/api/v1/projects' \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY"
```

JavaScript:

```javascript
const response = await fetch("https://www.timesubmit.com/api/v1/projects", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TIMESUBMIT_API_KEY}`,
  },
});
const answer = await response.json();
```

Python:

```python
import os

import requests

response = requests.request(
    "GET",
    "https://www.timesubmit.com/api/v1/projects",
    headers={
        "Authorization": f"Bearer {os.environ['TIMESUBMIT_API_KEY']}",
    },
)
answer = response.json()
```

Example response, with status 200:

```json
{
  "data": [
    {
      "id": "k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t",
      "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
      "name": "Warehouse Platform Migration",
      "title": "Warehouse management platform migration",
      "description": "Moving Fernhill's warehouse system to a cloud platform.",
      "comments": null,
      "status": "active",
      "startDate": "2026-09-01",
      "endDate": "2027-02-26",
      "hourlyRate": 95,
      "currency": "GBP",
      "logoUrl": null,
      "approvalsRequired": 1,
      "sequentialApproval": true,
      "createdAt": "2026-08-20T08:30:00.000Z",
      "updatedAt": "2026-09-01T07:55:12.000Z"
    }
  ],
  "nextCursor": "eyJjcmVhdGVkQXQiOjE3NjQwNjA4MDB9"
}
```

The [error codes](https://www.timesubmit.com/developers/errors) it can answer with:

- `unauthorised` (401)
- `api_not_included` (403)
- `insufficient_scope` (403)
- `not_found` (404)
- `invalid_request` (400)
- `rate_limited` (429)

### `GET /projects/{id}`

**Read a project.** One project. Needs the `projects:read` scope. Succeeds with 200.

Example request. The key is read from `TIMESUBMIT_API_KEY`:

curl:

```bash
curl 'https://www.timesubmit.com/api/v1/projects/k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t' \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY"
```

JavaScript:

```javascript
const response = await fetch("https://www.timesubmit.com/api/v1/projects/k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TIMESUBMIT_API_KEY}`,
  },
});
const answer = await response.json();
```

Python:

```python
import os

import requests

response = requests.request(
    "GET",
    "https://www.timesubmit.com/api/v1/projects/k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t",
    headers={
        "Authorization": f"Bearer {os.environ['TIMESUBMIT_API_KEY']}",
    },
)
answer = response.json()
```

Example response, with status 200:

```json
{
  "id": "k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t",
  "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "name": "Warehouse Platform Migration",
  "title": "Warehouse management platform migration",
  "description": "Moving Fernhill's warehouse system to a cloud platform.",
  "comments": null,
  "status": "active",
  "startDate": "2026-09-01",
  "endDate": "2027-02-26",
  "hourlyRate": 95,
  "currency": "GBP",
  "logoUrl": null,
  "approvalsRequired": 1,
  "sequentialApproval": true,
  "createdAt": "2026-08-20T08:30:00.000Z",
  "updatedAt": "2026-09-01T07:55:12.000Z"
}
```

The [error codes](https://www.timesubmit.com/developers/errors) it can answer with:

- `unauthorised` (401)
- `api_not_included` (403)
- `insufficient_scope` (403)
- `not_found` (404)
- `rate_limited` (429)

### `POST /projects`

**Create a project.** Adds a project under one of your clients, in planning, within your plan's project limit. Needs the `projects:write` scope. Accepts an Idempotency-Key. Succeeds with 201.

The body is a JSON object. Any other field is refused with its name.

| Field | Type | About it |
| --- | --- | --- |
| `clientId` (required) | string | The client it is for. |
| `name` (required) | string | The project's name. Not blank. |
| `title` (optional, nullable) | string or null | A longer title. |
| `description` (optional, nullable) | string or null | What the project is. |
| `startDate` (optional, nullable) | date (YYYY-MM-DD) or null | The day it starts. |
| `endDate` (optional, nullable) | date (YYYY-MM-DD) or null | The day it ends. Never before `startDate`; it may be the same day. |
| `hourlyRate` (optional, nullable) | number or null | The rate the client is charged an hour, in `currency`, as stored. From 0 to 1000000. |
| `currency` (optional, nullable) | string or null | An ISO 4217 code. One of 7 values. Values: `GBP`, `USD`, `EUR`, `AUD`, `CAD`, `NZD`, `ZAR`. |
| `approvalsRequired` (optional, deprecated) | integer | The number of approvers a project asked for. It has no effect. From 1 to 10. Deprecated on 1 December 2026. It has never changed approval: a timesheet needs every approver on the project, then final approval. Removed in `/v2`. |
| `sequentialApproval` (optional) | boolean | Turn sequential approval on or off. Turning it on needs the Margin or Enterprise plan. |

This list can grow within `/v1`, so ignore any you don't recognise rather than failing on it. See [versioning](https://www.timesubmit.com/developers/versioning).

Example request, with a fresh Idempotency-Key each time it runs. The key is read from `TIMESUBMIT_API_KEY`:

curl:

```bash
curl -X POST 'https://www.timesubmit.com/api/v1/projects' \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "name": "Warehouse Platform Migration",
  "title": "Warehouse management platform migration",
  "description": "Moving Fernhill'\''s warehouse system to a cloud platform.",
  "startDate": "2026-09-01",
  "endDate": "2027-02-26",
  "hourlyRate": 95,
  "currency": "GBP",
  "sequentialApproval": true
}'
```

JavaScript:

```javascript
const response = await fetch("https://www.timesubmit.com/api/v1/projects", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TIMESUBMIT_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
    "name": "Warehouse Platform Migration",
    "title": "Warehouse management platform migration",
    "description": "Moving Fernhill's warehouse system to a cloud platform.",
    "startDate": "2026-09-01",
    "endDate": "2027-02-26",
    "hourlyRate": 95,
    "currency": "GBP",
    "sequentialApproval": true
  }),
});
const answer = await response.json();
```

Python:

```python
import os
import uuid

import requests

response = requests.request(
    "POST",
    "https://www.timesubmit.com/api/v1/projects",
    headers={
        "Authorization": f"Bearer {os.environ['TIMESUBMIT_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
        "name": "Warehouse Platform Migration",
        "title": "Warehouse management platform migration",
        "description": "Moving Fernhill's warehouse system to a cloud platform.",
        "startDate": "2026-09-01",
        "endDate": "2027-02-26",
        "hourlyRate": 95,
        "currency": "GBP",
        "sequentialApproval": True,
    },
)
answer = response.json()
```

Example response, with status 201:

```json
{
  "id": "k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t",
  "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "name": "Warehouse Platform Migration",
  "title": "Warehouse management platform migration",
  "description": "Moving Fernhill's warehouse system to a cloud platform.",
  "comments": null,
  "status": "planning",
  "startDate": "2026-09-01",
  "endDate": "2027-02-26",
  "hourlyRate": 95,
  "currency": "GBP",
  "logoUrl": null,
  "approvalsRequired": 1,
  "sequentialApproval": true,
  "createdAt": "2026-08-20T08:30:00.000Z",
  "updatedAt": "2026-09-01T07:55:12.000Z"
}
```

The [error codes](https://www.timesubmit.com/developers/errors) it can answer with:

- `unauthorised` (401)
- `api_not_included` (403)
- `insufficient_scope` (403)
- `read_only` (403)
- `project_limit_reached` (403)
- `not_on_plan` (403)
- `not_found` (404)
- `invalid_request` (400)
- `idempotency_conflict` (409)
- `rate_limited` (429)

### `PATCH /projects/{id}`

**Update a project.** Changes the fields sent, and with `status`, the status. `null` clears a field. A project never moves to another client. Needs the `projects:write` scope. Accepts an Idempotency-Key. Succeeds with 200.

The body is a JSON object. Send only the fields to change. Any other field is refused with its name.

| Field | Type | About it |
| --- | --- | --- |
| `name` (optional) | string | The project's name. Not blank. |
| `title` (optional, nullable) | string or null | A longer title. |
| `description` (optional, nullable) | string or null | What the project is. |
| `startDate` (optional, nullable) | date (YYYY-MM-DD) or null | The day it starts. |
| `endDate` (optional, nullable) | date (YYYY-MM-DD) or null | The day it ends. Never before `startDate`; it may be the same day. |
| `hourlyRate` (optional, nullable) | number or null | The rate the client is charged an hour, in `currency`, as stored. From 0 to 1000000. |
| `currency` (optional, nullable) | string or null | An ISO 4217 code. One of 7 values. Values: `GBP`, `USD`, `EUR`, `AUD`, `CAD`, `NZD`, `ZAR`. |
| `approvalsRequired` (optional, deprecated) | integer | The number of approvers a project asked for. It has no effect. From 1 to 10. Deprecated on 1 December 2026. It has never changed approval: a timesheet needs every approver on the project, then final approval. Removed in `/v2`. |
| `sequentialApproval` (optional) | boolean | Turn sequential approval on or off. Turning it on needs the Margin or Enterprise plan. |
| `comments` (optional, nullable) | string or null | Internal notes. |
| `status` (optional) | "planning" \| "active" \| "paused" \| "completed" \| "archived" | The status to set. Archiving is a status; there is no delete. |

This list can grow within `/v1`, so ignore any you don't recognise rather than failing on it. See [versioning](https://www.timesubmit.com/developers/versioning).

Example request, with a fresh Idempotency-Key each time it runs. The key is read from `TIMESUBMIT_API_KEY`:

curl:

```bash
curl -X PATCH 'https://www.timesubmit.com/api/v1/projects/k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t' \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "active",
  "endDate": "2027-03-31"
}'
```

JavaScript:

```javascript
const response = await fetch("https://www.timesubmit.com/api/v1/projects/k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TIMESUBMIT_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "status": "active",
    "endDate": "2027-03-31"
  }),
});
const answer = await response.json();
```

Python:

```python
import os
import uuid

import requests

response = requests.request(
    "PATCH",
    "https://www.timesubmit.com/api/v1/projects/k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t",
    headers={
        "Authorization": f"Bearer {os.environ['TIMESUBMIT_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "status": "active",
        "endDate": "2027-03-31",
    },
)
answer = response.json()
```

Example response, with status 200:

```json
{
  "id": "k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t",
  "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "name": "Warehouse Platform Migration",
  "title": "Warehouse management platform migration",
  "description": "Moving Fernhill's warehouse system to a cloud platform.",
  "comments": null,
  "status": "active",
  "startDate": "2026-09-01",
  "endDate": "2027-03-31",
  "hourlyRate": 95,
  "currency": "GBP",
  "logoUrl": null,
  "approvalsRequired": 1,
  "sequentialApproval": true,
  "createdAt": "2026-08-20T08:30:00.000Z",
  "updatedAt": "2026-09-01T07:55:12.000Z"
}
```

The [error codes](https://www.timesubmit.com/developers/errors) it can answer with:

- `unauthorised` (401)
- `api_not_included` (403)
- `insufficient_scope` (403)
- `read_only` (403)
- `project_limit_reached` (403)
- `not_on_plan` (403)
- `not_found` (404)
- `invalid_request` (400)
- `idempotency_conflict` (409)
- `rate_limited` (429)
