Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Interface DispatchRetentionPolicy

    The retention policy configured for messages in Dispatch Mode. Currently only MESSAGE_EXPIRE_POLICY is available. For more information about retention policies, see Retention Policy.

    interface DispatchRetentionPolicy {
        retention_type?: string;
        ttl_days?: number;
    }
    Index

    Properties

    retention_type?: string

    DispatchRetentionPolicyType

    ttl_days?: number

    Optional. The days before a message is eligible for deletion. The valid range is [0 - 7]. In the case of a 0 day TTL, messages aren't stored at all. Note the retention cleanup job runs once every twenty-four hours, so messages are not deleted on the minute they become eligible for deletion.