Workflow Issue - Call duration
# support
v
If the "maximum call duration" setting is not visible in your dashboard, you can set it programmatically using the API. Here’s an example of how to update a phone number’s maximum call duration to 20 minutes (1200 seconds) using a PATCH request:
Copy code
bash
curl -X PATCH https://api.vapi.ai/phone-numbers/{phoneNumberId} \
  -H "Authorization: Bearer <your_token>" \
  -H "Content-Type: application/json" \
  -d '{"maxDurationSeconds": 1200}'
Replace
{phoneNumberId}
and
<your_token>
with your actual values. This will enforce the call duration limit even if the UI option is missing. For more details, see the [Vapi API documentation](https://docs.vapi.ai/api-reference/phone-numbers/update). Source: - [PATCHUpdate Phone Number](https://docs.vapi.ai/api-reference/phone-numbers/update)
m
which is the phone number id?
and how can i modify cURL how you guided me ?
@User
c
Hi, currently workflows is under development.
j
Thanks for your reply. Can we get a 20 min limit instead of the 10m limit on ALL workflows on our account? We want to start using our workflow and 10m is too short
c
You can't use workflows as it not fixed yet.
@Mithrax this is solved , see my last message
3 Views