30045: Validity Period is less than zero or greater than maximum allowed
MESSAGING
WARNING
Set the Validity Period to a supported value before you send the message. This warning appears when the value provided in your API request or inherited from a Messaging Service is outside the allowed range. the maximum Validity Period for outbound messages as 36,000 seconds, or 10 hours.
- You set
ValidityPeriodon the message request to a value outside the supported range for outbound messages. Twilio accepts integer values in seconds and documents a maximum of 36,000 seconds. - You send the message with a Messaging Service, and the service-level
validityPeriodis configured outside the supported range. - You provided the value in a format other than an integer number of seconds.
- Update
ValidityPeriodin your API request to an integer number of seconds within the supported range and no higher than 36,000 seconds. - If you send through a Messaging Service, review the service configuration and set
validityPeriodto an integer from 1 to 36,000 seconds. - Remove the custom value to use the default Validity Period of 36,000 seconds when that fits your use case.