List Environments reachable by SSO
/portal/v1/accounts/{accountSlug}/sso/sign-in-coverageReturns the distinct Environment ids that have a usable end-user SSO sign-in path — every Environment owning an active OAuth client that is linked to an active, end_user SSO connection in the Account. Drives the dashboard "no usable sign-in method" banner, so active-but-unlinked connections and inactive clients do not count. The response is an unpaginated { items } array of id strings.
Authentication
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
sso.viewSecurityView SSO connections, domains, and directory sync. Granted through an administrator role in the Admin Workspace; a valid token without it is refused with 403.
Responses
application/json
items *string[]
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Errors
When the request can't be completed, the response body includes a stable error code you can branch on.
account.capability_requiredForbiddenThe signed-in user's administrator roles do not grant the capability this endpoint requires.
Ask an account administrator to grant a role carrying the capability named in the Authentication section, then retry.
curl -X GET "https://auth.canopy-io.com/portal/v1/accounts/{accountSlug}/sso/sign-in-coverage" \ -H "Authorization: Bearer $CANOPY_TOKEN"
{ "items": [ "string" ] }
Tell us how we can improve this guide.