Schedule Export
The schedule export returns the Forecast Schedule export’s rows as structured JSON: the same rows the CSV export file carries, read synchronously, for the board tab the caller names. The window is a run of whole weeks or whole months, published once as a periods list, and each row’s hours are keyed by the period’s start date — so no two arrays have to be paired by index. The rows are the same scheduled allocation the board draws; time off is not folded into them.
The schedule object
| Attribute | Type | Description |
|---|---|---|
grain |
string | The tab the rows were built for, echoed from grain: project or team. |
include_tasks |
boolean | Whether the rows itemise tasks. true or false on the project grain, echoing the resolved option; null on the team grain, which has no task grain. It is what tells two null task names apart: with tasks on, a row with no task is a taskless assignment; with tasks off, it is a person’s tasks on a project summed into one row. |
granularity |
string | The period size, echoed from granularity: weekly or monthly. |
from |
date | First day of the window the rows were built over, after snapping to whole periods. |
to |
date | Last day of that window. from is the first period’s start_date and to is the last period’s end_date. |
periods |
array | One period object per period of the window, in ascending date order. Every period of the window is published, including one nobody is booked in, and the list is the same on every page. |
rows |
array | The page’s rows: project schedule row objects on the project grain, team schedule row objects on the team grain. Empty when the filters match no work, and empty on a page past the last one. |
truncated |
boolean | Whether the row set was cut at a cap, so the body is incomplete. false when the read was served whole. |
truncation_notice |
string | The notice to show the caller when truncated is true: Some rows are not shown: this schedule is larger than the export limit. Narrow the filters or date range. It is null when the read was served whole. |
The response also carries the pagination properties per_page, total_pages, total_entries, next_page, previous_page, page and links. total_entries counts rows across every page, not rows on this page and not periods. See the Forecast API overview for how pagination works across this surface.
The period object
A weekly period starts on the account’s own week start day and ends six days later. A monthly period is one calendar month. Both are whole: the window is snapped outwards to cover them, so from and to always fall on a period boundary.
| Attribute | Type | Description |
|---|---|---|
start_date |
date | First day of the period. It is also the key this period’s value carries in every row’s hours object. |
end_date |
date | Last day of the period. |
The project schedule row object
One row per project, assignable and task. With include_tasks=false it is one row per project and assignable, and a person’s tasks on that project are summed into it. Every hours value is in hours, never seconds, rounded to two decimal places. Rows are ordered by client name, then project name, then task name, with placeholders last, then by person name.
| Attribute | Type | Description |
|---|---|---|
project |
object | The row’s project object. |
task_id |
integer | The ID of the task the row names, for joining to the Harvest task. It is null when the row names no task: a taskless assignment, or an aggregate row from include_tasks=false. |
task_name |
string | The name of the task, or null on the same two rows that carry no task_id. |
assignee_id |
integer | The ID of the user, placeholder or scheduled non-user the row is booked on. Read it with assignee_type: the three rosters are numbered independently. |
assignee_type |
string | Which roster assignee_id belongs to: user, placeholder, or scheduled_non_user. |
person_name |
string | The label for the assignee: a person’s full name, a placeholder’s name, or a scheduled non-user’s name. |
roles |
array | The assignee’s role names, sorted case-insensitively. It is empty for an assignee with no roles, always empty for a scheduled non-user, and empty for a caller the board does not name roles to. |
placeholder |
boolean | Whether the assignee is a placeholder rather than a person. |
hours |
object | The row’s scheduled hours per period, keyed by each period’s start_date (YYYY-MM-DD). One key per entry of periods, on every page: a period with nothing booked is 0.0, never absent. A bar 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 bars are not counted here. Only the bars in the caller’s own view scope and the filters’ narrowing are counted. |
The project object
| Attribute | Type | Description |
|---|---|---|
id |
integer | Unique ID for the project. |
client_name |
string | The name of the project’s client, or an empty string when the project has no client. |
name |
string | The project’s name. |
code |
string | The project’s code, or an empty string when it has none. |
color |
string | The project’s board colour: green, lime, yellow, brown, aqua, blue, indigo, purple, magenta, or gray. It is an empty string when the account has not chosen one. It is set through Board Projects. |
tags |
array | The project’s tag names, sorted case-insensitively. Empty when the project carries no tags. |
The team schedule row object
One row per assignable — a person, a placeholder, or a person holding a Forecast seat without a Harvest user — with work in the scoped read. Placeholders sort first, then rows by person name. The row set is decided by the scoped, filtered read, but its hours are the assignee’s whole board load: work on projects outside the caller’s view scope is included as bare hours, so a visible person never reads as free. That is why the team grain refuses the project, client and tag filters rather than applying them.
| Attribute | Type | Description |
|---|---|---|
assignee_id |
integer | The ID of the user, placeholder or scheduled non-user the row is booked on. Read it with assignee_type. |
assignee_type |
string | Which roster assignee_id belongs to: user, placeholder, or scheduled_non_user. |
person_name |
string | The label for the assignee: a person’s full name, a placeholder’s name, or a scheduled non-user’s name. |
roles |
array | The assignee’s role names, sorted case-insensitively. It is empty for an assignee with no roles, always empty for a scheduled non-user, and empty for a caller the board does not name roles to. |
placeholder |
boolean | Whether the assignee is a placeholder rather than a person. |
hours |
object | The assignee’s scheduled hours per period, keyed by each period’s start_date. One key per entry of periods, 0.0 where nothing is booked. Time off is not counted here — it is read through Time Off and Company Holidays. |
capacity |
object | The assignee’s capacity per period in hours, keyed like hours, or null when the assignee has no usable weekly capacity — a capacity of zero, or none at all, which a placeholder may have. A period’s value is the assignee’s own work schedule summed over its days, or, when no schedule is assigned, one fifth of weekly_capacity converted to hours (weekly_capacity / 3600 / 5) per working day. |
Required permissions
The account must have Forecast enabled, and the caller must hold a Forecast seat with a Forecast read claim. A caller without a seat, or without a read claim, gets 403 with Forecast is not enabled for this user; an account without Forecast gets 403 with Forecast is not enabled for this account.
The rows follow the caller’s own view scope, resolved server-side: a caller whose Forecast read claim is forecast:read:all reads the whole board, one with forecast:read:managed the projects they manage, and one with only forecast:read:own their own schedule. The request cannot widen it — there is no scope parameter, and one sent in the query is refused.
The shared gates, beta status and pagination rules are described on the Forecast API overview.
Schedule Export
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Returns the schedule export’s rows for one tab, paged, over the window the timeframe parameters resolve to. The response is 200 with the object above.
GET /v2/forecast/schedule
| Parameter | Type | Description |
|---|---|---|
grain |
string | Required. The tab to build the rows for: project or team. It has no default — a missing value is refused, because either default would silently answer the other tab’s rows. |
granularity |
string | Required. The period size: weekly or monthly. |
preset |
string | Required. The window, named rather than dated. With granularity=weekly it accepts this_week, 2_weeks, 16_weeks, this_month, this_year and custom; with granularity=monthly it accepts this_month, 3_months, 6_months, this_year and custom. |
starting |
date | First day of the window. Required with preset=custom, and refused with any other preset. |
ending |
date | Last day of the window. Required with preset=custom, and refused with any other preset. A custom range cannot exceed 732 days. |
include_tasks |
boolean | Whether the project grain itemises tasks. (Default: true) Pass false to sum a person’s tasks on a project into one row. On the team grain only false is accepted, since the tab has no task grain. |
match |
string | How the filter axes combine: all intersects them, any unions them. (Default: all) |
project_ids |
array | project grain only. Only rows on these projects. Send it as a repeated query parameter: project_ids[]=1&project_ids[]=2. |
client_ids |
array | project grain only. Only rows on the projects of these clients. |
tag_ids |
array | project grain only. Only rows on projects carrying these tags. |
staff_person_ids |
array | project grain only. Only rows on projects these people are rostered on. |
role_ids |
array | team grain only. Only assignees holding these roles. A role matches people and placeholders alike. |
department_ids |
array | team grain only. Only people in these teams. It is refused when the account does not have the Team feature. |
person_ids |
array | team grain only. Only these people. |
placeholder_ids |
array | team grain only. Only these placeholders. |
page |
integer | The page number to use in pagination. (Default: 1) |
per_page |
integer | The number of rows to return per page. Can range between 1 and 2000. (Default: 2000) |
ref |
string | The link label the pagination links carry (first, next, previous, last). It is accepted so a client can follow a link this endpoint returned; it changes nothing else. |
access_token and account_id are also accepted in the query string, for clients that cannot send headers; see Authentication.
The window is named, not dated. There are no from and to parameters: the span comes from granularity and preset, and a custom range from starting and ending. A from or to sent in the query is refused rather than read.
The resolved span is snapped outwards to whole periods, so the periods cover it exactly:
| Preset | granularity=weekly |
granularity=monthly |
|---|---|---|
this_week |
the account’s current week | not accepted |
2_weeks |
the current week and the one after it | not accepted |
16_weeks |
the current week and the fifteen after it | not accepted |
this_month |
every week overlapping the current month | the current month |
3_months |
not accepted | the current month and the two after it |
6_months |
not accepted | the current month and the five after it |
this_year |
every week overlapping the current year | every month of the current year |
custom |
the range between starting and ending, snapped to whole weeks |
the same range, snapped to whole months |
“Current” means the day the request is made, on the account’s own week start day for the weekly anchor. A custom range is snapped outwards too, so starting in the middle of a week is served from that week’s start.
Filters are refused, not dropped. A filter axis the requested tab does not read is a 422, because the web export silently ignores the other tab’s filters and a JSON body that looked filtered while being unfiltered would be worse than an error. A filter element that cannot be read as a positive integer is refused for the same reason: the filter reader drops it, and an emptied axis would widen the read to the whole visible board.
Caps. The row set is cut, and truncated set to true, when the board read under it hits one of its caps: 50,000 scheduled assignment bars, or the board’s own project, person, task or placeholder cap. The rows that survive are the ones the caps admitted, so truncation_notice is the only signal that the list is incomplete.
Example Request:
curl "https://api.harvestapp.com/v2/forecast/schedule?grain=project&granularity=weekly&preset=custom&starting=2026-03-02&ending=2026-03-15&include_tasks=true" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "User-Agent: MyApp ([email protected])"
Example Response:
{
"grain": "project",
"include_tasks": true,
"granularity": "weekly",
"from": "2026-03-02",
"to": "2026-03-15",
"periods": [
{
"start_date": "2026-03-02",
"end_date": "2026-03-08"
},
{
"start_date": "2026-03-09",
"end_date": "2026-03-15"
}
],
"rows": [
{
"project": {
"id": 14307913,
"client_name": "ABC Corp",
"name": "[MW] Marketing Website",
"code": "MW",
"color": "blue",
"tags": [
"Internal"
]
},
"task_id": 8083365,
"task_name": "Graphic Design",
"assignee_id": 1782959,
"assignee_type": "user",
"person_name": "Kim Allen",
"roles": [
"Designer"
],
"placeholder": false,
"hours": {
"2026-03-02": 20.0,
"2026-03-09": 16.0
}
},
{
"project": {
"id": 14308069,
"client_name": "123 Industries",
"name": "[OS1] Online Store - Phase 1",
"code": "OS1",
"color": "",
"tags": []
},
"task_id": null,
"task_name": null,
"assignee_id": 884512,
"assignee_type": "placeholder",
"person_name": "Contract Designer",
"roles": [],
"placeholder": true,
"hours": {
"2026-03-02": 0.0,
"2026-03-09": 12.0
}
}
],
"truncated": false,
"truncation_notice": null,
"per_page": 2000,
"total_pages": 1,
"total_entries": 2,
"next_page": null,
"previous_page": null,
"page": 1,
"links": {
"first": "https://api.harvestapp.com/v2/forecast/schedule?ending=2026-03-15&grain=project&granularity=weekly&include_tasks=true&page=1&per_page=2000&preset=custom&ref=first&starting=2026-03-02",
"next": null,
"previous": null,
"last": "https://api.harvestapp.com/v2/forecast/schedule?ending=2026-03-15&grain=project&granularity=weekly&include_tasks=true&page=1&per_page=2000&preset=custom&ref=last&starting=2026-03-02"
}
}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 row list 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. |
400 |
updated_since is not a datetime: Invalid updated_since datetime provided: "nope". |
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 |
A parameter this endpoint does not have is sent — from, to, scope, project_id for project_ids, or any other typo: Invalid <name>[, <name>…] parameter: not a parameter of the forecast schedule. |
422 |
grain is missing or not an accepted value: Invalid grain parameter: must be one of project, team. |
422 |
match is not an accepted value: Invalid match parameter: must be one of all, any. |
422 |
A filter axis belongs to the other tab: Invalid project_ids parameter: the team grain does not filter by it, or Invalid person_ids parameter: the project grain does not filter by it. |
422 |
department_ids is sent for an account without the Team feature: Invalid department_ids parameter: departments are not enabled for this company. |
422 |
A filter is not a repeated query parameter, or carries an element that is not a positive integer: Invalid project_ids parameter: must be an array or Invalid role_ids parameter: must be an array of positive integers. |
422 |
starting or ending is sent with a preset other than custom: starting and ending are only valid with preset=custom. |
422 |
granularity is missing or not an accepted value: Unknown granularity. |
422 |
preset is missing, or is not one of the presets of the requested granularity: Unknown timeframe. |
422 |
A custom range is incomplete, unreadable, reversed, or longer than 732 days. Only the first failure is reported: A start date is required., An end date is required., Invalid start date., Invalid end date., Start date must be on or before the end date., or Choose a range of at most two years. |
422 |
include_tasks is not a boolean: The include-tasks option must be true or false. |
422 |
include_tasks=true is asked of the team grain: Tasks can only be included in the project schedule export. |
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. |
The page, per_page, cursor and updated_since checks are v2-wide and run before the account and per-user gates, so a malformed one answers its own 400 (or 422) rather than a 403. Every other refusal on this page runs after the gates.