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 open source triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    harvest: {
      type: "app",
      app: "harvest",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.harvestapp.com/v2/users/me`,
      headers: {
        Authorization: `Bearer ${this.harvest.$auth.oauth_access_token}`,
        "Harvest-Account-Id": `${this.harvest.$auth.account_id}`,
        "User-Agent": `Pipedream.com`,
      },
      params: {
        account_id: `${this.harvest.$auth.account_id}`,
      },
    })
  },
})
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}}