List scoped operational activity within the caller's scope
/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/workspace/activityThe Environment's operational activity feed, newest first, read from the audit log. It is limited to assignment.created, assignment.updated, assignment.removed, invite.created, invite.resent, invite.revoked and identity.invite.accepted. Requires activity.view somewhere in the Environment. A node-scoped caller sees only events recorded at a node in their subtree, and events recorded with no node are hidden from them. It supports q (actor or subject label), action, node_id, from and to, and each row carries subject_type and subject_id. The response is cursor-paginated as { items, pagination: { next_cursor } } with limit 1 to 100 (default 25), and a malformed cursor returns 400.
Authentication
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
Path Parameters
accountSlugstring Required The Account's slug. An unknown one answers 404.
appSlugstring Required The Application's slug within the Account.
envSlugstring Required The Environment's slug within the Application.
Query Parameters
limitnumber Optional Events per page (1-100, default 25)
cursorstring Optional Opaque base64url cursor from the previous response's `pagination.next_cursor`. Omit for the first page.
qstring Optional Free-text match against the people named on an event — who acted and who it was done to. One field rather than separate actor and subject filters: an operational administrator asks what happened with a person, not which side of the event they were on.
actionstring Optional Filter to a single action key. Only keys on the Workspace activity allowlist match; anything else returns nothing rather than reaching into the wider audit log.
node_idstring Optional Filter to events recorded at one hierarchy node. Still intersected with the caller's accessible subtree, so naming a node outside their scope returns nothing.
fromstring · date-time Optional Lower bound (inclusive).
tostring · date-time Optional Upper bound (inclusive).
Responses
application/json
items *WorkspaceActivityResponseDto[]pagination *object
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
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/portal/v1/accounts/value/applications/value/environments/value/workspace/activity?limit=0&cursor=value&q=value&action=value&node_id=value&from=value&to=value" \ -H "Authorization: Bearer $CANOPY_TOKEN"
{ "items": [ { "id": "string", "action": "string", "actor_label": "string", "resource_type": "string", "resource_label": "string", "application_node_id": "string", "application_node_path": "string", "created_at": "2026-04-20T12:00:00.000Z", "subject_type": "identity", "subject_id": "string" } ], "pagination": { "next_cursor": "string" } }
Tell us how we can improve this guide.