arc108
12/13/2025, 10:04 AMAI Evy
12/13/2025, 10:04 AMAI Evy
12/13/2025, 10:04 AMmetadata parameter when creating your call via the API. This allows you to store custom data like email addresses directly with the call record. [(1) ]()
When creating an outbound call, include the email in the metadata:
javascript
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
metadata: {
"email": "customer@example.com"
}
}) ;
The metadata field stores custom data like internal customer IDs (or in your case, emails) . This metadata is then returned when you retrieve call data via the Get Call API or List Calls API. [(2) ]() [(3) ]()
You can see in the call response structure that metadata is included:
json
{
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"metadata": {},
...
}
[(3) ]()
This approach lets you filter and track calls by email on your backend by querying the metadata field from call records.AI Evy
12/13/2025, 10:04 AMAI Evy
12/13/2025, 10:04 AMarc108
12/13/2025, 10:05 AM