Skip to content

Token API

Get available sessions information

API Path

tokens/list.json

HTTP Method

GET

Request Parameters

None

Response Data Structure

TokenInfoResponse[]

FieldTypeDescription
tokenIdstringToken ID
tokenTypeintegerToken type (1: Normal Token, 5: MCP Token, 8: API Token)
userAgentstringThe User Agent when the session created
lastSeenintegerLast refresh time of the session
isCurrentbooleanWhether the session is current

Revoke token

API Path

tokens/revoke.json

HTTP Method

POST

Request Body Content-Type

application/json

Request Data Structure

TokenRevokeRequest

FieldTypeRequiredDescription
tokenIdstringRequiredToken ID

Response Data Structure

boolean (Whether the token is revoked successfully)

Released under the MIT License.