API 參考
驗證 API 權杖
檢查 API 權杖是否有效,有效時傳回權杖及其到期時間。
POST
API token to validate
application/json- body
token*stringYour API token to validate
Length
length <= 255OK
application/json- response
code?integerResponse status code (200 indicates success)
data?Token validation result
message?stringHuman-readable status message
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"}