# 30029: Invalid ContentRetention

Log Type: APPLICATION

Log Level: ERROR

## Description

Twilio returns this error when the `ContentRetention` value in a Message create request is not valid for the request, or when the request depends on Message Privacy settings that are not enabled and configured for your account. The Messages resource documents `retain` and `discard` as supported `ContentRetention` values.

### Possible causes

* The request includes an unsupported or misspelled `ContentRetention` value. `retain` and `discard` as supported values for the Messages resource.
* The request uses Message Privacy behavior on an account that is not enabled or configured for Message Redaction. Twilio requires you to configure Message Privacy features on the account before using those controls.
* The request tries to override account-level privacy behavior without the required Message Redaction setup being enabled in Console.

### Possible solutions

* Update the request so `ContentRetention` uses a supported value. Use `retain` or `discard` based on the behavior you want for that message.
* If Message Redaction is enabled on your account and you need to keep message content for a specific message, set `ContentRetention` to `retain`.
* If Message Redaction is disabled on your account and you need to redact content for a specific message, set `ContentRetention` to `discard`.
* If your use case depends on Message Privacy features, request access to Message Redaction, configure the account for Message Privacy, and enable the appropriate redaction settings in Console before sending the request again.

#### Additional resources

* [Messages resource](/docs/messaging/api/message-resource)
* [Message Redaction for Programmable Messaging](/docs/messaging/guides/privacy-message-redaction)
