Get call id in a api tool
# support
j
How i can get the current call id isnide a tool?
c
Hi julian, To retrieve the current call ID inside a tool, ensure your server is set up to receive tool call requests from Vapi. When a tool is invoked, the server should receive a request that includes the
call
field, which contains the
id
. Here's a JSON snippet that shows the expected request format:
Copy code
json
{
    "call": {
        "id": "call-uuid",
        "orgId": "org-uuid",
        "type": "webCall",
        "assistant": {}
    }
}
Make sure your server processes this
id
to identify the call context. If you're having trouble, verify that your server is correctly capturing the incoming request and that the tool configuration aligns with the API expectations. For more detailed information, you can check the [Vapi API documentation](https://docs.vapi.ai/api-reference/tools/update).
2 Views