The caller's workspace retention policy
No policy configured yet reports the same "keep forever" default a fresh one would (retentionDays: null, graceDays: 14) — a workspace never has to opt in to get default behavior.
View as MarkdownAuthorization
bearer In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/retention-policy"{ "policy": { "retentionDays": 0, "graceDays": 0, "updatedAt": "2019-08-24T14:15:22Z", "updatedBy": "string" }}Documents queued for retention purge
Every document the caller can see (readable scope — owned rows plus the workspace's org-shared ones) currently flagged for deletion (scheduledPurgeAt set), soonest first — the EAS-115 "see what's scheduled before it happens" surface. Sign has no separate admin role today, so this is scoped like every other list, not gated any tighter.
Set the workspace retention policy
retentionDays omitted or null means keep forever. Once set, a terminal document (completed/declined/cancelled/expired) older than retentionDays past its terminal timestamp is flagged for purge and given graceDays before it is actually deleted.