How long activity history is kept for this Account
/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/workspace/activity/retentionHow many days of audit history the Account keeps (retention_days), resolved from its subscription plan by the same rule the nightly retention sweep enforces. Enterprise plans read their override. No operational capability is required. retention_days is null when the Account has no subscription or no usable retention policy.
Authentication
Bearer Token
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.
Responses
application/json
data *WorkspaceActivityRetentionResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/portal/v1/accounts/value/applications/value/environments/value/workspace/activity/retention" \ -H "Authorization: Bearer $CANOPY_TOKEN"
{ "data": { "retention_days": 0 } }
Tell us how we can improve this guide.