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"}