# 21625: Invalid providerTtl value

Log Type: APPLICATION

Log Level: ERROR

## Description

You provided an invalid value for the `providerTtl` parameter when creating a Message resource or configuring a Messaging Service. The `providerTtl` parameter must be an integer between 1 and 432000.

### Possible causes

* `providerTtl` is less than 1 second
* `providerTtl` is greater than 432000 seconds (5 days)
* `providerTtl` is not an integer value
* Your application passes `providerTtl` in an unsupported format, such as a string with non-numeric characters or a decimal value
* You send the message with a Messaging Service, and the service-level `providerTtl` is configured outside the supported range

### Possible solutions

* Update your request so `providerTtl` is an integer between 1 and 432000
* If you send through a Messaging Service, review the service configuration and set `providerTtl` to an integer from 1 to 432000 seconds
* Validate the `providerTtl` value in your application before you send the API request
* Remove `providerTtl` from the request if you do not need to override the default provider TTL behavior
* Review the code that builds your Messaging API request and confirm the `providerTtl` parameter is mapped correctly

#### Additional resources

* [Programmable Messaging API reference](/docs/messaging/api)
* [Message resource](/docs/messaging/api/message-resource)
* [Messaging Services](/docs/messaging/services)
