Skip to main content

List Retention Rules

List the retention rules for a local repository. Returns an empty array when no rules are configured.

Allowed Roles: Workspace Admin or System Admin • Authentication Required • Local repositories only

Notes: If retention rules are disabled on the server, this endpoint returns 403.

GET https://api.repoflow.io/1/workspaces/<workspace-ref>/repositories/<repository-ref>/retention-rules

Path Parameters

workspace-refstringRequired

Workspace ID or name.

repository-refstringRequired

Repository ID or name.