> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/productivity/harvest.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Harvest

Harvest is a time tracking and invoicing tool. Manage clients, contacts, projects, time entries, expenses, estimates and invoices.

![Harvest logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-07f03beefc6f2e1803e13ac1c7df4ff4a5faa97c%2Fharvest.png?alt=media)

|                    |                                                                          |
| ------------------ | ------------------------------------------------------------------------ |
| **Category**       | [Productivity](https://docs.fastn.ai/connectors/catalog/productivity.md) |
| **Website**        | [getharvest.com](https://getharvest.com)                                 |
| **Authentication** | Account ID and access token                                              |
| **Slug**           | `harvest`                                                                |
| **On fastn.ai**    | [Embed Harvest in your product](https://fastn.ai/integrations/harvest)   |

## Setup

Your customers enter their account id and access token for Harvest when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Harvest from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Harvest**.
2. Select **Connect** on the Harvest card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Harvest's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Client</td><td><code>createClient</code></td><td>Create a client that projects, invoices and estimates can be billed to.</td></tr><tr><td>Create Contact</td><td><code>createContact</code></td><td>Create a contact person against an existing client.</td></tr><tr><td>Create Estimate</td><td><code>createEstimate</code></td><td>Create an estimate for a client from explicit line items.</td></tr><tr><td>Create Estimate Item Category</td><td><code>createEstimateItemCategory</code></td><td>Create an estimate item category for use as the kind of an estimate line item.</td></tr><tr><td>Create Expense</td><td><code>createExpense</code></td><td>Record an expense against a project. Supply units for unit-based expense categories, otherwise supply total cost. Receipt files must be uploaded through the Harvest web app.</td></tr><tr><td>Create Expense Category</td><td><code>createExpenseCategory</code></td><td>Create an expense category that expenses can be tracked against.</td></tr><tr><td>Create Free Form Invoice</td><td><code>createFreeFormInvoice</code></td><td>Create an invoice from explicit line items rather than from tracked time and expenses.</td></tr><tr><td>Create Invoice From Tracked Time And Expenses</td><td><code>createInvoiceFromTrackedTime</code></td><td>Create an invoice by importing uninvoiced tracked time and expenses from the client's projects.</td></tr><tr><td>Create Invoice Item Category</td><td><code>createInvoiceItemCategory</code></td><td>Create an invoice item category for use as the kind of an invoice line item.</td></tr><tr><td>Create Invoice Payment</td><td><code>createInvoicePayment</code></td><td>Record a payment against an invoice.</td></tr></tbody></table>

<details>

<summary>View 113 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Project</td><td><code>createProject</code></td><td>Create a project for a client, including its billing and budgeting configuration.</td></tr><tr><td>Create Role</td><td><code>createRole</code></td><td>Create a business role and optionally assign users to it.</td></tr><tr><td>Create Task</td><td><code>createTask</code></td><td>Create a task that can be assigned to projects for time tracking.</td></tr><tr><td>Create Task Assignment</td><td><code>createTaskAssignment</code></td><td>Assign an existing task to a project so time can be tracked against it.</td></tr><tr><td>Create Time Entry By Duration</td><td><code>createTimeEntryByDuration</code></td><td>Log time against a project task by duration. Omitting hours starts a running timer.</td></tr><tr><td>Create Time Entry By Start And End Time</td><td><code>createTimeEntryByStartEndTime</code></td><td>Log time against a project task using clock times. Requires the company to be configured for timestamp timers.</td></tr><tr><td>Create User</td><td><code>createUser</code></td><td>Invite a new teammate to the Harvest account.</td></tr><tr><td>Create User Assignment</td><td><code>createUserAssignment</code></td><td>Assign a teammate to a project so they can track time against it.</td></tr><tr><td>Create User Billable Rate</td><td><code>createUserBillableRate</code></td><td>Record a new billable rate for a teammate, effective from a given date.</td></tr><tr><td>Create User Cost Rate</td><td><code>createUserCostRate</code></td><td>Record a new internal cost rate for a teammate, effective from a given date.</td></tr><tr><td>Delete Client</td><td><code>deleteClient</code></td><td>Permanently delete a client. Clients with associated projects, invoices or estimates cannot be deleted. The endpoint</td></tr><tr><td>Delete Contact</td><td><code>deleteContact</code></td><td>Permanently delete a client contact. The endpoint</td></tr><tr><td>Delete Estimate</td><td><code>deleteEstimate</code></td><td>Permanently delete an estimate. The endpoint</td></tr><tr><td>Delete Estimate Item Category</td><td><code>deleteEstimateItemCategory</code></td><td>Permanently delete an estimate item category. The endpoint</td></tr><tr><td>Delete Estimate Message</td><td><code>deleteEstimateMessage</code></td><td>Delete a message record from an estimate's message history. The endpoint</td></tr><tr><td>Delete Expense</td><td><code>deleteExpense</code></td><td>Permanently delete an expense. Invoiced expenses cannot be deleted. The endpoint</td></tr><tr><td>Delete Expense Category</td><td><code>deleteExpenseCategory</code></td><td>Permanently delete an expense category. Categories with tracked expenses cannot be deleted. The endpoint</td></tr><tr><td>Delete Invoice</td><td><code>deleteInvoice</code></td><td>Permanently delete an invoice. The endpoint</td></tr><tr><td>Delete Invoice Item Category</td><td><code>deleteInvoiceItemCategory</code></td><td>Permanently delete an invoice item category. The endpoint</td></tr><tr><td>Delete Invoice Message</td><td><code>deleteInvoiceMessage</code></td><td>Delete a message record from an invoice's message history. The endpoint</td></tr><tr><td>Delete Invoice Payment</td><td><code>deleteInvoicePayment</code></td><td>Delete a payment previously recorded against an invoice. The endpoint</td></tr><tr><td>Delete Project</td><td><code>deleteProject</code></td><td>Permanently delete a project along with its time entries and expenses. The endpoint</td></tr><tr><td>Delete Role</td><td><code>deleteRole</code></td><td>Permanently delete a business role. The endpoint</td></tr><tr><td>Delete Task</td><td><code>deleteTask</code></td><td>Permanently delete a task. Tasks with tracked time cannot be deleted. The endpoint</td></tr><tr><td>Delete Task Assignment</td><td><code>deleteTaskAssignment</code></td><td>Remove a task from a project. Assignments with tracked time cannot be deleted. The endpoint</td></tr><tr><td>Delete Time Entry</td><td><code>deleteTimeEntry</code></td><td>Permanently delete a time entry. Invoiced entries cannot be deleted. The endpoint</td></tr><tr><td>Delete Time Entry External Reference</td><td><code>deleteTimeEntryExternalReference</code></td><td>Remove the external system reference attached to a time entry, leaving the entry itself in place. The endpoint</td></tr><tr><td>Delete User</td><td><code>deleteUser</code></td><td>Permanently delete a teammate. Teammates with tracked time or expenses cannot be deleted and must be archived instead. The endpoint</td></tr><tr><td>Delete User Assignment</td><td><code>deleteUserAssignment</code></td><td>Remove a teammate from a project. Assignments with tracked time cannot be deleted. The endpoint</td></tr><tr><td>Get Client</td><td><code>getClient</code></td><td>Retrieve a single client by its Harvest client ID.</td></tr><tr><td>Get Company</td><td><code>getCompany</code></td><td>Retrieve the settings and enabled features of the Harvest company the token belongs to.</td></tr><tr><td>Get Contact</td><td><code>getContact</code></td><td>Retrieve a single client contact by its Harvest contact ID.</td></tr><tr><td>Get Current User</td><td><code>getCurrentUser</code></td><td>Retrieve the teammate the authenticating token belongs to.</td></tr><tr><td>Get Estimate</td><td><code>getEstimate</code></td><td>Retrieve a single estimate, including its line items, by estimate ID.</td></tr><tr><td>Get Estimate Item Category</td><td><code>getEstimateItemCategory</code></td><td>Retrieve a single estimate item category by its ID.</td></tr><tr><td>Get Expense</td><td><code>getExpense</code></td><td>Retrieve a single expense by its Harvest expense ID.</td></tr><tr><td>Get Expense Category</td><td><code>getExpenseCategory</code></td><td>Retrieve a single expense category by its ID.</td></tr><tr><td>Get Expense Report By Category</td><td><code>getExpenseReportByCategory</code></td><td>Report expense totals grouped by expense category over a date range.</td></tr><tr><td>Get Expense Report By Client</td><td><code>getExpenseReportByClient</code></td><td>Report expense totals grouped by client over a date range.</td></tr><tr><td>Get Expense Report By Project</td><td><code>getExpenseReportByProject</code></td><td>Report expense totals grouped by project over a date range.</td></tr><tr><td>Get Expense Report By Team</td><td><code>getExpenseReportByTeam</code></td><td>Report expense totals grouped by teammate over a date range.</td></tr><tr><td>Get Invoice</td><td><code>getInvoice</code></td><td>Retrieve a single invoice, including its line items, by invoice ID.</td></tr><tr><td>Get Invoice Item Category</td><td><code>getInvoiceItemCategory</code></td><td>Retrieve a single invoice item category by its ID.</td></tr><tr><td>Get Invoice Message Draft</td><td><code>getInvoiceMessageDraft</code></td><td>Retrieve the default subject and body Harvest would use for an invoice message, without sending anything.</td></tr><tr><td>Get Project</td><td><code>getProject</code></td><td>Retrieve a single project by its Harvest project ID.</td></tr><tr><td>Get Project Budget Report</td><td><code>getProjectBudgetReport</code></td><td>Report budget consumption and remaining budget for every project on the account.</td></tr><tr><td>Get Role</td><td><code>getRole</code></td><td>Retrieve a single role and the users assigned to it.</td></tr><tr><td>Get Task</td><td><code>getTask</code></td><td>Retrieve a single task by its Harvest task ID.</td></tr><tr><td>Get Task Assignment</td><td><code>getTaskAssignment</code></td><td>Retrieve a single task assignment on a project.</td></tr><tr><td>Get Time Entry</td><td><code>getTimeEntry</code></td><td>Retrieve a single time entry by its Harvest time entry ID.</td></tr><tr><td>Get Time Report By Client</td><td><code>getTimeReportByClient</code></td><td>Report tracked and billable hours grouped by client over a date range.</td></tr><tr><td>Get Time Report By Project</td><td><code>getTimeReportByProject</code></td><td>Report tracked and billable hours grouped by project over a date range.</td></tr><tr><td>Get Time Report By Task</td><td><code>getTimeReportByTask</code></td><td>Report tracked and billable hours grouped by task over a date range.</td></tr><tr><td>Get Time Report By Team</td><td><code>getTimeReportByTeam</code></td><td>Report tracked and billable hours grouped by teammate over a date range.</td></tr><tr><td>Get Uninvoiced Report</td><td><code>getUninvoicedReport</code></td><td>Report uninvoiced hours, fees and expenses per project over a date range.</td></tr><tr><td>Get User</td><td><code>getUser</code></td><td>Retrieve a single teammate by their Harvest user ID.</td></tr><tr><td>Get User Assignment</td><td><code>getUserAssignment</code></td><td>Retrieve a single user assignment on a project.</td></tr><tr><td>Get User Billable Rate</td><td><code>getUserBillableRate</code></td><td>Retrieve a single billable rate recorded for a teammate.</td></tr><tr><td>Get User Cost Rate</td><td><code>getUserCostRate</code></td><td>Retrieve a single internal cost rate recorded for a teammate.</td></tr><tr><td>List Clients</td><td><code>listClients</code></td><td>List every client on the Harvest account, most recently created first.</td></tr><tr><td>List Contacts</td><td><code>listContacts</code></td><td>List every client contact on the account, most recently created first.</td></tr><tr><td>List Estimate Item Categories</td><td><code>listEstimateItemCategories</code></td><td>List the estimate item categories available for estimate line items.</td></tr><tr><td>List Estimate Messages</td><td><code>listEstimateMessages</code></td><td>List the messages that have been sent for an estimate.</td></tr><tr><td>List Estimates</td><td><code>listEstimates</code></td><td>List estimates on the account, most recently issued first.</td></tr><tr><td>List Expense Categories</td><td><code>listExpenseCategories</code></td><td>List every expense category defined on the account.</td></tr><tr><td>List Expenses</td><td><code>listExpenses</code></td><td>List tracked expenses, most recently spent first.</td></tr><tr><td>List Invoice Item Categories</td><td><code>listInvoiceItemCategories</code></td><td>List the invoice item categories available for invoice line items.</td></tr><tr><td>List Invoice Messages</td><td><code>listInvoiceMessages</code></td><td>List the messages that have been sent for an invoice.</td></tr><tr><td>List Invoice Payments</td><td><code>listInvoicePayments</code></td><td>List the payments recorded against an invoice.</td></tr><tr><td>List Invoices</td><td><code>listInvoices</code></td><td>List invoices on the account, most recently issued first.</td></tr><tr><td>List My Project Assignments</td><td><code>listMyProjectAssignments</code></td><td>List the active project assignments of the teammate the authenticating token belongs to.</td></tr><tr><td>List Project Task Assignments</td><td><code>listProjectTaskAssignments</code></td><td>List the tasks assigned to a specific project.</td></tr><tr><td>List Project User Assignments</td><td><code>listProjectUserAssignments</code></td><td>List the people assigned to a specific project.</td></tr><tr><td>List Projects</td><td><code>listProjects</code></td><td>List every project on the account, most recently created first.</td></tr><tr><td>List Roles</td><td><code>listRoles</code></td><td>List the business roles defined on the account.</td></tr><tr><td>List Task Assignments</td><td><code>listTaskAssignments</code></td><td>List task assignments across every project on the account.</td></tr><tr><td>List Tasks</td><td><code>listTasks</code></td><td>List every task defined on the account, most recently created first.</td></tr><tr><td>List Time Entries</td><td><code>listTimeEntries</code></td><td>List tracked time entries, most recently spent first.</td></tr><tr><td>List User Assignments</td><td><code>listUserAssignments</code></td><td>List user assignments across every project on the account.</td></tr><tr><td>List User Billable Rates</td><td><code>listUserBillableRates</code></td><td>List the historical billable rates recorded for a teammate.</td></tr><tr><td>List User Cost Rates</td><td><code>listUserCostRates</code></td><td>List the historical internal cost rates recorded for a teammate.</td></tr><tr><td>List User Project Assignments</td><td><code>listUserProjectAssignments</code></td><td>List the active project assignments of a specific teammate.</td></tr><tr><td>List User Teammates</td><td><code>listUserTeammates</code></td><td>List the teammates assigned to a manager.</td></tr><tr><td>List Users</td><td><code>listUsers</code></td><td>List the teammates on the account, most recently created first.</td></tr><tr><td>Mark Estimate As Accepted</td><td><code>markEstimateAsAccepted</code></td><td>Mark an open estimate as accepted by the client.</td></tr><tr><td>Mark Estimate As Declined</td><td><code>markEstimateAsDeclined</code></td><td>Mark an open estimate as declined by the client.</td></tr><tr><td>Mark Estimate As Sent</td><td><code>markEstimateAsSent</code></td><td>Mark a draft estimate as sent without emailing anyone.</td></tr><tr><td>Mark Invoice As Closed</td><td><code>markInvoiceAsClosed</code></td><td>Close an open invoice as written off.</td></tr><tr><td>Mark Invoice As Draft</td><td><code>markInvoiceAsDraft</code></td><td>Return an open invoice to draft state.</td></tr><tr><td>Mark Invoice As Sent</td><td><code>markInvoiceAsSent</code></td><td>Mark a draft invoice as sent without emailing anyone.</td></tr><tr><td>Reopen Estimate</td><td><code>reopenEstimate</code></td><td>Reopen an accepted or declined estimate.</td></tr><tr><td>Reopen Invoice</td><td><code>reopenInvoice</code></td><td>Reopen a closed or paid invoice.</td></tr><tr><td>Restart Time Entry</td><td><code>restartTimeEntry</code></td><td>Restart a stopped time entry so its timer runs again.</td></tr><tr><td>Send Estimate Message</td><td><code>sendEstimateMessage</code></td><td>Email an estimate to its recipients. This delivers real email to every address supplied.</td></tr><tr><td>Send Invoice Message</td><td><code>sendInvoiceMessage</code></td><td>Email an invoice to its recipients. This delivers real email to every address supplied.</td></tr><tr><td>Stop Time Entry</td><td><code>stopTimeEntry</code></td><td>Stop a running time entry and record the elapsed hours.</td></tr><tr><td>Update Client</td><td><code>updateClient</code></td><td>Update the name, address, currency or archived state of an existing client.</td></tr><tr><td>Update Company</td><td><code>updateCompany</code></td><td>Update the company-wide timer style and weekly capacity settings.</td></tr><tr><td>Update Contact</td><td><code>updateContact</code></td><td>Update the details of an existing client contact.</td></tr><tr><td>Update Estimate</td><td><code>updateEstimate</code></td><td>Update the details or line items of an existing estimate.</td></tr><tr><td>Update Estimate Item Category</td><td><code>updateEstimateItemCategory</code></td><td>Rename an existing estimate item category.</td></tr><tr><td>Update Expense</td><td><code>updateExpense</code></td><td>Update the project, category, amount or notes of an existing expense.</td></tr><tr><td>Update Expense Category</td><td><code>updateExpenseCategory</code></td><td>Update the name, unit pricing or archived state of an expense category.</td></tr><tr><td>Update Invoice</td><td><code>updateInvoice</code></td><td>Update the details or line items of an existing invoice.</td></tr><tr><td>Update Invoice Item Category</td><td><code>updateInvoiceItemCategory</code></td><td>Rename an existing invoice item category.</td></tr><tr><td>Update Project</td><td><code>updateProject</code></td><td>Update the configuration, budget or archived state of an existing project.</td></tr><tr><td>Update Role</td><td><code>updateRole</code></td><td>Rename a role or replace the set of users assigned to it.</td></tr><tr><td>Update Task</td><td><code>updateTask</code></td><td>Update the name, rate or archived state of an existing task.</td></tr><tr><td>Update Task Assignment</td><td><code>updateTaskAssignment</code></td><td>Update the rate, budget or archived state of a project task assignment.</td></tr><tr><td>Update Time Entry</td><td><code>updateTimeEntry</code></td><td>Update the project, task, date, duration or notes of an existing time entry.</td></tr><tr><td>Update User</td><td><code>updateUser</code></td><td>Update a teammate's details, capacity, business roles or access roles. Archive a teammate by setting is active to false.</td></tr><tr><td>Update User Assignment</td><td><code>updateUserAssignment</code></td><td>Update the rate, budget or project manager flag of a project user assignment.</td></tr><tr><td>Update User Teammates</td><td><code>updateUserTeammates</code></td><td>Replace the full list of teammates assigned to a manager.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/productivity/harvest.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
