Get App-wide assignment summary
/api/v1/assignments/app-wide/summaryReturns aggregate assignment counts for the active Application within the current Environment: active_count, scheduled_count, expired_count, expiring_soon_count, and distinct_role_count. Counts cover all direct assignments in the Environment, not just the current page, and are intended for summary stat cards. Requires the rbac.view_assignments permission.
Authentication
Bearer Token
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
API Key
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Responses
application/json
data *AssignmentsSummaryDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/api/v1/assignments/app-wide/summary" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "data": { "active_count": 0, "scheduled_count": 0, "expired_count": 0, "expiring_soon_count": 0, "distinct_role_count": 0 } }
Tell us how we can improve this guide.