Print

Get your Harvest Account Id

Harvest requires that you pass your account ID in a header when making requests to the API.

As Harvest doesn't surface this ID in their web interface, we'll get the account ID through the API.

Part 1: Fetch Account ID through the API

  1. In API Connector, click Create request
  2. Enter the following URL as a custom request: https://id.getharvest.com/api/v2/accounts
  3. Under Authentication, choose Harvest. If you haven't already, you will need to click the blue Connect button.
    tip-harvest-account-id-connect
  4. Choose an output sheet and click Run.
  5. You should see your account ID(s) returned into a sheet, under the field name accounts.id

Part 2: Use the Account ID in Requests

This account ID should be entered as the Harvest-Account-Id header in any API request to Harvest.
tip-harvest-account-id-headers

Leave a Comment

Jump To