---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/voice/voice-insights/api/call/call-summary-resource#article
headline: Call Summary Resource
description: API reference for the Call Summary resource in Twilio Voice Insights Call Insights API. Learn about metadata, quality metrics, and edges.
url: https://www.twilio.com/docs/voice/voice-insights/api/call/call-summary-resource
inLanguage: en
dateModified: 2026-06-22T10:15:32.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Call Summary Resource

On this reference page, you'll learn about the Call Summary resource, which provides a comprehensive overview of metadata and quality metrics for a single call. See [Related how-to documentation](#related-how-to-documentation) to learn the steps to use the info on this page.

A **Call Summary** provides an overview of

* metadata, and
* quality metrics

for a single call.

Using the **Call Summary Resource**, you can [get a single summary for a specific Call](#fetch-a-summary-resource).

To get a list of Call Summaries for multiple calls use the **[Call Summaries Resource](/docs/voice/voice-insights/api/call/call-summaries-resource)**.

> \[!WARNING]
>
> [Voice Insights Advanced Features](/docs/voice/voice-insights/advanced-features) must be active to use this API Resource.

> \[!NOTE]
>
> A completed Call Summary may take up to a half hour to generate, but a partial summary record will be available within ten minutes of a call ending.

## Call Summary properties

The following table contains the top-level properties of a single Call Summary instance.

A Call Summary is a complex data structure with several of the top-level properties constituting nested objects.

The top level contains `attributes` and `properties` objects, and each edge of a call has metrics for both directions of the media stream as well as properties and summarized metrics. Further information for these object-typed properties can be found on the **[Details: Call Summary](/docs/voice/voice-insights/api/call/details-call-summary)** page.

Whether a particular edge is present will depend on the call type. A Voice SDK call will have an `sdk_edge` and a `client_edge`. A SIP trunking call will have a `sip_edge` and a `carrier_edge`. A SIP domain or `<Dial><Sip>` call will have only a `sip_edge`. A PSTN call will have only a `carrier_edge`**.** See **[Understanding Twilio Media Edges](/docs/voice/voice-insights/api/call/understanding-edges)** for a conceptual explanation.

<OperationTable type="properties" data={{"type":"object","refName":"insights.v1.call.summary","modelName":"insights_v1_call_summary","properties":{"account_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^AC[0-9a-fA-F]{32}$","nullable":true,"description":"The unique SID identifier of the Account."},"call_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^CA[0-9a-fA-F]{32}$","nullable":true,"description":"The unique SID identifier of the Call."},"call_type":{"type":"string","nullable":true,"description":"The Call Type of the summarized Call. One of `carrier`, `sip`, `trunking`, `client` and `whatsapp`.","enum":["carrier","sip","trunking","client","whatsapp"],"refName":"summary_enum_call_type","modelName":"summary_enum_call_type"},"call_state":{"type":"string","nullable":true,"description":"The Call State of the summarized Call. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`.","enum":["ringing","completed","busy","fail","noanswer","canceled","answered","undialed"],"refName":"summary_enum_call_state","modelName":"summary_enum_call_state"},"answered_by":{"type":"string","nullable":true,"description":"The Answered By value for the summarized call based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`. Refer to [AMD](https://www.twilio.com/docs/voice/answering-machine-detection) for more detail.","enum":["unknown","machine_start","machine_end_beep","machine_end_silence","machine_end_other","human","fax"],"refName":"summary_enum_answered_by","modelName":"summary_enum_answered_by"},"processing_state":{"type":"string","nullable":true,"description":"The Processing State of the Call Summary. The Processing State will be `partial` until the assembly of the Call Summary finishes, which occurs approximately 30 minutes after Call end. Then the Processing State changes to `complete`","enum":["complete","partial"],"refName":"summary_enum_processing_state","modelName":"summary_enum_processing_state"},"created_time":{"type":"string","format":"date-time","nullable":true,"description":"The time at which the Call was created, given in ISO 8601 format. Can be different from `start_time` in the event of queueing due to CPS"},"start_time":{"type":"string","format":"date-time","nullable":true,"description":"The time at which the Call was started, given in ISO 8601 format."},"end_time":{"type":"string","format":"date-time","nullable":true,"description":"The time at which the Call was ended, given in ISO 8601 format."},"duration":{"type":"integer","nullable":true,"description":"Duration between when the call was initiated and the call was ended"},"connect_duration":{"type":"integer","nullable":true,"description":"Duration between when the call was answered and when it ended"},"from":{"nullable":true,"description":"`object` The calling party. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#tofrom-object) for the object properties.","x-twilio":{"pii":{"handling":"standard","deleteSla":30}}},"to":{"nullable":true,"description":"`object` The called party. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#tofrom-object) for the object properties.","x-twilio":{"pii":{"handling":"standard","deleteSla":30}}},"carrier_edge":{"nullable":true,"description":"`object` Contains metrics and properties for the Twilio media gateway of a PSTN call. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#edges-and-their-properties) for the object properties."},"client_edge":{"nullable":true,"description":"`object` Contains metrics and properties for the Twilio media gateway of a Client call. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#edges-and-their-properties) for the object properties."},"sdk_edge":{"nullable":true,"description":"`object` Contains metrics and properties for the SDK sensor library for Client calls. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#edges-and-their-properties) for the object properties."},"sip_edge":{"nullable":true,"description":"`object` Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#edges-and-their-properties) for the object properties."},"tags":{"type":"array","nullable":true,"description":"[Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags) that Voice Insights analysis applies to calls. They indicate a condition that may influence the subjective experience of call audio quality.","items":{"type":"string"}},"url":{"type":"string","format":"uri","nullable":true,"description":"The URL of this resource."},"attributes":{"nullable":true,"description":"`object` Attributes capturing call-flow-specific details. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#attributes-object) for the object properties."},"properties":{"nullable":true,"description":"`object` Contains edge-agnostic call-level details. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#properties-object) for the object properties."},"trust":{"nullable":true,"description":"`object` Contains trusted communications details including Branded Call and verified caller ID. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#trust-object) for the object properties."},"annotation":{"nullable":true,"description":"`object` Programmatically labeled annotations for the Call. Developers can update the Call Summary records with Annotation during or after a Call. Annotations can be updated as long as the Call Summary record is addressable via the API. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#annotation-object) for the object properties."},"agent_session_summaries":{"type":"array","nullable":true,"description":"`object` List of session summaries for conversation relay. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#conversation-relay-object) for the object properties.","items":{"type":"object","refName":"call_summary_agent_session_summary","modelName":"call_summary_agent_session_summary","properties":{"session_id":{"type":"string"},"tts_latency_ms":{"type":"object","refName":"call_summary_crelay_rate_stats","modelName":"call_summary_crelay_rate_stats","properties":{"min":{"type":"number","format":"float","default":0},"max":{"type":"number","format":"float","default":0},"avg":{"type":"number","format":"float","default":0}}},"stt_latency_ms":{"type":"object","refName":"call_summary_crelay_rate_stats","modelName":"call_summary_crelay_rate_stats","properties":{"min":{"type":"number","format":"float","default":0},"max":{"type":"number","format":"float","default":0},"avg":{"type":"number","format":"float","default":0}}},"network_latency_ms":{"type":"object","refName":"call_summary_crelay_rate_stats","modelName":"call_summary_crelay_rate_stats","properties":{"min":{"type":"number","format":"float","default":0},"max":{"type":"number","format":"float","default":0},"avg":{"type":"number","format":"float","default":0}}},"time_to_first_audio_ms":{"type":"object","refName":"call_summary_crelay_rate_stats","modelName":"call_summary_crelay_rate_stats","properties":{"min":{"type":"number","format":"float","default":0},"max":{"type":"number","format":"float","default":0},"avg":{"type":"number","format":"float","default":0}}},"application_latency_ms":{"type":"object","refName":"call_summary_crelay_rate_stats","modelName":"call_summary_crelay_rate_stats","properties":{"min":{"type":"number","format":"float","default":0},"max":{"type":"number","format":"float","default":0},"avg":{"type":"number","format":"float","default":0}}},"tokens":{"type":"object","refName":"call_summary_crelay_token_stats","modelName":"call_summary_crelay_token_stats","properties":{"total":{"type":"integer"},"tokens_per_second":{"type":"object","refName":"call_summary_crelay_rate_stats","modelName":"call_summary_crelay_rate_stats","properties":{"min":{"type":"number","format":"float","default":0},"max":{"type":"number","format":"float","default":0},"avg":{"type":"number","format":"float","default":0}}}}},"words":{"type":"object","refName":"call_summary_crelay_word_stats","modelName":"call_summary_crelay_word_stats","properties":{"total":{"type":"integer"},"words_per_minute":{"type":"object","refName":"call_summary_crelay_rate_stats","modelName":"call_summary_crelay_rate_stats","properties":{"min":{"type":"number","format":"float","default":0},"max":{"type":"number","format":"float","default":0},"avg":{"type":"number","format":"float","default":0}}}}},"turns":{"type":"integer"},"interruptions":{"type":"object","refName":"call_summary_crelay_interruptions","modelName":"call_summary_crelay_interruptions","properties":{"customer_to_agent":{"type":"integer","default":0},"agent_to_customer":{"type":"integer","default":0}}},"session_state":{"type":"string","enum":["unknown","failure","ended","hung_up"],"refName":"call_summary_crelay_session_state","modelName":"call_summary_crelay_session_state"}}}}}}} />

## Fetch a Summary resource

`GET https://insights.twilio.com/v1/Voice/{CallSid}/Summary`

### Path parameters

```json
[{"name":"CallSid","in":"path","description":"The unique SID identifier of the Call.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^CA[0-9a-fA-F]{32}$"},"required":true}]
```

### Query parameters

```json
[{"name":"ProcessingState","in":"query","description":"The Processing State of this Call Summary. One of `complete`, `partial` or `all`.","schema":{"type":"string","enum":["complete","partial"],"refName":"summary_enum_processing_state","modelName":"summary_enum_processing_state"}}]
```

Fetch a Call Summary

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID at twilio.com/console
// Provision API Keys at twilio.com/console/runtime/api-keys
// and set the environment variables. See http://twil.io/secure
// For local testing, you can use your Account SID and Auth token
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const apiKey = process.env.TWILIO_API_KEY;
const apiSecret = process.env.TWILIO_API_SECRET;
const client = twilio(apiKey, apiSecret, { accountSid: accountSid });

async function fetchSummary() {
  const summary = await client.insights.v1
    .calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    .summary()
    .fetch();

  console.log(summary.accountSid);
}

fetchSummary();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID at twilio.com/console
# Provision API Keys at twilio.com/console/runtime/api-keys
# and set the environment variables. See http://twil.io/secure
# For local testing, you can use your Account SID and Auth token
api_key = os.environ["TWILIO_API_KEY"]
api_secret = os.environ["TWILIO_API_SECRET"]
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
client = Client(api_key, api_secret, account_sid)

summary = (
    client.insights.v1.calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    .summary()
    .fetch()
)

print(summary.account_sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Insights.V1.Call;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID at twilio.com/console
        // Provision API Keys at twilio.com/console/runtime/api-keys
        // and set the environment variables. See http://twil.io/secure
        // For local testing, you can use your Account SID and Auth token
        string apiKey = Environment.GetEnvironmentVariable("TWILIO_API_KEY");
        string apiSecret = Environment.GetEnvironmentVariable("TWILIO_API_SECRET");
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");

        TwilioClient.Init(apiKey, apiSecret, accountSid);

        var callSummary =
            await CallSummaryResource.FetchAsync(pathCallSid: "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");

        Console.WriteLine(callSummary.AccountSid);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.insights.v1.call.CallSummary;

public class Example {
    // Find your Account SID at twilio.com/console
    // Provision API Keys at twilio.com/console/runtime/api-keys
    // and set the environment variables. See http://twil.io/secure
    // For local testing, you can use your Account SID and Auth token
    public static final String API_KEY = System.getenv("TWILIO_API_KEY");
    public static final String API_SECRET = System.getenv("TWILIO_API_SECRET");
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");

    public static void main(String[] args) {
        Twilio.init(API_KEY, API_SECRET, ACCOUNT_SID);
        CallSummary callSummary = CallSummary.fetcher("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch();

        System.out.println(callSummary.getAccountSid());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	insights "github.com/twilio/twilio-go/rest/insights/v1"
	"os"
)

func main() {
	// Find your Account SID at twilio.com/console
	// Provision API Keys at twilio.com/console/runtime/api-keys
	// and set the environment variables. See http://twil.io/secure
	// For local testing, you can use your Account SID and Auth token
	accountSid := os.Getenv("TWILIO_ACCOUNT_SID")
	apiKey := os.Getenv("TWILIO_API_KEY")
	apiSecret := os.Getenv("TWILIO_API_SECRET")
	client := twilio.NewRestClientWithParams(twilio.ClientParams{
		Username:   apiKey,
		Password:   apiSecret,
		AccountSid: accountSid,
	})

	params := &insights.FetchSummaryParams{}

	resp, err := client.InsightsV1.FetchSummary("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		if resp.AccountSid != nil {
			fmt.Println(*resp.AccountSid)
		} else {
			fmt.Println(resp.AccountSid)
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID at twilio.com/console
// Provision API Keys at twilio.com/console/runtime/api-keys
// and set the environment variables. See http://twil.io/secure
// For local testing, you can use your Account SID and Auth token
$apiKey = $_ENV["TWILIO_API_KEY"];
$apiSecret = $_ENV["TWILIO_API_SECRET"];
$sid = $_ENV["TWILIO_ACCOUNT_SID"];
$twilio = new Client($apiKey, $apiSecret, $sid);

$summary = $twilio->insights->v1
    ->calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    ->summary()
    ->fetch();

print $summary->accountSid;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID at twilio.com/console
# Provision API Keys at twilio.com/console/runtime/api-keys
# and set the environment variables. See http://twil.io/secure
# For local testing, you can use your Account SID and Auth token
api_key = ENV['TWILIO_API_KEY']
api_secret = ENV['TWILIO_API_SECRET']
account_sid = ENV['TWILIO_ACCOUNT_SID']
@client = Twilio::REST::Client.new(api_key, api_secret, account_sid)

summary = @client
          .insights
          .v1
          .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
          .summary
          .fetch

puts summary.account_sid
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:insights:v1:voice:summary:fetch \
   --call-sid CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
```

```bash
curl -X GET "https://insights.twilio.com/v1/Voice/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Summary" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "call_sid": "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "call_type": "carrier",
  "call_state": "ringing",
  "answered_by": "machine_start",
  "processing_state": "complete",
  "created_time": "2015-07-30T20:00:00Z",
  "start_time": "2015-07-30T20:00:00Z",
  "end_time": "2015-07-30T20:00:00Z",
  "duration": 100,
  "connect_duration": 99,
  "from": {
    "caller": "+15555555555",
    "carrier": "T-Mobile USA, Inc.",
    "connection": "mobile",
    "number_prefix": "1555",
    "location": {
      "lat": 40.83885,
      "lon": -74.04568
    },
    "country_code": "US"
  },
  "to": {
    "callee": "+15555555556",
    "carrier": "AT&T Wireless",
    "connection": "mobile",
    "number_prefix": "1555",
    "location": {
      "lat": 33.42767,
      "lon": -86.886475
    },
    "country_code": "US"
  },
  "carrier_edge": {
    "properties": {
      "media_region": "us1",
      "signaling_region": "us1",
      "edge_location": "xxxxx",
      "direction": "inbound"
    },
    "metrics": {
      "inbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_received": 202,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 1.48209,
          "avg": 0.483035
        }
      },
      "outbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_sent": 218,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 0.51868,
          "avg": 0.364434
        }
      }
    }
  },
  "client_edge": {
    "properties": {
      "media_region": "us1",
      "signaling_region": "us1",
      "twilio_media_ip": "54.xxx.xx.xxx",
      "external_media_ip": "54.xxx.xx.xxx",
      "edge_location": "xxxxxx",
      "direction": "inbound"
    },
    "metrics": {
      "inbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_received": 252,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 5.60994,
          "avg": 0.933334
        }
      },
      "outbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_sent": 229,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 0.960786,
          "avg": 0.399859
        }
      }
    }
  },
  "sdk_edge": {
    "properties": {
      "media_region": "us1",
      "signaling_region": "us1",
      "edge_location": "xxxxx",
      "direction": "inbound"
    },
    "metrics": {
      "inbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_received": 3900,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 5.60994,
          "avg": 0.933334
        }
      },
      "outbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_sent": 3934,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 0.960786,
          "avg": 0.399859
        }
      }
    }
  },
  "sip_edge": {
    "properties": {
      "media_region": "us1",
      "signaling_region": "us1",
      "twilio_media_ip": "54.xxx.xx.xx",
      "twilio_signaling_ip": "54.xxx.xx.xx",
      "external_signaling_ip": "54.xxx.xx.xx",
      "sip_call_id": "xxxxx@0.0.0.0",
      "user_agent": "xxxx",
      "edge_location": "xxxxx",
      "trunk_sid": "xxxxxxx",
      "direction": "inbound"
    },
    "metrics": {
      "outbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_sent": 1953,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 1.76407,
          "avg": 0.23138
        },
        "latency": {
          "max": 0.386,
          "avg": 0.3765
        }
      }
    }
  },
  "tags": [
    "high_packet_loss",
    "high_jitter"
  ],
  "attributes": {
    "conference_participant": false
  },
  "properties": {
    "last_sip_response_num": 200,
    "pdd_ms": 121,
    "disconnected_by": "callee",
    "direction": "inbound"
  },
  "trust": {
    "verified_caller": {
      "verified": true
    },
    "branded": {
      "enabled": true,
      "display_name": "Owl bank",
      "long_display_name": "Owl bank Ltd",
      "bundle_sid": "BU5ceeea51b1424478fc541dfef0e2b167",
      "logo": true,
      "type": "in_band",
      "use_case": "Customer Care",
      "call_reason": "Branded CTIA"
    },
    "business_profile": {
      "bundle_sid": "BU5ceeea51b1424478fc541dfef0e2b167",
      "identity": "direct_customer",
      "industry": "BANKING",
      "type": "corporate"
    },
    "voice_integrity": {
      "enabled": true,
      "bundle_sid": "BU5ceeea51b1424478fc541dfef0e2b167",
      "use_case": "customer_support"
    }
  },
  "annotation": {
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "answered_by": "human",
    "connectivity_issue": "invalid_number",
    "quality_issues": [
      "low_volume"
    ],
    "spam": true,
    "call_score": 2,
    "comment": "this is a call",
    "incident": "https://twilio.zendesk.com/support/tickets/17353089"
  },
  "agent_session_summaries": [
    {
      "session_id": "session-123",
      "tts_latency_ms": {
        "min": 100,
        "max": 200,
        "avg": 150
      },
      "stt_latency_ms": {
        "min": 100,
        "max": 200,
        "avg": 150
      },
      "time_to_first_audio_ms": {
        "min": 50,
        "max": 80,
        "avg": 65
      },
      "application_latency_ms": {
        "min": 120,
        "max": 180,
        "avg": 150
      },
      "network_latency_ms": {
        "min": 10,
        "max": 20,
        "avg": 15
      },
      "tokens": {
        "total": 500,
        "tokens_per_second": {
          "min": 5,
          "max": 10,
          "avg": 7.5
        }
      },
      "words": {
        "total": 300,
        "words_per_minute": {
          "min": 60,
          "max": 120,
          "avg": 90
        }
      },
      "turns": 10,
      "interruptions": {
        "customer_to_agent": 2,
        "agent_to_customer": 1
      },
      "session_state": "ended"
    }
  ],
  "url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Summary"
}
```

Fetch a partial Call Summary

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID at twilio.com/console
// Provision API Keys at twilio.com/console/runtime/api-keys
// and set the environment variables. See http://twil.io/secure
// For local testing, you can use your Account SID and Auth token
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const apiKey = process.env.TWILIO_API_KEY;
const apiSecret = process.env.TWILIO_API_SECRET;
const client = twilio(apiKey, apiSecret, { accountSid: accountSid });

async function fetchSummary() {
  const summary = await client.insights.v1
    .calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    .summary()
    .fetch({ processingState: "partial" });

  console.log(summary.accountSid);
}

fetchSummary();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID at twilio.com/console
# Provision API Keys at twilio.com/console/runtime/api-keys
# and set the environment variables. See http://twil.io/secure
# For local testing, you can use your Account SID and Auth token
api_key = os.environ["TWILIO_API_KEY"]
api_secret = os.environ["TWILIO_API_SECRET"]
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
client = Client(api_key, api_secret, account_sid)

summary = (
    client.insights.v1.calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    .summary()
    .fetch(processing_state="partial")
)

print(summary.account_sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Insights.V1.Call;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID at twilio.com/console
        // Provision API Keys at twilio.com/console/runtime/api-keys
        // and set the environment variables. See http://twil.io/secure
        // For local testing, you can use your Account SID and Auth token
        string apiKey = Environment.GetEnvironmentVariable("TWILIO_API_KEY");
        string apiSecret = Environment.GetEnvironmentVariable("TWILIO_API_SECRET");
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");

        TwilioClient.Init(apiKey, apiSecret, accountSid);

        var callSummary = await CallSummaryResource.FetchAsync(
            pathCallSid: "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            processingState: CallSummaryResource.ProcessingStateEnum.Partial);

        Console.WriteLine(callSummary.AccountSid);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.insights.v1.call.CallSummary;

public class Example {
    // Find your Account SID at twilio.com/console
    // Provision API Keys at twilio.com/console/runtime/api-keys
    // and set the environment variables. See http://twil.io/secure
    // For local testing, you can use your Account SID and Auth token
    public static final String API_KEY = System.getenv("TWILIO_API_KEY");
    public static final String API_SECRET = System.getenv("TWILIO_API_SECRET");
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");

    public static void main(String[] args) {
        Twilio.init(API_KEY, API_SECRET, ACCOUNT_SID);
        CallSummary callSummary = CallSummary.fetcher("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                                      .setProcessingState(CallSummary.ProcessingState.PARTIAL)
                                      .fetch();

        System.out.println(callSummary.getAccountSid());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	insights "github.com/twilio/twilio-go/rest/insights/v1"
	"os"
)

func main() {
	// Find your Account SID at twilio.com/console
	// Provision API Keys at twilio.com/console/runtime/api-keys
	// and set the environment variables. See http://twil.io/secure
	// For local testing, you can use your Account SID and Auth token
	accountSid := os.Getenv("TWILIO_ACCOUNT_SID")
	apiKey := os.Getenv("TWILIO_API_KEY")
	apiSecret := os.Getenv("TWILIO_API_SECRET")
	client := twilio.NewRestClientWithParams(twilio.ClientParams{
		Username:   apiKey,
		Password:   apiSecret,
		AccountSid: accountSid,
	})

	params := &insights.FetchSummaryParams{}
	params.SetProcessingState("partial")

	resp, err := client.InsightsV1.FetchSummary("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		if resp.AccountSid != nil {
			fmt.Println(*resp.AccountSid)
		} else {
			fmt.Println(resp.AccountSid)
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID at twilio.com/console
// Provision API Keys at twilio.com/console/runtime/api-keys
// and set the environment variables. See http://twil.io/secure
// For local testing, you can use your Account SID and Auth token
$apiKey = $_ENV["TWILIO_API_KEY"];
$apiSecret = $_ENV["TWILIO_API_SECRET"];
$sid = $_ENV["TWILIO_ACCOUNT_SID"];
$twilio = new Client($apiKey, $apiSecret, $sid);

$summary = $twilio->insights->v1
    ->calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    ->summary()
    ->fetch(["processingState" => "partial"]);

print $summary->accountSid;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID at twilio.com/console
# Provision API Keys at twilio.com/console/runtime/api-keys
# and set the environment variables. See http://twil.io/secure
# For local testing, you can use your Account SID and Auth token
api_key = ENV['TWILIO_API_KEY']
api_secret = ENV['TWILIO_API_SECRET']
account_sid = ENV['TWILIO_ACCOUNT_SID']
@client = Twilio::REST::Client.new(api_key, api_secret, account_sid)

summary = @client
          .insights
          .v1
          .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
          .summary
          .fetch(processing_state: 'partial')

puts summary.account_sid
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:insights:v1:voice:summary:fetch \
   --call-sid CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
   --processing-state partial
```

```bash
curl -X GET "https://insights.twilio.com/v1/Voice/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Summary?ProcessingState=partial" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "call_sid": "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "call_type": "carrier",
  "call_state": "ringing",
  "answered_by": "machine_start",
  "processing_state": "partial",
  "created_time": "2015-07-30T20:00:00Z",
  "start_time": "2015-07-30T20:00:00Z",
  "end_time": "2015-07-30T20:00:00Z",
  "duration": 100,
  "connect_duration": 99,
  "from": {
    "caller": "+15555555555",
    "carrier": "T-Mobile USA, Inc.",
    "connection": "mobile",
    "number_prefix": "1555",
    "location": {
      "lat": 40.83885,
      "lon": -74.04568
    },
    "country_code": "US"
  },
  "to": {
    "callee": "+15555555556",
    "carrier": "AT&T Wireless",
    "connection": "mobile",
    "number_prefix": "1555",
    "location": {
      "lat": 33.42767,
      "lon": -86.886475
    },
    "country_code": "US"
  },
  "carrier_edge": {
    "properties": {
      "media_region": "us1",
      "signaling_region": "us1",
      "edge_location": "xxxxx",
      "direction": "inbound"
    },
    "metrics": {
      "inbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_received": 202,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 1.48209,
          "avg": 0.483035
        }
      },
      "outbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_sent": 218,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 0.51868,
          "avg": 0.364434
        }
      }
    }
  },
  "client_edge": {
    "properties": {
      "media_region": "us1",
      "signaling_region": "us1",
      "twilio_media_ip": "54.xxx.xx.xxx",
      "external_media_ip": "54.xxx.xx.xxx",
      "edge_location": "xxxxxx",
      "direction": "inbound"
    },
    "metrics": {
      "inbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_received": 252,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 5.60994,
          "avg": 0.933334
        }
      },
      "outbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_sent": 229,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 0.960786,
          "avg": 0.399859
        }
      }
    }
  },
  "sdk_edge": {
    "properties": {
      "media_region": "us1",
      "signaling_region": "us1",
      "edge_location": "xxxxx",
      "direction": "inbound"
    },
    "metrics": {
      "inbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_received": 3900,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 5.60994,
          "avg": 0.933334
        }
      },
      "outbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_sent": 3934,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 0.960786,
          "avg": 0.399859
        }
      }
    }
  },
  "sip_edge": {
    "properties": {
      "media_region": "us1",
      "signaling_region": "us1",
      "twilio_media_ip": "54.xxx.xx.xx",
      "twilio_signaling_ip": "54.xxx.xx.xx",
      "external_signaling_ip": "54.xxx.xx.xx",
      "sip_call_id": "xxxxx@0.0.0.0",
      "user_agent": "xxxx",
      "edge_location": "xxxxx",
      "trunk_sid": "xxxxxxx",
      "direction": "inbound"
    },
    "metrics": {
      "outbound": {
        "codec": 0,
        "codec_name": "pcmu",
        "packets_sent": 1953,
        "packets_lost": 0,
        "packets_loss_percentage": 0,
        "jitter": {
          "max": 1.76407,
          "avg": 0.23138
        },
        "latency": {
          "max": 0.386,
          "avg": 0.3765
        }
      }
    }
  },
  "tags": [
    "high_packet_loss",
    "high_jitter"
  ],
  "attributes": {
    "conference_participant": false
  },
  "properties": {
    "last_sip_response_num": 200,
    "pdd_ms": 121,
    "disconnected_by": "callee",
    "direction": "inbound"
  },
  "trust": {
    "verified_caller": {
      "verified": true
    },
    "branded": {
      "enabled": true,
      "display_name": "Owl bank",
      "long_display_name": "Owl bank Ltd",
      "bundle_sid": "BU5ceeea51b1424478fc541dfef0e2b167",
      "logo": true,
      "type": "in_band",
      "use_case": "Customer Care",
      "call_reason": "Branded CTIA"
    },
    "business_profile": {
      "bundle_sid": "BU5ceeea51b1424478fc541dfef0e2b167",
      "identity": "direct_customer",
      "industry": "BANKING",
      "type": "corporate"
    },
    "voice_integrity": {
      "enabled": true,
      "bundle_sid": "BU5ceeea51b1424478fc541dfef0e2b167",
      "use_case": "customer_support"
    }
  },
  "annotation": {
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "answered_by": "human",
    "connectivity_issue": "invalid_number",
    "quality_issues": [
      "low_volume"
    ],
    "spam": true,
    "call_score": 2,
    "comment": "this is a call",
    "incident": "https://twilio.zendesk.com/support/tickets/17353089"
  },
  "agent_session_summaries": [
    {
      "session_id": "session-123",
      "tts_latency_ms": {
        "min": 100,
        "max": 200,
        "avg": 150
      },
      "stt_latency_ms": {
        "min": 100,
        "max": 200,
        "avg": 150
      },
      "time_to_first_audio_ms": {
        "min": 50,
        "max": 80,
        "avg": 65
      },
      "application_latency_ms": {
        "min": 120,
        "max": 180,
        "avg": 150
      },
      "network_latency_ms": {
        "min": 10,
        "max": 20,
        "avg": 15
      },
      "tokens": {
        "total": 500,
        "tokens_per_second": {
          "min": 5,
          "max": 10,
          "avg": 7.5
        }
      },
      "words": {
        "total": 300,
        "words_per_minute": {
          "min": 60,
          "max": 120,
          "avg": 90
        }
      },
      "turns": 10,
      "interruptions": {
        "customer_to_agent": 2,
        "agent_to_customer": 1
      },
      "session_state": "ended"
    }
  ],
  "url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Summary"
}
```

## Related how-to documentation

Find how-to documentation for the topics on this page.

* [Make Twilio API requests](/docs/usage/requests-to-twilio)
  * To learn more about this API, see [Call Insights API overview](/docs/voice/voice-insights/api/call)
