---
title: "Generate Access Token"
method: POST
path: "/oauth2/token"
tags: ["authentication"]
---

# Generate Access Token

`POST /oauth2/token`

## Headers

- `Content-Type` string

## Response `200`

- object
  - `access_token` string, required — The access token value for use with the Lean APIs
  - `token_type` string, required — Will always be bearer, indicates the type of token returned
  - `expires_in` integer, required — The time in seconds until the access token expires
  - `scope` string, required — The scope of the access token and what resources it can access. `api` - For generating an access token when calling a backend API service. `customer.<customer_id>` - For generating an access token for authenticated LinkSDK sessions.

---

[API](https://skmtc.net/leantech/apis/auth.md) · [All operations](https://skmtc.net/leantech/apis/auth/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/leantech/auth/revisions/c2e46d54d886/schema)
