---
title: "Generate access token"
method: POST
path: "/Auth/Token"
tags: ["Auth"]
---

# Generate access token

`POST /Auth/Token`

Accepts grant_type: client_credentials, password, otp, refresh_token, assume_user and extended_otp

## Headers

- `X-Version` string

## Request body

- TokenRequest
  - `username` string, nullable — required for grant_type client_credentials and password
  - `client_Id` string, nullable — required for grant_type client_credentials and password
  - `grant_Type` string, nullable — accepted values: password, client_credentials, refresh_token
  - `password` string, nullable — required for grant_type password
  - `client_Secret` string, nullable — required for grant_type client_credentials
  - `otp` string, nullable — required for grant_type otp
  - `refresh_Token` string, nullable — required for grant_type refresh_token

## Response `200`

Success

- TokenResponse
  - `access_Token` string, nullable — bearer token required for authorized endpoints
  - `refresh_Token` string, nullable — refresh token used with access token to generate new access token
  - `expires_In` number, double — lifetime in seconds
  - `token_Type` string, nullable — always bearer

## Other responses

- `400` — if credentials invalid

---

[API](https://skmtc.dev/eon-xr/apis/eonxr-api.md) · [All operations](https://skmtc.dev/eon-xr/apis/eonxr-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eon-xr/eonxr-api/revisions/538c75161c64/schema)
