nouman_59969
12/13/2025, 11:39 PMAI Evy
12/13/2025, 11:39 PMAI Evy
12/13/2025, 11:39 PMAI Evy
12/13/2025, 11:39 PMmetadata parameter when creating outbound calls to track which source initiated each call. [(1) ]() [(2) ]()
When making an outbound call, include custom metadata to identify the source:
javascript
const registerCallResponse = await retell.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
metadata: { "customer_id": "cust_123" }
}) ;
[(1) ]()
The metadata field is described as "an arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the call." [(2) ]()
You could structure it like:
- { "source": "webhook", "webhook_id": "xyz" }
- { "source": "api", "triggered_by": "crm_integration" }
This metadata is then available when you:
1. Poll the Get Call API - retrieve call details including your stored metadata [(1) ]()
2. Receive webhooks - the call.ended and call.analyzed webhooks include the metadata you set
This approach lets you trace back every outbound call to its originating source.AI Evy
12/13/2025, 11:39 PM