Approvals
The approval object
An approval rolls up one user’s tracked time and expenses for a single period and approval bucket, so an integration can read the state of a team’s timesheets without loading every time entry.
| Attribute | Type | Description |
|---|---|---|
user_id |
integer | Unique ID of the user the roll-up covers. |
user_name |
string | The user’s display name, or their email when no name is set. |
avatar_url |
string | URL of the user’s avatar. null when the user has no settings. |
total_hours |
decimal | Hours booked in the period and bucket. |
billable_hours |
decimal | Billable subset of total_hours. |
has_running_timer |
boolean | true when a timer is running against an entry with non-zero hours. A zero-hour running timer is not counted. |
expenses_by_currency |
array | Expense totals for the period and bucket, one entry per billing currency. Empty when there are none. |
Each entry of expenses_by_currency contains:
| Attribute | Type | Description |
|---|---|---|
currency |
string | ISO 4217 currency code. |
total_amount |
decimal | Total expense amount in this currency. Expenses totalling zero are omitted. |
billable_amount |
decimal | Billable portion of total_amount, in the same currency. |
Amounts are never summed across currencies. Expenses whose project or client has been permanently deleted are omitted. A running timer contributes its stored hours, not a live timer total.
Required permissions
The account must have approval workflows enabled. Accounts without them return
403 Forbidden.
Administrators can read approvals for every user. Managers who can see their
managed people’s time, and members who have teammates, can read approvals only
for the users, projects, and teammates they have permission to see; requesting
another user’s approvals returns only the rows that caller can see. A caller
with neither (for example, a member with no teammates) gets 403 Forbidden.
To submit a timesheet, the caller must be able to edit the target user’s time
and expenses: a member can submit their own timesheet, a manager can submit for
their managed users, and an administrator can submit for any visible user. A
target outside that scope returns 404 Not Found.
List all approvals
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Returns one period’s approvals, grouped by user.
The response contains an object with an approvals property that contains an
array of up to per_page approval objects, ordered by user name. Each entry in
the array is a separate approval object. If no more approvals are available, the
resulting array will be empty. Several additional pagination properties are
included in the response to simplify paginating your requests.
GET /v2/approvals
| Parameter | Type | Description |
|---|---|---|
period_start |
date | Required. First day of the period, inclusive, as YYYY-MM-DD. |
period_end |
date | Required. Last day of the period, inclusive, as YYYY-MM-DD. |
approval_status |
string | The bucket to report: submitted or approved. Defaults to submitted when omitted. unsubmitted is not available yet. |
user_id |
integer | Optional. Only return approvals for this user ID. A blank value applies no filter. |
page |
integer | The page number to use in pagination. (Default: 1) |
per_page |
integer | The number of records to return per page. Can range between 1 and 2000. (Default: 2000) |
cursor |
string | Not used for pagination; this endpoint paginates by page. An empty or malformed value returns 422. |
Each period bound is inclusive. Invalid dates, a period that ends before it
starts, or a period longer than 366 days return 422. An invalid or blank
approval_status returns 422, as does an empty or malformed cursor. A page past the last page returns 200 OK
with an empty approvals array and a null next_page.
Example Request:
curl "https://api.harvestapp.com/v2/approvals?period_start=2026-10-05&period_end=2026-10-11" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "User-Agent: MyApp ([email protected])"
Example Response:
{
"approvals": [
{
"user_id": 1782959,
"user_name": "Kim Allen",
"avatar_url": "https://cache.harvestapp.com/assets/avatar/1782959/200x200.png",
"total_hours": 32.0,
"billable_hours": 24.0,
"has_running_timer": false,
"expenses_by_currency": [
{
"currency": "USD",
"total_amount": 145.5,
"billable_amount": 145.5
}
]
}
],
"period_start": "2026-10-05",
"period_end": "2026-10-11",
"approval_status": "submitted",
"per_page": 2000,
"total_pages": 1,
"total_entries": 1,
"next_page": null,
"previous_page": null,
"page": 1,
"links": {
"first": "https://api.harvestapp.com/v2/approvals?page=1&per_page=2000&period_end=2026-10-11&period_start=2026-10-05&ref=first",
"next": null,
"previous": null,
"last": "https://api.harvestapp.com/v2/approvals?page=1&per_page=2000&period_end=2026-10-11&period_start=2026-10-05&ref=last"
}
}Submit a timesheet for approval
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Submits a user’s timesheet for a date range, moving their time entries and
expenses in that range into the submitted bucket. Returns a confirmation and a
200 OK response code.
POST /v2/approvals/submit
| Parameter | Type | Description |
|---|---|---|
period_start |
date | Required. First day of the period, inclusive. Literal YYYY-MM-DD only. |
period_end |
date | Required. Last day of the period, inclusive. Literal YYYY-MM-DD only. |
user_id |
integer | Optional. The user to submit for. Defaults to the authenticated user; a blank value means the authenticated user. |
Send the body as JSON with a Content-Type: application/json header. A request
with a body whose content type is not JSON, XML, or form data returns 415. A date that is not in the literal
YYYY-MM-DD form, including a basic form such as 20260908 or a timestamp
such as 2026-09-08T00:00:00Z, returns 422.
Example Request:
curl -X POST "https://api.harvestapp.com/v2/approvals/submit" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "Content-Type: application/json" \
-H "User-Agent: MyApp ([email protected])" \
-d '{"period_start": "2026-10-05", "period_end": "2026-10-11"}'
Example Response:
{
"user_id": 1782959,
"period_start": "2026-10-05",
"period_end": "2026-10-11",
"status": "submitted",
"timesheet_version": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d"
}status is an acknowledgement that the request was accepted, not the range’s
resulting approval state. To read the state back, call
GET /v2/approvals for the same period.
Submitting notifies the user’s approvers, and a member submitting their own
timesheet also submits their covered-day expenses and notifies the approvers for
those. A repeated submission for the same range can notify approvers again and
returns a response indistinguishable from the first, so do not retry blindly
after a timeout. If a request times out, check the period with
GET /v2/approvals before submitting again.
Errors
The following status codes are returned for the approval endpoints:
| Status | Description |
|---|---|
400 |
A required User-Agent header is missing (User-Agent header required), or a page or per_page value is outside its allowed range. A page above the maximum returns Invalid page parameter: must be from 1 to 2305843009213693. |
401 |
Authentication failed: Authentication failed for API request. |
403 |
Approval workflows are not enabled for the account (Timesheet approvals are not enabled for this company), the caller is not authorized to read or submit approvals (Not authorized!), or the account is inactive (Account inactive). |
404 |
For POST /v2/approvals/submit, the target user does not exist, is outside the caller’s editable users, or has an ID beyond the supported range: Record not found. |
406 |
The Accept header does not allow JSON. |
415 |
The request has a body whose content type is not JSON, XML, or form data: Content-Type header required to be application/json, got "<type>". |
422 |
A period, approval_status, user_id, or cursor value is invalid, or a running timer overlaps the submitted range. See the messages below. |
500 |
A period outside the supported date range, or another unexpected error occurred. |
The 422 responses use these messages:
Invalid approval_status parameter: must be one of submitted, approvedInvalid approval_status parameter: unsubmitted is not available yet; a partially submitted multi-week period is not yet reported as unsubmittedInvalid user_id parameter: must be an integerInvalid cursor parameter: must not be emptyInvalid cursor parameter: must be a valid base64 encoded JSON stringInvalid cursor parameterInvalid period: period_start must be on or before period_endInvalid period: cannot exceed 366 daysperiod_start must be on or before period_endSubmission range cannot exceed 53 weeksInvalid <param> date provided: '<value>'Please stop your timer before submitting for approval.