List operational administrators in an Environment
/api/v1/admin-assignmentsOne page of the unrevoked administrator grants in the Account, covering account, Environment and node scopes, each with the user holding it (user: id, names, email, avatar). Oldest first unless sorted (sort_by created or role); filters by admin_role_id and scope_type; q searches role names and the holders' names and emails. There is no person sort, since the people are platform users stored apart from the grants. Grants are not filtered by their effective window, so expired and future-dated grants are listed until someone revokes them. Requires admin_governance.view.
Authentication
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
admin_governance.viewAccountView administrator roles and who holds them. A scoped API key must hold it as a scope; a full-access key holds every scope within its Environment except the named-only and account scopes; a developer's token needs the Console capability that covers it. A credential without it is refused with 403.
Query Parameters
pagenumber Optional Page number (1-based)
takenumber Optional Items per page (1-100, default 20)
qstring Optional Search role names and the holders' first names, last names and emails
sort_byenum Optional Sort column. Defaults to `created`, oldest grant first; `role` sorts by role name.
orderenum Optional Sort direction
admin_role_idstring · uuid Optional Only grants of this administrator role
scope_typeenum Optional Only grants of this shape: account-wide, one Environment, or one node
user_idstring · uuid Optional Only grants held by this platform user, such as the grants a person already holds before granting them another
Responses
application/json
items *AdminAssignmentRowDto[]pagination *PageMetaDto
application/json
error *ApiErrorBodyDto
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, and a correlation_id (also sent as the X-Correlation-Id header). Quote the correlation id when you contact support: it identifies the exact request in Canopy's logs. A request refused by an authorization check answers 403 with the code authorization.denied, and its data names the denial_reason and the permission checked.
authorization.deniedForbiddenThe credential does not hold the permission this operation checks: a scoped API key without the scope, a developer without the Console capability that covers it, or a permission granted somewhere other than the node the request targets. The error's data names the permission.
Add the permission named in the Authentication section to the key's scopes, or ask an account administrator to grant the covering capability, then retry. For a node-scoped operation, make sure the grant reaches the node you are acting on.
Pagination
This endpoint returns a paginated collection. Use the query parameters below to page through results.
pagenumberPage number (1-indexed). Defaults to 1.
takenumberItems per page (1 to 100). Defaults to 20.
Each response includes an items array alongside a pagination object with item_count, page_count, has_previous_page, and has_next_page fields.
Returned object
curl -X GET "https://auth.canopy-io.com/api/v1/admin-assignments?page=0&take=0&q=value&sort_by=created&order=asc&admin_role_id=value&scope_type=account&user_id=value" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "items": [ { "id": "string", "admin_role_id": "string", "user_id": "string", "environment_id": "string", "scope_type": "account", "application_node_id": "string", "effective_from": "2026-04-20T12:00:00.000Z", "effective_to": "2026-04-20T12:00:00.000Z", "revoked_at": "2026-04-20T12:00:00.000Z", "created_at": "2026-04-20T12:00:00.000Z", "updated_at": "2026-04-20T12:00:00.000Z", "user": { "id": "string", "first_name": "string", "last_name": "string", "email": "string", "avatar_url": "string" } } ], "pagination": { "page": 0, "take": 0, "item_count": 0, "page_count": 0, "has_previous_page": false, "has_next_page": false } }
Tell us how we can improve this guide.