Time Off and Company Holidays
The time-off layer is the part of the Forecast board that says who is away: one row per approved PTO day and per holiday day, for every person the caller can see, plus the company-wide closures the Company Calendar draws. The rows are display-only — PTO is edited through the PTO API — but the planning-authored half of the Company Calendar is written here.
The time-off entry object
Each row is one day for one person. A row is identified by user_id and id together: id names the source day, not the row, so a holiday calendar shared by several people publishes the same id once per person.
| Attribute | Type | Description |
|---|---|---|
id |
string | Opaque ID of the source day. A holiday calendar entry is shared, so everyone on that calendar gets the same id for the same day. Its format is not a contract. |
group_id |
string | Opaque grouping token. Equal values are the same underlying PTO request or holiday calendar entry, so a multi-day request groups. Its format is not a contract. |
user_id |
integer | The ID of the person the day belongs to — the same ID GET /v2/users/{USER_ID} serves. |
kind |
string | pto for an approved PTO day, holiday for a holiday assigned to that person’s own calendar. |
date |
date | The day. Two partial-day requests can land on one date, so date alone does not identify a row. |
hours |
decimal | That day’s hours for that person, so a half day is 4.0. A holiday covering a day that also carries a PTO request replaces it rather than stacking. |
label |
string | The PTO type’s name for a pto row, the holiday’s name for a holiday row. |
pto_type_id |
integer | The PTO type — the same ID GET /v2/pto/types serves. It is null for a holiday row. |
start_time_minutes |
integer | Minutes after midnight the partial day starts, so 540 is 09:00. It is null on a whole day, and set only for partial-day PTO. |
end_time_minutes |
integer | Minutes after midnight the partial day ends, so 780 is 13:00. It is null on a whole day, and set only for partial-day PTO. |
The company holiday object
A company-wide closure with no assignee. The time-off read unions two sources into this one shape and tags each row with source; a write publishes the same shape, so a client can reconcile what it created with what it reads back.
| Attribute | Type | Description |
|---|---|---|
id |
integer | Unique ID for the holiday. It is null for a pto row, whose range is a union with no single row behind it. |
name |
string | The closure’s name. A pto row whose date several calendars close on joins their distinct names, as Christmas / Natale. |
source |
string | planning for a row authored on the Company Calendar, which is writable on this page. pto for a range derived from the holiday calendars the account uses, which is read-only here. |
start_date |
date | Inclusive first day of the closure. |
end_date |
date | Inclusive last day of the closure. It equals start_date for a single day. Consecutive pto days with the same name are merged into one row. |
Required permissions
The two halves of this page are gated differently, because they are different controllers.
The read needs a Forecast seat and a forecast read claim, and answers 403 with Forecast access is required when the caller lacks either. It has no separate account-level refusal of its own: a caller with no Forecast at all is refused by the same message.
The three holiday writes sit behind three gates, and a caller is answered by the first one that fails:
403withForecast is not enabled for this accountwhen the account does not have the Forecast board.403withForecast is not enabled for this userwhen the caller holds no Forecast seat, or holds one without a forecast read claim.403withManaging the Company calendar requires company-wide Forecast editing accesswhen the caller can read the board but holds no company-wide write claim. A caller whose edit scope is limited to the projects they manage is refused by this same message, and so is a read-only Forecast holder: a holiday belongs to no project, so a narrower edit scope bounds nothing here.
The gates run before any lookup, so an unentitled caller is told what they lack rather than whether an id exists.
The read scope comes from the token’s user, never from a request parameter: a caller scoped to their own schedule sees only their own rows, whatever the request asks for.
The shared Forecast gates, the beta contract, the window rules and the pagination rules are on the Forecast API overview.
List the time-off layer
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Returns the time-off rows and the company holidays over a window and a 200 OK response code. It sets no Location header, and the rows are not addressable: this read is display-only and has no write twin. Nothing here can be edited — a PTO day is created, approved and cancelled through Time Off Requests, and the pto holidays through Holiday Calendars.
time_off is the paged half. It carries one row per PTO day and per holiday day for the people the caller can see, ordered by date, then user_id, then id. Only approved PTO requests produce rows, and a holiday day is published for a person only where their own work schedule gives that day hours. A PTO request day that falls on a holiday the person is assigned is replaced by the holiday row. The rows need the account’s PTO module: an account without it is served company_holidays alone, with time_off empty.
The person set is the board’s own — the people whose bars the caller can see on the board window, plus a person carrying time off in the window with no roster work on a visible project — and it stops at the same 5,000-person cap the board applies. This read publishes no truncation flag, so a caller reading a beyond-cap roster cannot tell from the body that it was cut.
company_holidays is the whole set inside the window, never paged: a holiday is a range rather than a person-day, so the window already bounds it. It lists the pto ranges first, then the planning ones, the latter ordered by start date.
Paging is by offset only, through page and per_page. A cursor is shape-checked and then has no effect on this read.
GET /v2/forecast/time_off
| Parameter | Type | Description |
|---|---|---|
from |
date | Inclusive first day of the window. Send it with to or not at all. With neither bound the window is the company’s own today, nine months either side. |
to |
date | Inclusive last day of the window. Send it with from or not at all. The window cannot exceed 24 months, and from cannot be later than to. |
page |
integer | The page of time_off rows to return. (Default: 1) |
per_page |
integer | The number of time_off rows to return per page. Can range between 1 and 2000. (Default: 2000) |
updated_since |
datetime | Ignored rather than applied: this read is windowed by date, so a delta has nothing to narrow. A value that is not a datetime is still refused, with 400 and Invalid updated_since datetime provided: "...". |
A page past the last one answers an empty time_off array rather than a 404.
Example Request:
curl "https://api.harvestapp.com/v2/forecast/time_off?from=2026-03-01&to=2026-03-31" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "User-Agent: MyApp ([email protected])"
Example Response:
{
"time_off": [
{
"id": "pto-request-day-88421",
"group_id": "pto-request-31207",
"user_id": 2876502,
"kind": "pto",
"date": "2026-03-02",
"hours": 8.0,
"label": "Vacation",
"pto_type_id": 4471,
"start_time_minutes": null,
"end_time_minutes": null
},
{
"id": "pto-request-day-88455",
"group_id": "pto-request-31219",
"user_id": 2876503,
"kind": "pto",
"date": "2026-03-02",
"hours": 4.0,
"label": "Vacation",
"pto_type_id": 4471,
"start_time_minutes": 540,
"end_time_minutes": 780
},
{
"id": "pto-holiday-calendar-entry-6602",
"group_id": "pto-holiday-calendar-entry-6602",
"user_id": 2876502,
"kind": "holiday",
"date": "2026-03-03",
"hours": 8.0,
"label": "Founders Day",
"pto_type_id": null,
"start_time_minutes": null,
"end_time_minutes": null
}
],
"company_holidays": [
{
"id": null,
"name": "Founders Day",
"source": "pto",
"start_date": "2026-03-03",
"end_date": "2026-03-03"
},
{
"id": 1182,
"name": "Company offsite",
"source": "planning",
"start_date": "2026-03-05",
"end_date": "2026-03-06"
}
],
"per_page": 2000,
"total_pages": 1,
"total_entries": 3,
"next_page": null,
"previous_page": null,
"page": 1,
"links": {
"first": "https://api.harvestapp.com/v2/forecast/time_off?from=2026-03-01&page=1&per_page=2000&to=2026-03-31",
"next": null,
"previous": null,
"last": "https://api.harvestapp.com/v2/forecast/time_off?from=2026-03-01&page=1&per_page=2000&to=2026-03-31"
}
}Create a company holiday
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Creates a company-wide holiday on the Company Calendar and returns a company holiday object with a 201 Created response code. The write is attributed to the caller, and the account’s Forecast time-off layer shows the closure to everyone from the next read.
It sets no Location header: there is no member read for a holiday, so the only address a create could publish is one that answers 404.
A planning holiday is not PTO. It belongs to no holiday calendar and no person, so it writes no holiday calendar entry behind the client’s back; the holiday calendars themselves are written through Holiday Calendars.
A create is not idempotent. Nothing makes a name and a range unique, so repeating the same request creates a second holiday rather than answering the first.
POST /v2/forecast/holidays
| Parameter | Type | Description |
|---|---|---|
name |
string | Required. The closure’s name, up to 255 characters. |
start_date |
date | Required. Inclusive first day of the closure. |
end_date |
date | Required. Inclusive last day of the closure. It must be on or after start_date; a single-day closure sends the same date twice. |
Example Request:
curl -X POST "https://api.harvestapp.com/v2/forecast/holidays" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "Content-Type: application/json" \
-H "User-Agent: MyApp ([email protected])" \
-d '{"name": "Founders Day", "start_date": "2026-03-04", "end_date": "2026-03-06"}'
Example Response:
{
"id": 1182,
"name": "Founders Day",
"source": "planning",
"start_date": "2026-03-04",
"end_date": "2026-03-06"
}Update a company holiday
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Renames a holiday, moves its range, or both, and returns the updated company holiday object with a 200 OK response code. The update is partial: an attribute the body leaves out keeps its current value, so a rename alone moves nothing. Repeating an identical update is a no-op that answers the same row.
Only a holiday whose source is planning can be updated. A pto row of the time-off read has no id and no write here — those are holiday calendar entries, written through Holiday Calendars.
PATCH /v2/forecast/holidays/{HOLIDAY_ID}
PUT is accepted on the same path with the same body and the same effect.
| Parameter | Type | Description |
|---|---|---|
name |
string | The closure’s new name, up to 255 characters. |
start_date |
date | The closure’s new inclusive first day. |
end_date |
date | The closure’s new inclusive last day. It must be on or after the start_date the row ends up with. |
Example Request:
curl -X PATCH "https://api.harvestapp.com/v2/forecast/holidays/1182" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "Content-Type: application/json" \
-H "User-Agent: MyApp ([email protected])" \
-d '{"name": "Founders Day observed", "end_date": "2026-03-09"}'
Example Response:
{
"id": 1182,
"name": "Founders Day observed",
"source": "planning",
"start_date": "2026-03-04",
"end_date": "2026-03-09"
}Delete a company holiday
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Deletes a holiday and answers a 200 OK response code with the deleted company holiday object, never a 204 and never an empty body. Nothing references a holiday, so the destroy is real and the closure disappears from the next time-off read. A second delete of the same id answers 404.
DELETE /v2/forecast/holidays/{HOLIDAY_ID}
Example Request:
curl -X DELETE "https://api.harvestapp.com/v2/forecast/holidays/1182" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "User-Agent: MyApp ([email protected])"
Example Response:
{
"id": 1182,
"name": "Founders Day observed",
"source": "planning",
"start_date": "2026-03-04",
"end_date": "2026-03-09"
}Errors
| Status | When |
|---|---|
400 |
The User-Agent header is missing: User-Agent header required. |
400 |
page or per_page is not an integer or is out of range: Invalid page parameter: must be an integer, Invalid page parameter: must be greater than 0, Invalid per_page parameter: must be an integer, Invalid per_page parameter: must be from 1 to 2000. |
400 |
page names a page whose offset is too large to serve: Invalid page parameter: must be from 1 to 2305843009213693. |
401 |
Authentication failed: Authentication failed for API request. |
403 |
On the read, the caller holds no Forecast seat, or holds one without a forecast read claim: Forecast access is required. |
403 |
On a write, the account does not have the Forecast board: Forecast is not enabled for this account. |
403 |
On a write, the caller holds no Forecast seat, or holds one without a forecast read claim: Forecast is not enabled for this user. |
403 |
On a write, the caller has no company-wide Forecast write claim, so they cannot manage the Company Calendar: Managing the Company calendar requires company-wide Forecast editing access. A :managed editor and a read-only holder get the same message. |
403 |
The account is inactive: Account inactive. |
404 |
On a write, the id names no holiday this caller can reach — an unknown id, a malformed one such as 1182abc, or another company’s holiday: Record not found. |
406 |
The Accept header disallows JSON. |
409 |
The account’s Forecast schedule is being imported, so no holiday write is accepted: This account’s Forecast schedule is being imported, so this change wasn’t saved. Try again once the import finishes. with error_code: "migration_in_progress". |
409 |
The holiday is being changed by another writer: That holiday is being changed by someone else. Try again. with error_code: "locked". The request can be retried. |
415 |
A request body was sent with a media type other than JSON or form data: Content-Type header required to be application/json, got ... |
422 |
On the read, a window bound is missing, is not an ISO 8601 date, is later than its pair, or the window exceeds 24 months. The body carries error_code: "invalid_window" and one of missing window bound, invalid date: 2026-13-01, from must precede to, window exceeds 24 months. |
422 |
On the read, cursor is malformed: Invalid cursor parameter, Invalid cursor parameter: must not be empty, or Invalid cursor parameter: must be a valid base64 encoded JSON string. |
422 |
On a write, a start_date or end_date is present but is not an ISO 8601 date: Invalid start_date date provided: 'next month', and the same message for end_date. A bound the body omits is not refused here — it reaches the model’s own presence check instead. |
422 |
On a write, the holiday is refused by the model. The body carries error_code: "invalid_holiday" and an errors array, and message repeats the first entry: Name can't be blank, Name is too long (maximum is 255 characters), Start date can't be blank, End date can't be blank, End date must be on or after the start date. |
422 |
On a write, a cursor or updated_since is sent: Invalid cursor parameter: this endpoint does not support cursor pagination and The updated_since parameter is not supported on this endpoint. |
500 |
An unexpected failure. |