Call Ending with “Max Duration Exceeded” After ~10...
# support
a
Hi VAPI team 👋 We’re seeing an issue where calls are automatically ending around 10 minutes, and the final call status shows “Max Duration Exceeded”, even when the customer is still actively speaking. Questions: 1. Is ~10 minutes the default max duration if maxDurationSeconds is not set? 2. What’s the recommended way to configure longer calls (e.g., 30–60 mins)? 3. Any best practices to warn users before the hard timeout hits? https://cdn.discordapp.com/attachments/1467751994172112928/1467751995380338901/Screenshot_from_2026-02-02_10-51-59.png?ex=69818611&is=69803491&hm=02b1b3a235958b7639986aef57a387259cb2d1652f00962d7819448d379523c9&
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
v
To allow longer calls and avoid the "Max Duration Exceeded" status, set the
maxDurationSeconds
parameter when initiating the call. For example, to allow a 30-minute call:
Copy code
json
{
  "assistantId": "your-assistant-id",
  "customer": { "number": "+1234567890" },
  "maxDurationSeconds": 1800
}
This will increase the call limit to 30 minutes. Adjust the value as needed for your use case. Reference: See the "exceeded-max-duration" explanation in the documentation for more details. Source: - [Call ended reasons](https://docs.vapi.ai/calls/call-ended-reason)
c
Hi Azhar, The
maxDurationSeconds
for your assistant is currently set to default/null, which caps calls at 10 minutes. You can use the PATCH request below to update it - just replace with your assistant id and api private key:
Copy code
curl -X PATCH https://api.vapi.ai/assistant/<insert-assistant-id-here> \
  -H "Authorization: Bearer <your-api-private-key>" \
  -H "Content-Type: application/json" \
  -d '{"maxDurationSeconds": 43200}'
For reference, the maximum value is 43200 seconds (12 hours). You can set it to any value up to that limit depending on your needs. Thanks!
v
Message marked as helpful by @Azhar! 🎉