API Token管理

用户创建自己的API访问令牌

post/user/api-tokens

Request

  • Base URL
    http://localhost:8888/api/v1
  • URL
    http://localhost:8888/api/v1/user/api-tokens
  • Auth
    API key in header Authorization

Request body

expireDaysinteger

过期天数(0=永久有效)

namestring required

Token名称

scopesstring[]

权限范围限制

Response

创建成功

codeinteger
messagestring
msgstring

Changes