---
title: "Access Token Request"
method: POST
path: "/api/auth/token"
tags: ["Authentication"]
---

# Access Token Request

`POST /api/auth/token`

## Request

- Base URL: `https://api.desty.app`
- URL: `https://api.desty.app/api/auth/token`
- Auth: none declared

Query authorization information based on authorization request information
The token is valid for 30 days,need to refresh after expire
you will need to put the accessToken on http header on each request of other api

## Request body

- object
  - `applyId` string, required: apply_id retrieved from apply authorization interface
  - `username` string, required: Omni main account user's name used on Apply Authorization
  - `mobile` string, required: Omni main account mobile used on Apply Authorization

## Response `200`

successful operation

- object
  - `code` string, required
  - `msg` string, required
  - `data` object, required
    - `accessToken` string, required: Access token for every interface request authentication
    - `tokenType` string, required: The token prefix, should be shown as "Bearer"
    - `expireTime` number, required: token expire time,timestamp

---

[API](https://skmtc.dev/desty/apis/desty-omni-openapi-2026-6-26.md) - [All operations](https://skmtc.dev/desty/apis/desty-omni-openapi-2026-6-26/llms.txt) - [OpenAPI document](https://skmtc.dev/desty/apis/desty-omni-openapi-2026-6-26/revisions/4946760fb77d?raw)
