Resolve the current user's product access and landing
/portal/v1/accounts/{accountSlug}/me/landingWhere the signed-in user should land in this Account after sign-in, and why. access_modes.console is granted when they hold console.access. access_modes.workspace is scoped when they have an active Environment administrator assignment in the Account, account when they have only account-level authority (ownership or account capabilities other than Console ones), and none otherwise. product_landing is chooser for Console access plus scoped Workspace access, then console, then workspace, else none. Callers need only active membership of the Account, no capability.
Authentication
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
Path Parameters
accountSlugstring Required The Account's slug. An unknown one answers 404.
Responses
application/json
data *AccessLandingResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/portal/v1/accounts/value/me/landing" \ -H "Authorization: Bearer $CANOPY_TOKEN"
{ "data": { "product_landing": "console", "access_modes": { "console": "granted", "workspace": "scoped" } } }
Tell us how we can improve this guide.