# Consultants

List and read consultants through the TimeSubmit API, without their bank or tax details: each operation, its scope and the fields.

## The consultant object

The people who work on projects. Read only, and never their bank or tax details.

```json
{
  "id": "m24p7r9t3w6y8a1c5e0g2j4l7n9q3s6v",
  "name": "Tomasz Wierzbicki",
  "email": "tomasz@wierzbicki-consulting.example",
  "isActive": true,
  "dailyRate": 650,
  "hourlyRate": 85,
  "preferredCurrency": "GBP",
  "companyRegNumber": "09876543",
  "paymentTerms": "30 days from invoice",
  "paymentTermDays": 30,
  "createdAt": "2026-08-22T13:12:45.000Z",
  "updatedAt": "2026-08-22T13:20:03.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 consultant's id. |
| `name` (nullable) | string or null | Their name, from the user they are linked to; null while unlinked. |
| `email` (nullable) | string or null | Their email address, likewise. |
| `isActive` (required) | boolean | Whether they are active in the organisation. |
| `dailyRate` (nullable) | number or null | Their fallback day rate. From 0 to 1000000. |
| `hourlyRate` (nullable) | number or null | Their fallback hourly rate. From 0 to 1000000. |
| `preferredCurrency` (nullable) | string or null | The currency they invoice in. |
| `companyRegNumber` (nullable) | string or null | Their company's registration number. |
| `paymentTerms` (nullable) | string or null | Their payment terms, as written. |
| `paymentTermDays` (nullable) | integer or null | Their payment terms in days. |
| `createdAt` (nullable) | time (ISO 8601) or null | When it was created. |
| `updatedAt` (nullable) | time (ISO 8601) or null | When it last changed. |

## Operations

### `GET /consultants`

**List consultants.** A page of your organisation's consultants, inactive ones included. Never bank or tax details. There is no consultant write. Needs the `consultants:read` scope. Succeeds with 200, a page of them.

| Query parameter | Type | About it |
| --- | --- | --- |
| `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/consultants' \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY"
```

JavaScript:

```javascript
const response = await fetch("https://www.timesubmit.com/api/v1/consultants", {
  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/consultants",
    headers={
        "Authorization": f"Bearer {os.environ['TIMESUBMIT_API_KEY']}",
    },
)
answer = response.json()
```

Example response, with status 200:

```json
{
  "data": [
    {
      "id": "m24p7r9t3w6y8a1c5e0g2j4l7n9q3s6v",
      "name": "Tomasz Wierzbicki",
      "email": "tomasz@wierzbicki-consulting.example",
      "isActive": true,
      "dailyRate": 650,
      "hourlyRate": 85,
      "preferredCurrency": "GBP",
      "companyRegNumber": "09876543",
      "paymentTerms": "30 days from invoice",
      "paymentTermDays": 30,
      "createdAt": "2026-08-22T13:12:45.000Z",
      "updatedAt": "2026-08-22T13:20:03.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)
- `invalid_request` (400)
- `rate_limited` (429)

### `GET /consultants/{id}`

**Read a consultant.** One consultant. Needs the `consultants:read` scope. Succeeds with 200.

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

curl:

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

JavaScript:

```javascript
const response = await fetch("https://www.timesubmit.com/api/v1/consultants/m24p7r9t3w6y8a1c5e0g2j4l7n9q3s6v", {
  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/consultants/m24p7r9t3w6y8a1c5e0g2j4l7n9q3s6v",
    headers={
        "Authorization": f"Bearer {os.environ['TIMESUBMIT_API_KEY']}",
    },
)
answer = response.json()
```

Example response, with status 200:

```json
{
  "id": "m24p7r9t3w6y8a1c5e0g2j4l7n9q3s6v",
  "name": "Tomasz Wierzbicki",
  "email": "tomasz@wierzbicki-consulting.example",
  "isActive": true,
  "dailyRate": 650,
  "hourlyRate": 85,
  "preferredCurrency": "GBP",
  "companyRegNumber": "09876543",
  "paymentTerms": "30 days from invoice",
  "paymentTermDays": 30,
  "createdAt": "2026-08-22T13:12:45.000Z",
  "updatedAt": "2026-08-22T13:20:03.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)
