Contacts

Preview contact retention

Changed on

Shows what a retention period would delete: leads (contacts without an account) with no form submission, booking, call, checkout or 1:1 email in the last days days. Broadcasts don't count as contact. Leads with orders are kept and counted in exempt_count. Contacts with an account are never deleted by retention. Set the period with contact_retention_days on PATCH /v1/account; a daily job then deletes matching leads, and they are permanently erased purge_after_days later.

get/contacts/retention_preview

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Query parameters

days, integer

Retention period to preview, 30 to 3650. Defaults to the account's contact_retention_days.

Response

Retention preview

object required
object, 'contact_retention_preview' required
days, integer nullable required

The period previewed; null when none was given and the account has none set.

deletable_count, integer required
exempt_count, integer required

Inactive leads kept because they have paid orders.

purge_after_days, integer required
sample, Contact[] required

Up to 20 of the leads that would be deleted, oldest first.

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    2 more changes in this revision