Get directory counts for the Account
/portal/v1/accounts/{accountSlug}/identities/summaryAuthentication
- Bearer Token
AuthorizationJWT access token
Code samples
curl -X GET "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/identities/summary" \
-H "Authorization: Bearer $CANOPY_TOKEN"const response = await fetch("https://api.canopy.dev/portal/v1/accounts/{accountSlug}/identities/summary", {
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}/identities/summary",
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}/identities/summary", nil)
req.Header.Set("Authorization", "Bearer $CANOPY_TOKEN")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
}Responses
200 Aggregate counts of identities in the Account — total, active, inactive, email-unverified, and orphaned (zero AppMemberships). Drives the stat card on the Tenant > Identities page.
{
"total": 0,
"active_count": 0,
"inactive_count": 0,
"email_unverified_count": 0,
"no_memberships_count": 0
}application/json
total *numberTotal identities in the Account
active_count *numberIdentities with is_active = true
inactive_count *numberIdentities with is_active = false (Account-wide kill switch flipped)
email_unverified_count *numberIdentities whose email has not been verified yet
no_memberships_count *numberIdentities with zero active AppMemberships — orphans in the directory
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)