List setup status for every Environment in the Account
/portal/v1/accounts/{accountSlug}/setup-summariesAuthentication
- Bearer Token
AuthorizationJWT access token
Code samples
curl -X GET "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/setup-summaries" \
-H "Authorization: Bearer $CANOPY_TOKEN"const response = await fetch("https://api.canopy.dev/portal/v1/accounts/{accountSlug}/setup-summaries", {
method: "GET",
headers: {
"Authorization": "Bearer $CANOPY_TOKEN"
},
});
const data = await response.json();import requests
response = requests.get(
"https://api.canopy.dev/portal/v1/accounts/{accountSlug}/setup-summaries",
headers={
"Authorization": "Bearer $CANOPY_TOKEN"
},
)
data = response.json()package main
import (
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/setup-summaries", nil)
req.Header.Set("Authorization", "Bearer $CANOPY_TOKEN")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
}Responses
200 One row per (Application × Environment). `is_complete` is true when the env has ≥ 1 custom permission, ≥ 1 custom role, and ≥ 1 role-permission mapping on a custom role. Drives the env-card empty-states on the Tenant > Applications page.
{
"items": [
{
"application_id": "string",
"application_slug": "string",
"environment_id": "string",
"environment_slug": "string",
"has_permissions": false,
"has_roles": false,
"has_role_permissions": false,
"is_complete": false,
"identities_count": 0
}
]
}application/json
items *SetupSummaryItemDto[]
401 Invalid or expired token
403 This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)