List all projects accessible to the account
GET/api/2/account/projects
List the projects and organizations the caller can access.
Returns the {meta, projects, organizations} envelope: meta carries
the caller's account id, org roles, and permissions; projects lists each
reachable project (direct grants and org-role grants merged, highest access
kept); organizations maps each relevant org id to its details.
The project the frontend is currently viewing (the stateless replacement for
the legacy session value) lets a site-level caller see that project even when
they hold no explicit grant on it. The frontend does not always send the
Apimetrics-Project-Id header on this call -- notably the site-admin
project picker selects a non-member project without setting it -- but it
always sets the same-origin current-project-id cookie, so fall back to
that (legacy read the equivalent value from its server-side session).
Request
Responses
- 200
- 422
Successful Response
Validation Error