How to access Call ID of the current call.
# support
t
Is there a way to access the Call ID of the call that is currently being made? I need to inherit that call and then pass it in a API tool call. Thanks.
v
To access the Call ID of the current call, capture the
id
field from the response when you initiate the call using the Vapi API. For example:
Copy code
json
{
  "id": "7420f27a-30fd-4f49-a995-5549ae7cc00d",
  ...
}
You can then pass this Call ID to your API tool call as needed. Note: There is no documented way to access the Call ID from within a running assistant or tool call context; you should manage it in your application logic when handling the call creation response. [See Vapi documentation for details](https://docs.vapi.ai/calls/call-features#sample-response) Source: - [Call Control Features Vapi Documentation](https://docs.vapi.ai/calls/call-features#sample-response)
To access the Call ID of the current call, capture the
id
field from the response when you initiate the call using the Vapi API. For example:
Copy code
json
{
  "id": "7420f27a-30fd-4f49-a995-5549ae7cc00d",
  ...
}
You can then pass this Call ID to your API tool call as needed. Note: There is no documented way to access the Call ID from within a running assistant or tool call context; you should manage it in your application logic when handling the call creation response. [See Vapi documentation for details](https://docs.vapi.ai/calls/call-features#sample-response) Source: - [Call Control Features Vapi Documentation](https://docs.vapi.ai/calls/call-features#sample-response)
k
Extract the Call ID from the "id" field in the call creation response or the call ID in webhook events, then pass it to your API tool as needed..
t
Is there a way to do this when starting the call from the Vapi dashboard within the running assistant?
k
No, the Vapi dashboard doesn’t directly show the Call ID when starting a call, but you can extract it using browser dev tools or from webhook events if using the API, it’s returned in the response.id of vapi.calls.create()..
4 Views