---
title: "generate access_token"
method: POST
path: "/auth/token"
tags: ["Access Token"]
---

# generate access_token

`POST /auth/token`

## Request

- Base URL: `https://harvest.greenhouse.io`
- URL: `https://harvest.greenhouse.io/auth/token`
- Auth: HTTP basic

## Request body

- object: This endpoint is only accessible with Harvest API keys (non-OAuth) to support migrations into Harvest v3. We will deprecate this endpoint when Harvest v1/v2 is deprecated. For more information, see our Authentication Guide and both our READ and WRITE Migration Guides.
  - `sub` integer

## Response `200`

successful

- object
  - `token_type` string, required
  - `access_token` string, required
  - `expires` string, required

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/greenhouse/apis/harvest-api.md) - [All operations](https://skmtc.dev/greenhouse/apis/harvest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/greenhouse/apis/harvest-api/revisions/822822e3f771?raw)
