take over a call
# support
m
Is there a way to show ongoing calls and let someone take over live? I'm using twilio so I feel like it should be possible but don't find any information on documentation.
v
Yes, you can take over a live call using Vapi's Call Control API with Twilio. When you initiate or monitor a call, you'll receive a
controlUrl
for that call. To transfer (take over) the call, send a POST request like this:
Copy code
bash
curl -X POST 'https://aws-us-west-2-production1-phone-call-websocket.vapi.ai/{call_id}/control' \
  -H 'content-type: application/json' \
  --data-raw '{
    "type": "transfer",
    "destination": { "type": "number", "number": "+1234567890" },
    "content": "Transferring your call now"
  }'
This will transfer the ongoing call to the specified number, effectively letting someone else take over the conversation. For real-time monitoring, use the
listenUrl
to stream audio as the call happens. See the [Vapi call features documentation](https://docs.vapi.ai/calls/call-features) for more details. Source: - [Vapi Call Features Documentation](https://docs.vapi.ai/calls/call-features)
m
@User I know about the transferring option but what if I'm just using the same phone number for live calls and AI calls? Do I just transfer the call to the same phone number? The UX is a bit different.
c
Hi, Yes, you can control an active live call. However, if your goal is to transfer the call, you’ll need to transfer it to a different number. Transferring within the same number is not currently supported. For reference, here’s the live call control documentation: https://docs.vapi.ai/calls/call-features
m
oh ok! sounds good thank you!