---
title: "generate token"
method: POST
path: "/{region}/v1/auth/token"
---

# generate token

`POST /{region}/v1/auth/token`

Generate token

## Request body

- HandlersGenerateTokenPayload
  - `clientId` string
  - `clientSecret` string

## Response `200`

OK

- ModelsOAuth2Token
  - `accessToken` string
  - `expiresIn` string
  - `tokenType` string

## Other responses

- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

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