Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

30012: TTL is too small


ERROR: 30012

error-30012 page anchor
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.

Possible causes

possible-causes page anchor
  • The request includes a ValidityPeriod value 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 ValidityPeriod value.
  • 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 ValidityPeriod parameter and let Twilio use the default behavior.

Additional resources

additional-resources page anchor