跳转到主要内容
GET
GET /portal/api/context

授权

gproxy_session
string
cookie
必填

响应

Success

Everything a portal needs to render its shell, in one call: who you are, which scopes you belong to, what you are subscribed to, and which parts of the portal this instance offers you.

features
object
必填

What this instance lets this caller do, so a portal can hide a tab rather than render one that answers 403.

Every flag is a fact about configuration or about the caller's role — never about data — so computing it costs nothing and leaks nothing.

organizations
object[]
必填

Direct organization memberships. A team joined without its parent is not listed here; the team is, with its organizationId.

teams
object[]
必填
user
object
必填