Issue
In Twilio Conversations Classic, the "default inactive timer" determines how long a conversation remains inactive before it is automatically transitioned to an inactive state. There may be scenarios where you want to disable this timer entirely. This article explains how to remove (disable) the default inactive timer for a Conversation or for your account. Below you will find a list of the most common symptoms:
- You want to prevent conversations from being automatically marked as inactive.
- You are unsure how to clear or disable the "default inactive timer" setting.
- You may encounter errors if the field is left blank or set incorrectly.
Product
Twilio Conversations
Environment
legacy Twilio Console
Resolution
To remove or disable the default inactive timer, set its value to PT0S. This value represents a duration of zero seconds, which effectively disables the timer.
Steps
Via Twilio Console
- Navigate to the Conversations Classic settings for your account or subaccount.
- Locate the "Default Inactive Timer" field.
- Enter
PT0Sin the field. - Save your changes.
Via API
- When updating the timer using the Configuration API, set the
default_inactive_timerparameter toPT0S.
Example:
curl -X POST "https://conversations.twilio.com/v1/Configuration" \ --data-urlencode "DefaultInactiveTimer=PT0S" \ -u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
Additional Information
- Setting the timer to
PT0Sis the recommended way to remove or disable the default inactive timer. Leaving the field blank or using an invalid value may result in errors. - If you encounter a 401 error or other permission issues, ensure you are authenticated and have the necessary permissions for the account or subaccount.
The following are references to useful documents: