---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/13216#article
headline: "13216: Invalid timeLimit value"
url: https://www.twilio.com/docs/api/errors/13216
inLanguage: en
dateModified: 2026-06-08T11:38:30.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 13216: Invalid timeLimit value

Log Type: APPLICATION

Log Level: WARNING

## Description

This warning appears when your `<Dial>` verb includes a `timeLimit` value that is not a positive integer in seconds. Use `timeLimit` to set the maximum duration of the `<Dial>`. If you omit `timeLimit`, Twilio uses the default limit of 14400 seconds, or 4 hours.

### Possible causes

* The `timeLimit` attribute is set to `0`, a negative value, or an empty value.
* The `timeLimit` attribute contains a decimal value instead of a whole number of seconds.
* The `timeLimit` attribute includes non-numeric characters or a malformed string.
* Your application generates TwiML dynamically and passes an invalid value into the `<Dial>` verb.

### Possible solutions

* Set `timeLimit` to a positive integer in seconds, such as `timeLimit="120"`.
* Validate any user input or application variable before you add it to the `<Dial>` verb.
* Convert dynamic values to a whole number before returning TwiML to Twilio.
* Remove `timeLimit` if you want Twilio to use the default call limit.

#### Additional resources

* [TwiML `<Dial>`](/docs/voice/twiml/dial)
* [TwiML for Programmable Voice](/docs/voice/twiml)
* [Make outbound phone calls](/docs/voice/tutorials/how-to-make-outbound-phone-calls)
