attek API
integer · min: 0 · max: 3650 · required
integer · min: 0 · max: 3650 · required integer · min: 0 · max: 3650 · required
data-retention
Get Retention
GET
/api/v1/retention
Read how long this organization's conversation data and personal data are kept, in days. Use when a client needs to know the window before deciding whether it may store anything on our side, or before changing it. Changes nothing. Never unending: an organization that has not chosen a window is held at the maximum, 3650.
Get Retention › Responses
200
Successful Response
One organization's window, as the API reports it.
retention_daysrequired
Set Retention
PATCH
/api/v1/retention
Set how long this organization's conversation data and personal data are
kept, in days, from 0 (store nothing identifiable) to 3650. Use when the
organization's retention policy changes. Owner/admin only. Required and
never null: no window is unending. Takes effect on the next nightly purge.
Set Retention › Request Body
Set the window, over the API: a number of days from `0` to
`MAX_RETENTION_DAYS`, required. `null` is not a window (`data-retention.md`
rules 1-2, #769); a client wanting the maximum writes it.
retention_daysSet Retention › Responses
Successful Response
One organization's window, as the API reports it.
retention_daysrequired