PM
06/09/2025, 5:39 PMVapi Support Bot
06/09/2025, 5:40 PMcall_id is included in the tool call payload sent to your server during an ongoing call.
You can access it like this in your handler:
js
const callId = req.body.message.call.id;
Just extract it from the "call" object in the incoming request and use it as needed in your tool logic.
Source:
- [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)PM
06/09/2025, 5:43 PMPM
06/09/2025, 5:44 PMKings_big💫
06/09/2025, 8:03 PMKings_big💫
06/09/2025, 8:03 PMPM
06/10/2025, 4:58 PMKings_big💫
06/10/2025, 8:28 PMPM
06/11/2025, 12:42 PMCreate_user{
firstName: firstname,
lastName: lastname,
dob: dob,
pob: pob,
gender: User's Gender(m/f)
id: "{{call.id}}",
caller_id: "15e0a521",
endpoint: "create_client"
}PM
06/11/2025, 12:43 PM{
"role": "tool_calls",
"time": 1749645663784,
"message": "",
"toolCalls": [
{
"id": "call_QsjcE3dOl7wLhH5KYVYfxQH0",
"type": "function",
"function": {
"name": "Create_user",
"arguments": "{\n \"firstName\": \"John\",\n \"lastName\": \"Test\",\n \"dob\": \"1989-01-01\",\n \"pob\": \"L6H6M4\",\n \"gender\": \"m\",\n \"id\": \"\",\n \"caller_id\": \"15e0a521\",\n \"endpoint\": \"create_client\"\n}"
}
}
],
"secondsFromStart": 113.478
}PM
06/11/2025, 12:43 PMPM
06/11/2025, 3:20 PMPM
06/11/2025, 3:21 PMKings_big💫
06/11/2025, 6:12 PMPM
06/12/2025, 2:10 PMChiranjeet Mishra
06/13/2025, 9:23 PM