Availability Heatmap

The availability heatmap reports planned hours, time-off hours and capacity for every person and placeholder the caller can see, bucketed by day, week or month over a window. It is the public read of the same computation the planning board’s heatmap renders: the three terms are published separately, and a client derives the hours still available in a bucket as capacity_hours − (planned_hours + time_off_hours).

The availability heatmap object

Attribute Type Description
from date First day of the window the report was built over, after the default and validation rules were applied.
to date Last day of the window the report was built over, after the default and validation rules were applied.
assignees array One assignee object per person and placeholder in the caller’s view scope, for the requested page.
truncated boolean Whether the roster the report was built over was cut at a cap. false when the roster was served whole.
truncation object Which caps the roster stopped at. Carries projects, people and placeholders; each is the cap the roster stopped at as an integer, or null when that family was not cut.

The response also carries the pagination properties per_page, total_pages, total_entries, next_page, previous_page, page and links. total_entries counts assignees, not buckets. See the Forecast API overview for how pagination works across this surface.

The assignee object

Attribute Type Description
kind string person or placeholder. People and placeholders are numbered independently, so a row is identified by kind and id together; the same integer can name one of each.
id integer The ID of the user for a person, or of the placeholder for a placeholder.
name string The label for the row. For a person, the first and last name joined by a space, or Unnamed person when both are blank. For a placeholder, its own name — a placeholder has no other public read, so this is the only way to label the row.
buckets array One bucket object per day, week or month of the window, in ascending date order. A bucket with nothing to report can be omitted; see the bucket object.

The bucket object

Every hours field is in hours, never seconds, rounded to six decimal places. The three terms are independent and must not be summed in mixed units: planned_hours and time_off_hours are what is booked, capacity_hours is what could be worked.

Attribute Type Description
start_date date First day of the bucket that falls inside the window.
end_date date Last day of the bucket that falls inside the window.
planned_hours decimal Hours of scheduled work on the bucket’s days. A scheduled assignment contributes its per-working-day allocation on each working day of its span, and on every day of its span when it is flagged as active on days off. Time-off assignments are not counted here — their hours are time_off_hours. Work on projects outside the caller’s view scope is included as bare hours, so a visible person’s whole load is reported.
time_off_hours decimal Hours of approved time off and assigned company holidays on the bucket’s days, capped at the person’s own capacity for a day. 0.0 on every placeholder row, which never carries time off.
capacity_hours decimal Hours the assignee could work in the bucket: each day contributes the hours of its weekday in the assignee’s own work schedule, or, when no schedule is assigned, one fifth of weekly_capacity converted to hours (weekly_capacity / 3600 / 5) on a working day. null when the assignee has no usable capacity — a weekly_capacity of zero, or none at all, which a placeholder may have. A person with no schedule, and every placeholder, works Monday to Friday.
tracked_hours decimal Hours actually tracked against the caller’s visible projects on the bucket’s days. Returned only when includes=tracked_hours was requested, and only on person rows — a placeholder has no one to log time and never carries this field.

A daily bucket spans exactly one day. A weekly bucket is anchored on the account’s own week start day and a monthly bucket on the calendar month; both are clamped to the window, so a bucket that begins before from reports from as its start_date, and one that ends after to reports to as its end_date.

At daily scale every day of the window is published, including an empty one. At weekly and monthly scale a bucket with no planned hours and no time-off hours is omitted, so a bucket list is not a fixed number of entries. When includes=tracked_hours is in effect, a bucket is omitted only when planned, time-off and tracked hours are all zero.

Required permissions

The account must have Forecast enabled, and the caller must hold a Forecast seat with a Forecast read claim — forecast:read:all, forecast:read:managed or forecast:read:own. A caller without a seat, or without a read claim, gets 403 with Forecast is not enabled for this user.

The roster follows the caller’s own view scope, resolved server-side: an all caller sees every visible person and placeholder, a managed caller sees the projects they manage and their rostered people, and an own caller sees their own row. The request cannot widen it — there is no scope parameter, and one sent in the query is ignored. includes=tracked_hours needs no permission of its own: tracked hours follow the same view scope as the workload figures.

The shared gates, beta status and window rules are described on the Forecast API overview.

Availability Heatmap

Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes Harvest-Api-Stability: beta.

Returns the availability heatmap for the window. The response is 200 with the object above; the window is echoed back as it was resolved, so a request that sent no bounds reads the default it was answered over. The endpoint takes no filters.

GET /v2/forecast/heatmap
Parameter Type Description
from date Inclusive first day of the window. Send it with to, or send neither.
to date Inclusive last day of the window. Send it with from, or send neither. The window cannot span more than 24 months.
scale string The bucket size: daily (default), weekly, or monthly.
includes string Pass tracked_hours to add actual tracked hours to every bucket on a person row. It is the only value accepted. Actuals are reported weekly and monthly only, so scale=daily with includes=tracked_hours is served as weekly.
page integer The page number to use in pagination. (Default: 1)
per_page integer The number of assignees to return per page. Can range between 1 and 2000. (Default: 200)

With neither bound, the window defaults to the nine months before and after the account’s own today. With one bound, the request is refused. from may not be later than to. A malformed window answers 422 with error_code: "invalid_window".

Bucketing is set by scale alone: there is no interval or bucket parameter. cursor and updated_since are refused rather than ignored, because this collection is paged by offset and windowed by date.

Example Request:

curl "https://api.harvestapp.com/v2/forecast/heatmap?from=2026-03-02&to=2026-03-08&scale=weekly&includes=tracked_hours" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp ([email protected])"

Example Response:

{
  "from": "2026-03-02",
  "to": "2026-03-08",
  "assignees": [
    {
      "kind": "person",
      "id": 1782959,
      "name": "Kim Allen",
      "buckets": [
        {
          "start_date": "2026-03-02",
          "end_date": "2026-03-08",
          "planned_hours": 32.5,
          "time_off_hours": 7.0,
          "capacity_hours": 35.0,
          "tracked_hours": 30.0
        }
      ]
    },
    {
      "kind": "placeholder",
      "id": 884512,
      "name": "Contract Designer",
      "buckets": [
        {
          "start_date": "2026-03-02",
          "end_date": "2026-03-08",
          "planned_hours": 12.0,
          "time_off_hours": 0.0,
          "capacity_hours": 35.0
        }
      ]
    }
  ],
  "per_page": 200,
  "total_pages": 1,
  "total_entries": 2,
  "next_page": null,
  "previous_page": null,
  "page": 1,
  "links": {
    "first": "https://api.harvestapp.com/v2/forecast/heatmap?from=2026-03-02&includes=tracked_hours&page=1&per_page=200&scale=weekly&to=2026-03-08",
    "next": null,
    "previous": null,
    "last": "https://api.harvestapp.com/v2/forecast/heatmap?from=2026-03-02&includes=tracked_hours&page=1&per_page=200&scale=weekly&to=2026-03-08"
  },
  "truncated": false,
  "truncation": {
    "projects": null,
    "people": null,
    "placeholders": null
  }
}

Errors

Status When
400 The User-Agent header is missing: User-Agent header required.
400 page is not a positive integer: Invalid page parameter: must be greater than 0 or Invalid page parameter: must be an integer.
400 page is larger than the largest page the in-memory roster can serve: Invalid page parameter: must be from 1 to 2305843009213693.
400 per_page is outside the accepted range: Invalid per_page parameter: must be from 1 to 2000 or Invalid per_page parameter: must be an integer.
401 Authentication failed: Authentication failed for API request.
403 Forecast is not enabled for the account: Forecast is not enabled for this account.
403 The caller has no Forecast seat or no Forecast read claim: Forecast is not enabled for this user.
403 The account is inactive: Account inactive.
406 The Accept header disallows JSON.
422 The window is malformed — one bound only, a bound that is not a date, from later than to, or a span over 24 months. The body carries error_code: "invalid_window" and one of missing window bound, invalid date: nope, from must precede to, or window exceeds 24 months.
422 scale is not an accepted value: Invalid scale parameter: must be one of daily, weekly, monthly.
422 includes is not an accepted value: Invalid includes parameter: must be one of tracked_hours.
422 cursor is sent. A well-formed cursor is refused with Invalid cursor parameter: this endpoint does not support cursor pagination; a malformed one is refused by the v2-wide cursor check.
422 updated_since is sent: The updated_since parameter is not supported on this endpoint. A value that is not a datetime is refused earlier, with 400 and Invalid updated_since datetime provided: "...".

Still have questions? We’re happy to help!

Contact Us