30012: TTL is too small
ERROR
Twilio returned this error because the ValidityPeriod you provided for the message is below the minimum supported value. ValidityPeriod controls how long Twilio attempts to deliver an outbound message before the message expires.
- The request includes a
ValidityPeriodvalue that is lower than the minimum allowed value for Programmable Messaging. - Your application is passing an incorrectly calculated TTL value when creating a message.
- A unit conversion issue caused your application to send a value in the wrong format or range.
- Update your request to use a larger
ValidityPeriodvalue. - Check how your application calculates TTL and confirm it sends the correct value in seconds.
- Review your message creation logic and validate outbound request parameters before sending them to Twilio.
- If you do not need a custom TTL, remove the
ValidityPeriodparameter and let Twilio use the default behavior.