Set the org's per-domain data-retention policy
Sets the message-body redaction window, the closed-conversation hard-delete window, and/or the audit-log purge window. Owner/admin only. The body is partial — send any one or more of messages, conversations and audit_logs; each domain is validated and clamped to its bounds independently, so sending one domain never overwrites the others. The response reflects the merged, resolved policy. This endpoint records policy only; redaction and deletion run asynchronously in the background.
Authorizations
Dashboard JWT token from Clerk
Body
Response
The merged, persisted per-domain data-retention policy.
The org's resolved per-domain data-retention policy (GDPR Art. 5(1)(e) storage-limitation) plus the allowed min/max windows. All three domains are disabled by default. This endpoint records policy only; redaction and deletion are carried out asynchronously by scheduled background sweeps, not at the moment you read or write this policy.