---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/voice/voice-insights/api/call/call-events-resource#article
headline: Call Insights Event Resource
description: Reference for the Twilio Voice Insights Call Insights Event resource, which provides API details for retrieving events that occur during a voice call.
url: https://www.twilio.com/docs/voice/voice-insights/api/call/call-events-resource
inLanguage: en
dateModified: 2026-07-07T17:14:48.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Call Insights Event Resource

This reference page provides the properties and parameters for the Call Insights Event resource. See [Related how-to documentation](#related-how-to-documentation) to learn the steps to use the info on this page.

A **Call Insights Event** is an object representing an event which occurred during a voice call.

The Call Insights Event resource supports the following event types:

* [Call Progress Events](/docs/voice/api/call-resource#statuscallbackevent)
* [Voice SDK Quality Events](/docs/voice/voice-insights/api/call/details-sdk-call-quality-events)
* [Conversation Relay Insights Events](/docs/voice/voice-insights/api/call/details-conversation-relay-events)

Using the **Call Insights Event Resource**, you can [read a list of Call Insights Events for a specific voice call](#read-multiple-call-insights-event-resources).

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

> \[!NOTE]
>
> Events are typically available via the API within 90 seconds.

## Call Insights Event properties

The following table details the properties of a single Call Insights Event instance.

<OperationTable type="properties" data={{"type":"object","refName":"insights.v1.call.event","modelName":"insights_v1_call_event","properties":{"timestamp":{"type":"string","nullable":true,"description":"Event time."},"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."},"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."},"edge":{"type":"string","nullable":true,"description":"The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.","enum":["unknown_edge","carrier_edge","sip_edge","sdk_edge","client_edge"],"refName":"event_enum_twilio_edge","modelName":"event_enum_twilio_edge"},"group":{"type":"string","nullable":true,"description":"Event group."},"level":{"type":"string","nullable":true,"description":"The Level of this Event. One of `UNKNOWN`, `DEBUG`, `INFO`, `WARNING` or `ERROR`.","enum":["UNKNOWN","DEBUG","INFO","WARNING","ERROR"],"refName":"event_enum_level","modelName":"event_enum_level"},"name":{"type":"string","nullable":true,"description":"Event name."},"carrier_edge":{"nullable":true,"description":"`object` Represents the connection between Twilio and our immediate carrier partners. The events here describe the call lifecycle as reported by Twilio's carrier media gateways. 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` Represents the Twilio media gateway for SIP interface and SIP trunking calls. The events here describe the call lifecycle as reported by Twilio's public media gateways. 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` Represents the Voice SDK running locally in the browser or in the Android/iOS application. The events here are emitted by the Voice SDK in response to certain call progress events, network changes, or call quality conditions. 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` Represents the Twilio media gateway for Client calls. The events here describe the call lifecycle as reported by Twilio's Voice SDK media gateways. 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."},"conversation_relay_data":{"oneOf":[{"type":"object","required":["session_id","sequence_number"],"properties":{"session_id":{"type":"string","description":"Session id of the conversation relay."},"sequence_number":{"type":"integer","description":"Sequence number of the event."}},"maxProperties":2,"additionalProperties":false,"refName":"base_relay_data","modelName":"base_relay_data"},{"type":"object","required":["session_id","sequence_number","tts_latency"],"properties":{"session_id":{"type":"string","description":"Session id of the conversation relay."},"sequence_number":{"type":"integer","description":"Sequence number of the event."},"tts_latency":{"type":"object","refName":"latency_event","modelName":"latency_event","properties":{"latency_ms":{"type":"integer","description":"Latency in milliseconds."}}}},"refName":"tts_latency_relay_data","modelName":"tts_latency_relay_data"},{"type":"object","required":["session_id","sequence_number","stt_latency"],"properties":{"session_id":{"type":"string","description":"Session id of the conversation relay."},"sequence_number":{"type":"integer","description":"Sequence number of the event."},"stt_latency":{"type":"object","refName":"latency_event","modelName":"latency_event","properties":{"latency_ms":{"type":"integer","description":"Latency in milliseconds."}}}},"refName":"stt_latency_relay_data","modelName":"stt_latency_relay_data"},{"type":"object","required":["session_id","sequence_number","interrupt"],"properties":{"session_id":{"type":"string","description":"Session id of the conversation relay."},"sequence_number":{"type":"integer","description":"Sequence number of the event."},"interrupt":{"type":"object","refName":"interrupt_event","modelName":"interrupt_event","properties":{"type":{"type":"string","enum":["DTMF","SPEECH"],"description":"Type of interruption event."}}}},"refName":"interrupt_relay_data","modelName":"interrupt_relay_data"},{"type":"object","required":["session_id","sequence_number","last_token_received"],"properties":{"session_id":{"type":"string","description":"Session id of the conversation relay."},"sequence_number":{"type":"integer","description":"Sequence number of the event."},"last_token_received":{"type":"object","refName":"last_token_received_event","modelName":"last_token_received_event","properties":{"total_tokens":{"type":"integer","description":"Total number of tokens received."},"total_words":{"type":"integer","description":"Total number of words received."}}}},"refName":"last_token_received_relay_data","modelName":"last_token_received_relay_data"},{"type":"object","required":["session_id","sequence_number","configurations"],"properties":{"session_id":{"type":"string","description":"Session id of the conversation relay."},"sequence_number":{"type":"integer","description":"Sequence number of the event."},"configurations":{"type":"object","refName":"configuration_event","modelName":"configuration_event","properties":{"configurations":{"type":"object","description":"Key-value pairs for configuration settings.","additionalProperties":{"type":"string"}},"languages":{"type":"object","description":"Key-value pairs for language configurations.","additionalProperties":{"type":"object","properties":{"tts_provider":{"type":"string"},"voice":{"type":"string"},"transcription_provider":{"type":"string"},"speech_model":{"type":"string"}}}}}}},"refName":"configurations_relay_data","modelName":"configurations_relay_data"},{"type":"object","required":["session_id","sequence_number","language_changed"],"properties":{"session_id":{"type":"string","description":"Session id of the conversation relay."},"sequence_number":{"type":"integer","description":"Sequence number of the event."},"language_changed":{"type":"object","refName":"language_changed_event","modelName":"language_changed_event","properties":{"tts_language_code":{"type":"string"},"transcription_language_code":{"type":"string"}}}},"refName":"language_changed_relay_data","modelName":"language_changed_relay_data"},{"type":"object","required":["session_id","sequence_number","call_wrap_up"],"properties":{"session_id":{"type":"string","description":"Session id of the conversation relay."},"sequence_number":{"type":"integer","description":"Sequence number of the event."},"call_wrap_up":{"type":"object","refName":"call_wrap_up_event","modelName":"call_wrap_up_event","properties":{"duration_in_seconds":{"type":"integer","description":"Duration in seconds."},"end_status":{"type":"string","enum":["unknown","failure","ended","hung_up"],"description":"End status of the call wrap up event."}}}},"refName":"call_wrap_up_relay_data","modelName":"call_wrap_up_relay_data"},{"type":"object","required":["session_id","sequence_number","error"],"properties":{"session_id":{"type":"string","description":"Session id of the conversation relay."},"sequence_number":{"type":"integer","description":"Sequence number of the event."},"error":{"type":"object","refName":"error_event","modelName":"error_event","properties":{"error_code":{"type":"integer","format":"int32","description":"Error code."},"message":{"type":"string","description":"Error message."}}}},"refName":"error_relay_data","modelName":"error_relay_data"}],"nullable":true,"description":"Contains information about the Conversation Relay (CRelay) connection used in calls."}}}} />

## Read multiple Call Insights Event resources

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

Use this action to retrieve a list of Call Insights Events for the specified voice call.

You can use the optional `edge` parameter to filter the list by media edge. See [Understanding Twilio Media Edges](/docs/voice/voice-insights/api/call/understanding-edges) for more information.

If no `edge` parameter is provided, the resulting list will depend on the call type:

| **Call Type**        | **Default Edge** | **Additional Edge** |
| -------------------- | ---------------- | ------------------- |
| Carrier              | `carrier_edge`   | N/A                 |
| SIP                  | `sip_edge`       | N/A                 |
| Client               | `sdk_edge`       | `client_edge`       |
| Trunking Originating | `carrier_edge`   | `sip_edge`          |
| Trunking Terminating | `sip_edge`       | `carrier_edge`      |

> \[!NOTE]
>
> Conversation Relay events are emitted at the `carrier_edge`. If your call type doesn't default to `carrier_edge`, pass `Edge=carrier_edge` when requesting events. Otherwise, Conversation Relay events aren't returned. See [Details: Conversation Relay Insights Events](/docs/voice/voice-insights/api/call/details-conversation-relay-events) for more information.

### 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":"Edge","in":"query","description":"The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.","schema":{"type":"string","enum":["unknown_edge","carrier_edge","sip_edge","sdk_edge","client_edge"],"refName":"event_enum_twilio_edge","modelName":"event_enum_twilio_edge"}},{"name":"PageSize","in":"query","description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","schema":{"type":"integer","format":"int64","minimum":1,"maximum":1000}},{"name":"Page","in":"query","description":"The page index. This value is simply for client state.","schema":{"type":"integer","minimum":0}},{"name":"PageToken","in":"query","description":"The page token. This is provided by the API.","schema":{"type":"string"}}]
```

Read multiple Call Insights Events for a Call

```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 listEvent() {
  const events = await client.insights.v1
    .calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    .events.list({ limit: 20 });

  events.forEach((e) => console.log(e.timestamp));
}

listEvent();
```

```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)

events = client.insights.v1.calls(
    "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
).events.list(limit=20)

for record in events:
    print(record.timestamp)
```

```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 _events = await EventResource.ReadAsync(
            pathCallSid: "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", limit: 20);

        foreach (var record in _events) {
            Console.WriteLine(record.Timestamp);
        }
    }
}
```

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

import com.twilio.Twilio;
import com.twilio.rest.insights.v1.call.Event;
import com.twilio.base.ResourceSet;

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);
        ResourceSet<Event> events = Event.reader("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").limit(20).read();

        for (Event record : events) {
            System.out.println(record.getTimestamp());
        }
    }
}
```

```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.ListEventParams{}
	params.SetLimit(20)

	resp, err := client.InsightsV1.ListEvent("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		for record := range resp {
			if resp[record].Timestamp != nil {
				fmt.Println(*resp[record].Timestamp)
			} else {
				fmt.Println(resp[record].Timestamp)
			}
		}
	}
}
```

```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);

$events = $twilio->insights->v1
    ->calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    ->events->read([], 20);

foreach ($events as $record) {
    print $record->timestamp;
}
```

```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)

events = @client
         .insights
         .v1
         .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
         .events
         .list(limit: 20)

events.each do |record|
   puts record.timestamp
end
```

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

twilio api:insights:v1:voice:events:list \
   --call-sid CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
```

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

```json
{
  "meta": {
    "page": 0,
    "page_size": 50,
    "first_page_url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events?PageSize=50&Page=0",
    "previous_page_url": null,
    "next_page_url": null,
    "key": "events",
    "url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events?PageSize=50&Page=0"
  },
  "events": [
    {
      "timestamp": "2019-09-19T22:15:23Z",
      "call_sid": "CA03a02b156c6faa96c86906f7e9ad0f38",
      "account_sid": "AC998c10b68cbfda9f67277f7d8f4439c9",
      "conversation_relay_data": null,
      "edge": "sdk_edge",
      "group": "connection",
      "name": "error",
      "level": "ERROR",
      "sdk_edge": {
        "error": {
          "code": 31600
        },
        "metadata": {
          "client_name": "GTI9300323095d271b890c91568931321395",
          "location": {
            "lat": 37.4192,
            "lon": -122.0574
          },
          "city": "Mountain View",
          "country_code": "US",
          "country_subdivision": "California",
          "ip_address": "108.177.7.83",
          "sdk": {
            "type": "twilio-voice-android",
            "version": "4.5.1",
            "platform": "android",
            "selected_region": "gll",
            "os": {
              "name": "android",
              "version": "4.3"
            },
            "device": {
              "model": "GT-I9300",
              "type": "GT-I9300",
              "vendor": "samsung",
              "arch": "armeabi-v7a"
            }
          }
        }
      },
      "client_edge": null,
      "carrier_edge": null,
      "sip_edge": null
    },
    {
      "timestamp": "2019-09-19T22:15:23Z",
      "call_sid": "CA03a02b156c6faa96c86906f7e9ad0f38",
      "account_sid": "AC998c10b68cbfda9f67277f7d8f4439c9",
      "name": "configurations",
      "group": "conversation_relay",
      "sdk_edge": null,
      "sip_edge": null,
      "client_edge": null,
      "carrier_edge": null,
      "level": null,
      "edge": null,
      "conversation_relay_data": {
        "session_id": "VXce0a58d9f117d5df4af782aa8a8defb6",
        "sequence_number": 1,
        "configurations": {
          "configurations": {
            "voice": "UgBBYS2sOqTuMpoF3BR0",
            "ttsProvider": "block_elevenlabs",
            "transcriptionProvider": "google",
            "debug": "[]",
            "speechProvider": "telephony",
            "transcriptionLanguage": "en-US",
            "welcomeGreetingInterruptible": "TRUE",
            "partialPromptOnHangup": "false",
            "interruptible": "TRUE",
            "partialPrompts": "false",
            "interruptOptions": "InterruptOptions{interruptConfidenceThreshold=0.7, skipInterruptOnFeedbackWords=false, interruptCheckThresholdType=by-chars, interruptInputLengthThreshold=3}",
            "preemptible": "FALSE",
            "dtmfDetection": "false",
            "ttsLanguage": "en-US",
            "reportInputDuringAgentSpeech": "NONE"
          },
          "languages": {
            "en": {
              "tts_provider": "block_elevenlabs",
              "voice": "UgBBYS2sOqTuMpoF3BR0",
              "transcription_provider": "google",
              "speech_model": "telephony"
            }
          }
        }
      }
    },
    {
      "timestamp": "2019-09-19T22:15:23Z",
      "call_sid": "CA03a02b156c6faa96c86906f7e9ad0f38",
      "account_sid": "AC998c10b68cbfda9f67277f7d8f4439c9",
      "name": "call_wrap_up",
      "group": "conversation_relay",
      "sdk_edge": null,
      "sip_edge": null,
      "client_edge": null,
      "carrier_edge": null,
      "edge": null,
      "level": null,
      "conversation_relay_data": {
        "session_id": "VXce0a58d9f117d5df4af782aa8a8defb6",
        "sequence_number": 11,
        "call_wrap_up": {
          "duration_in_seconds": 17,
          "end_status": "hung_up"
        }
      }
    },
    {
      "timestamp": "2019-09-19T22:15:23Z",
      "call_sid": "CA03a02b156c6faa96c86906f7e9ad0f38",
      "account_sid": "AC998c10b68cbfda9f67277f7d8f4439c9",
      "name": "final_token_received",
      "group": "conversation_relay",
      "sdk_edge": null,
      "sip_edge": null,
      "client_edge": null,
      "carrier_edge": null,
      "level": null,
      "conversation_relay_data": {
        "session_id": "VXce0a58d9f117d5df4af782aa8a8defb6",
        "sequence_number": 7,
        "last_token_received": {
          "total_tokens": 6,
          "total_words": 5
        }
      }
    }
  ]
}
```

Read multiple Call Insights Events for a Call filtered by Media Edge

```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 listEvent() {
  const events = await client.insights.v1
    .calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    .events.list({
      edge: "sdk_edge",
      limit: 20,
    });

  events.forEach((e) => console.log(e.timestamp));
}

listEvent();
```

```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)

events = client.insights.v1.calls(
    "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
).events.list(edge="sdk_edge", limit=20)

for record in events:
    print(record.timestamp)
```

```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 _events = await EventResource.ReadAsync(
            pathCallSid: "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            edge: EventResource.TwilioEdgeEnum.SdkEdge,
            limit: 20);

        foreach (var record in _events) {
            Console.WriteLine(record.Timestamp);
        }
    }
}
```

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

import com.twilio.Twilio;
import com.twilio.rest.insights.v1.call.Event;
import com.twilio.base.ResourceSet;

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);
        ResourceSet<Event> events =
            Event.reader("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").setEdge(Event.TwilioEdge.SDK_EDGE).limit(20).read();

        for (Event record : events) {
            System.out.println(record.getTimestamp());
        }
    }
}
```

```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.ListEventParams{}
	params.SetEdge("sdk_edge")
	params.SetLimit(20)

	resp, err := client.InsightsV1.ListEvent("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		for record := range resp {
			if resp[record].Timestamp != nil {
				fmt.Println(*resp[record].Timestamp)
			} else {
				fmt.Println(resp[record].Timestamp)
			}
		}
	}
}
```

```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);

$events = $twilio->insights->v1
    ->calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    ->events->read(["edge" => "sdk_edge"], 20);

foreach ($events as $record) {
    print $record->timestamp;
}
```

```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)

events = @client
         .insights
         .v1
         .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
         .events
         .list(
           edge: 'sdk_edge',
           limit: 20
         )

events.each do |record|
   puts record.timestamp
end
```

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

twilio api:insights:v1:voice:events:list \
   --call-sid CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
   --edge sdk_edge
```

```bash
curl -X GET "https://insights.twilio.com/v1/Voice/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Events?Edge=sdk_edge&PageSize=20" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "meta": {
    "page": 0,
    "page_size": 50,
    "first_page_url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events?PageSize=50&Page=0",
    "previous_page_url": null,
    "next_page_url": null,
    "key": "events",
    "url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events?PageSize=50&Page=0"
  },
  "events": [
    {
      "timestamp": "2019-09-19T22:15:23Z",
      "call_sid": "CA03a02b156c6faa96c86906f7e9ad0f38",
      "account_sid": "AC998c10b68cbfda9f67277f7d8f4439c9",
      "conversation_relay_data": null,
      "edge": "sdk_edge",
      "group": "connection",
      "name": "error",
      "level": "ERROR",
      "sdk_edge": {
        "error": {
          "code": 31600
        },
        "metadata": {
          "client_name": "GTI9300323095d271b890c91568931321395",
          "location": {
            "lat": 37.4192,
            "lon": -122.0574
          },
          "city": "Mountain View",
          "country_code": "US",
          "country_subdivision": "California",
          "ip_address": "108.177.7.83",
          "sdk": {
            "type": "twilio-voice-android",
            "version": "4.5.1",
            "platform": "android",
            "selected_region": "gll",
            "os": {
              "name": "android",
              "version": "4.3"
            },
            "device": {
              "model": "GT-I9300",
              "type": "GT-I9300",
              "vendor": "samsung",
              "arch": "armeabi-v7a"
            }
          }
        }
      },
      "client_edge": null,
      "carrier_edge": null,
      "sip_edge": null
    },
    {
      "timestamp": "2019-09-19T22:15:23Z",
      "call_sid": "CA03a02b156c6faa96c86906f7e9ad0f38",
      "account_sid": "AC998c10b68cbfda9f67277f7d8f4439c9",
      "name": "configurations",
      "group": "conversation_relay",
      "sdk_edge": null,
      "sip_edge": null,
      "client_edge": null,
      "carrier_edge": null,
      "level": null,
      "edge": null,
      "conversation_relay_data": {
        "session_id": "VXce0a58d9f117d5df4af782aa8a8defb6",
        "sequence_number": 1,
        "configurations": {
          "configurations": {
            "voice": "UgBBYS2sOqTuMpoF3BR0",
            "ttsProvider": "block_elevenlabs",
            "transcriptionProvider": "google",
            "debug": "[]",
            "speechProvider": "telephony",
            "transcriptionLanguage": "en-US",
            "welcomeGreetingInterruptible": "TRUE",
            "partialPromptOnHangup": "false",
            "interruptible": "TRUE",
            "partialPrompts": "false",
            "interruptOptions": "InterruptOptions{interruptConfidenceThreshold=0.7, skipInterruptOnFeedbackWords=false, interruptCheckThresholdType=by-chars, interruptInputLengthThreshold=3}",
            "preemptible": "FALSE",
            "dtmfDetection": "false",
            "ttsLanguage": "en-US",
            "reportInputDuringAgentSpeech": "NONE"
          },
          "languages": {
            "en": {
              "tts_provider": "block_elevenlabs",
              "voice": "UgBBYS2sOqTuMpoF3BR0",
              "transcription_provider": "google",
              "speech_model": "telephony"
            }
          }
        }
      }
    },
    {
      "timestamp": "2019-09-19T22:15:23Z",
      "call_sid": "CA03a02b156c6faa96c86906f7e9ad0f38",
      "account_sid": "AC998c10b68cbfda9f67277f7d8f4439c9",
      "name": "call_wrap_up",
      "group": "conversation_relay",
      "sdk_edge": null,
      "sip_edge": null,
      "client_edge": null,
      "carrier_edge": null,
      "edge": null,
      "level": null,
      "conversation_relay_data": {
        "session_id": "VXce0a58d9f117d5df4af782aa8a8defb6",
        "sequence_number": 11,
        "call_wrap_up": {
          "duration_in_seconds": 17,
          "end_status": "hung_up"
        }
      }
    },
    {
      "timestamp": "2019-09-19T22:15:23Z",
      "call_sid": "CA03a02b156c6faa96c86906f7e9ad0f38",
      "account_sid": "AC998c10b68cbfda9f67277f7d8f4439c9",
      "name": "final_token_received",
      "group": "conversation_relay",
      "sdk_edge": null,
      "sip_edge": null,
      "client_edge": null,
      "carrier_edge": null,
      "level": null,
      "conversation_relay_data": {
        "session_id": "VXce0a58d9f117d5df4af782aa8a8defb6",
        "sequence_number": 7,
        "last_token_received": {
          "total_tokens": 6,
          "total_words": 5
        }
      }
    }
  ]
}
```

## 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)
