Skip to content

令牌 API

获取可用会话信息

API 路径

tokens/list.json

HTTP 方法

GET

请求参数

返回数据结构

TokenInfoResponse[]

字段类型描述
tokenIdstring令牌 ID
tokenTypeinteger令牌类型(1:普通令牌,5:MCP 令牌,8:API 令牌)
userAgentstring创建会话时的 User Agent
lastSeeninteger会话的最后刷新时间
isCurrentboolean是否是当前会话

注销令牌

API 路径

tokens/revoke.json

HTTP 方法

POST

请求体 Content-Type

application/json

请求数据结构

TokenRevokeRequest

字段类型必选描述
tokenIdstring必选令牌 ID

返回数据结构

boolean(是否成功注销)

Released under the MIT License.