许可清单(owner/admin 全量;成员可读本人)
GET
/v1/org-licenses
const url = 'https://api.tansr.com/v1/org-licenses';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tansr.com/v1/org-licenses \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-tansr-org
string
Org 作用域声明(org 公开 id);服务端校验成员资格与角色,非成员恒 404、角色不够 403
Responses
Section titled “Responses”许可清单
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
appId
required
绑定 org 键(api_keys.public_id;UNIQUE 一键一照)
string
epoch
required
许可纪元(revoke/suspend 递增;末端缓存失效锚)
integer
createdAt
required
string
Example
{ "data": [ { "principalType": "member", "status": "issued", "sourceType": "approval" } ]}本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。