Skip to contentSkip to navigationSkip to topbar
On this page

Call Insights API Overview


The Call Insights REST API of Voice Insights provides programmatic access to call summaries, call metrics and call quality related events for use in your own applications and tools. Subject to regional availability, you can also use it for call annotations to capture subjective call experience details.

In order to use the resources in this REST API, Advanced Features has to be activated. You can use the Voice Insights Settings Resource for programmatic activation or perform it manually in Console.


Base URL

base-url page anchor

Call Insights data is available under the following base URL. The REST API is served over HTTPS; unencrypted HTTP is not supported.

https://insights.twilio.com/v1/Voice/

To authenticate requests to the Twilio APIs, Twilio supports HTTP Basic authentication(link takes you to an external page). Use your API key as the username and your API key's secret as the password. You can create an API key either in the Twilio Console or using the API.

Note: Twilio doesn't recommend using your Account SID and Auth Token in production. For local testing, you can use your Account SID as the username and your Auth token as the password. You can find your Account SID and Auth Token in the Twilio Console(link takes you to an external page).

Learn more about Twilio API authentication.

1
curl -G https://insights.twilio.com/v1/Voice/[CALL SID]/Summary \
2
-u $TWILIO_API_KEY:$TWILIO_API_KEY_SECRET

The following resources are available in the Call Insights REST API.

ResourceDescription
Call Summary Resource (single Call Summary)Get a call summary for a single call.
Call Summaries Resource (list of Call Summaries)Get a list of call summaries for multiple calls.
Call Events ResourceGet call progress and quality-related Voice SDK events data for a specific call.
Call Metrics ResourceGet quality-related metrics for a specific call.
Call Annotations ResourceAnnotate calls to provide subjective experience details. Get the annotations for a specific call.
Settings ResourceControl Voice Insights Advanced Features and Voice Trace status for an account.