---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/30013#article
headline: "30013: TTL is too big"
url: https://www.twilio.com/docs/api/errors/30013
inLanguage: en
dateModified: 2026-06-09T11:00:42.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 30013: TTL is too big

Log Level: ERROR

## Description

Twilio returned this error because the `ValidityPeriod` value you provided for the message is larger than the maximum allowed value. `ValidityPeriod` sets how long Twilio should continue trying to deliver an outbound message before it expires.

### Possible causes

* The request included a `ValidityPeriod` value greater than the supported maximum.
* Your application passed a value in the wrong unit or converted the value incorrectly before sending the request.
* A default retry or queue configuration in your application set `ValidityPeriod` higher than intended.

### Possible solutions

* Update your request to use a smaller `ValidityPeriod` value.
* Review the code that sets `ValidityPeriod` and confirm it sends the value in seconds.
* Remove the custom `ValidityPeriod` value if you do not need to override the default message validity window.
* Test your application with a known valid `ValidityPeriod` value before sending messages in production.

#### Additional resources

* [Programmable Messaging API reference](/docs/messaging/api)
* [Manage queueing and latency with `ValidityPeriod`](/docs/messaging/guides/scaling-queueing-latency)
* [Message resource reference](/docs/messaging/api/message-resource)
