My calls are getting cut-off at 10 mins. I have th...
# support
d
The Maximum Duration was set to 1800 seconds in the UI but the calls end at 10 mins. Also, in the end of call report there is no "maxDurationSeconds" key found at all. Call Id: 34fe2684-9935-4903-b33a-702d101d76ed "assistant": { "id": "64e38ef7-d64b-45b6-a832-6276a072bebb", "timestamp": 1740434458916 "endedReason": "exceeded-max-duration",
d
I think you need to change it in the API, Ui is not updated for Max duration
a
The max duration seconds value is empty for your assistant, that's why call was terminated after 10 minutes. **"startedAt": "2025-02-24T21:50:51.717Z", "endedAt": "2025-02-24T22:00:51.928Z",** **H**ere's the curl request to update an assistant's max duration seconds:
Copy code
curl -X PATCH 'https://api.vapi.ai/assistant/{ASSISTANT_ID}' \
-H 'Authorization: Bearer {YOUR_API_TOKEN}' \
-H 'Content-Type: application/json' \
-d '{
  "maxDurationSeconds": 1800
}'
https://cdn.discordapp.com/attachments/1343732017426071653/1344257510957256855/Screenshot_2025-02-26_at_4.05.15_PM.png?ex=67c040dd&is=67beef5d&hm=850826ad745fef4822091043992210376908236b0be2a79650ae051b999872ca&
s
The maximum value is 12 hours, and the minimum value is 10 seconds.