# 90007: Invalid validity period value

Log Type: APPLICATION

Log Level: ERROR

## Description

The `validity_period` value for a Message or Messaging Service is outside the supported range. Set the value in whole seconds between 1 and 36,000, which is a maximum of 10 hours. If the message stays in Twilio's queue longer than the configured validity period, Twilio does not send it.

### Possible causes

* `validity_period` was set to a value lower than 1 second.
* `validity_period` was set to a value higher than 36,000 seconds.
* The value was configured on the Message request or on the associated Messaging Service with an invalid number.

### Possible solutions

* Set `validity_period` to an integer between 1 and 36,000.
* Review the Message request payload and remove any invalid `validity_period` value.
* If you use a Messaging Service, update the Validity period setting in the service configuration.
* Use the default value of 36,000 seconds if you do not need a shorter queue time.

#### Additional resources

* [Messages resource](/docs/messaging/api/message-resource)
* [Messaging Services](/docs/messaging/services)
