Call Data
Update Call Metadata
Update the metadata for a specific call.
This allows you to store custom information against a call record. The new metadata will be merged with any existing metadata.
PATCH
Update the custom metadata associated with a call. This allows you to attach arbitrary data to call records for tracking, analytics, or integration with your systems.
Merge Behavior: New metadata is merged with existing metadata. To remove a field, set its value to
null.Use Cases
- CRM Integration: Link calls to customer records, tickets, or opportunities
- Campaign Tracking: Tag calls with campaign IDs for attribution
- Custom Analytics: Add business-specific data for reporting
- Outcome Tracking: Record call outcomes like “appointment_booked” or “sale_completed”
Path Parameters
Request Body
Request Example
Response
Returns the updated call object with the merged metadata.Error Responses
404 Not Found
422 Unprocessable Entity
Examples
Python - Add Customer Info
Python - Record Call Outcome
Node.js - Campaign Attribution
Webhook Integration
A common pattern is to update call metadata from your webhook handler:Best Practices
-
Use Consistent Keys: Establish naming conventions for your metadata fields (e.g.,
customer_idvscustomerId) - Keep Values Simple: Store IDs and references rather than large objects. Use your own systems for detailed data.
- Timestamp Important Updates: Include timestamps when recording outcomes or status changes.
- Don’t Store Sensitive Data: Avoid storing PII, credentials, or other sensitive information in call metadata.
Notes
- Metadata is stored as JSON and supports nested objects
- There is no size limit enforced, but keep metadata concise
- Metadata is included in call exports and analytics
- Use the List Calls endpoint to filter calls by supported top-level metadata fields such as customer phone, assistant, status, dates, and call SID.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Request model for updating call metadata.
Response
Successful Response
Schema for call response.