Harvest

Online Time Tracking and Invoicing Software

Go to site
Explore
/
Apps
/
Harvest

Harvest API Integrations

Build and run workflows using the Harvest API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

The Harvest API allows developers to programmatically access data and objects in Harvest, a web-based time tracking application. With the API, developers can create applications that submit and retrieve time tracking data, as well as automate various aspects of the Harvest user experience.

Some examples of what you can build using the Harvest API include:

  • A time tracking application that automatically submits time tracking data to Harvest on behalf of the user
  • A reporting application that retrieves time tracking data from Harvest and presents it in various charts and graphs
  • An integration with a third-party project management application that pulls in time tracking data from Harvest to provide a more complete picture of project progress
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    harvest: {
      type: "app",
      app: "harvest",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://id.getharvest.com/api/v2/accounts`,
      headers: {
        Authorization: `Bearer ${this.harvest.$auth.oauth_access_token}`,
        "User-Agent": `Pipedream (pipedream.com)`,
      },
    })
  },
})
Create Timesheet Entry with Harvest API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Harvest
 
Try it
Send Message (Advanced) with Discord Webhook API on New Invoice Entry from Harvest API
Harvest + Discord Webhook
 
Try it
Create Timesheet Entry with Harvest API on New Message from Discord API
Discord + Harvest
 
Try it
Create Timesheet Entry with Harvest API on New Message In Channels from Slack API
Slack + Harvest
 
Try it
Create Timesheet Entry with Harvest API on New Message in Channel from Discord Bot API
Discord Bot + Harvest
 
Try it
New Invoice Entry from the Harvest API

Emit new notifications when a new invoice is created

 
Try it
New Time Entry from the Harvest API

Emit new notifications when a new time entry is created

 
Try it
New Timesheet Entry from the Harvest API

Emit new notifications when a new timesheet entry is created

 
Try it
Create Timesheet Entry with the Harvest API
 
Try it
Start Time Entry with the Harvest API

Restart a stopped timer entry. See docs here

 
Try it
Stop Time Entry with the Harvest API

Stop a timer entry. See docs here

 
Try it

Authentication

Harvest uses OAuth authentication. When you connect your Harvest account, Pipedream will open a popup window where you can sign into Harvest and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Harvest API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. authorization
    GEThttps://id.getharvest.com/oauth2/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://id.getharvest.com/api/v2/oauth2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POSThttps://id.getharvest.com/api/v2/oauth2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}