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
响应