APIAPI 參考
權杖
檢視目前 API 金鑰的身分與權限範圍,並依需要的範圍進行檢查。
GET/api/v1/token
Returns the API key used for this request: its team, scopes, and site restrictions.
權限範圍任何有效金鑰
回應
POST/api/v1/token/check
Checks whether the API key may use each scope, optionally for a specific site, and explains every denial. Use it to fail early before running a set of queries.
權限範圍任何有效金鑰
請求主體application/json
checksobject[]必填Scopes to check. Add siteId to also check the key's site restriction.
1–100 items
scopestring必填≥ 1 chars
siteIdstring≥ 1 chars
回應