Hi. I am just starting to use Vapi. In the create ...
# general-english
v
Hi. I am just starting to use Vapi. In the create call API - https://docs.vapi.ai/api-reference/calls/create Is there any way to pass my internal call id to the create call request. And return it as part of the end of call report. I did not find such a field in the online document. But When I asked Gemini, it replied, can. Can you confirm the below apporach is correct to pass an internal call id and get it back in the end of call report for reference? Create Call API - // The data structure you send to Vapi const vapiResponse = await vapi.calls.create({ // ... other required fields like assistantId, customer, etc. ... // ✅ This is the critical piece to solve your race condition: ** metadata: { my_internal_call_id: call.callId // <-- Pass your Supabase ID here },** // ... other overrides ... }); And I will get the same back in my end of call report - { "message": { "type": "end-of-call-report", "call": { "id": "vapi_call_id_here", // The ID you were originally stamping "orgId": "...", ** "metadata": { "my_internal_call_id": "YOUR_SUPABASE_ID" // ✅ YOUR ID is here },** // ... other call details ... }, // ... artifacts ... } }
2 Views