S.EE Docs
API 参考

校验 API 令牌

检查 API 令牌是否有效,有效时返回令牌及其过期时间。

POST
/api/v1/token/check

Request Body

API token to validate

application/json
  1. body
token*string

Your API token to validate

Lengthlength <= 255

Response Body

OK

application/json
  1. response
code?integer

Response status code (200 indicates success)

data?

Token validation result

message?string

Human-readable status message

Example Request
curl -X POST 'https://s.ee/api/v1/token/check' \  -H 'Content-Type: application/json' \  -d '{  "token": "string"}'
Example Response200
{  "code": 0,  "data": {    "expires_at": 0,    "token": "string",    "valid": true  },  "message": "string"}