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

# generate access_token

`POST /auth/token`

## 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/auth-api.md) · [All operations](https://skmtc.dev/greenhouse/apis/auth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/greenhouse/auth-api/revisions/9517a2e54640/schema)
