auth

Generate New Token

为当前用户生成新的 API Token(需 Bearer Token 认证)。 新 Token 的原始值仅在本次响应中返回,请立即保存。

post/api/v1/auth/tokens/generate

Request

  • Base URL: https://api.ticktest.cn (the document declares no server; this is the origin it was published from)
  • URL: https://api.ticktest.cn/api/v1/auth/tokens/generate
  • Auth: none declared

Request body

namestring

Token 名称/用途

expires_daysinteger nullable

过期天数,None=永不过期

Response

Successful Response

statusstring required
tokenstring nullable
token_prefixstring nullable
messagestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.