---
title: "Token endpoint"
method: POST
path: "/oauth/token"
tags: ["Authentication"]
---

# Token endpoint

`POST /oauth/token`

The resource owner password credentials grant type is suitable in
cases where the resource owner has a trust relationship with the
client, such as the device operating system or a highly privileged application.

## Response `200`

ok

- OauthToken
  - `access_token` string, required
  - `expires_in` integer
  - `id_token` string
  - `refresh_token` string
  - `token_type` string

---

[API](https://skmtc.net/kubesphere/apis/ks-api.md) · [All operations](https://skmtc.net/kubesphere/apis/ks-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kubesphere/ks-api/versions/0451c8cec9b1/schema)
