---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/voice/voice-insights/api/reports-api/outbound-phone-number-report-resource#article
headline: Outbound Phone Number Report Resource
description: Reference guide for the Twilio Voice Insights Outbound Phone Number Report resource. View configuration settings and API data metrics.
url: https://www.twilio.com/docs/voice/voice-insights/api/reports-api/outbound-phone-number-report-resource
inLanguage: en
dateModified: 2026-06-22T10:15:32.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Outbound Phone Number Report Resource

On this reference page, you'll learn the properties, parameters, and schemas for the Outbound Phone Number Report resource. See [Related how-to documentation](#related-how-to-documentation) to learn the steps to use the info on this page.

## Overview

> \[!NOTE]
>
> **Not a HIPAA Eligible Service**
>
> Voice Insights Reports API is not a HIPAA Eligible Service and should not be used in workflows that are subject to HIPAA.

An **Outbound Phone Number Report** aggregates Voice Insights metrics for calls placed from a specific phone number handle.

## Outbound Phone Number Report Properties

<OperationTable
  type="body"
  data={{
    encodingType: "application/json",
    schema: {
      type: "object",
      properties: {
        handle: {
          type: "string",
          'x-twilio': {
            shortDescription: "Outbound caller.",
            pii: { handling: "standard", deleteSla: 30 },
          },
          description: "Outbound phone number handle represented in the report.",
        },
        total_calls: {
          type: "integer",
          description: "Total number of outbound calls made during the report period.",
        },
        call_answer_score: {
          type: "number",
          format: "float",
          description: "Score (0-100) representing how often outbound calls were answered.",
        },
        calls_by_device_type: {
          type: "object",
          additionalProperties: { type: "integer" },
          description: "Number of outbound calls placed per device type (voip, mobile, landline, unknown).",
          example: { voip: 150, mobile: 300, landline: 100, unknown: 50 },
        },
        answer_rate_device_type: {
          type: "object",
          additionalProperties: { type: "number", format: "float" },
          description: "Answer rate per device type (voip, mobile, landline, unknown).",
          example: { voip: 75, mobile: 80, landline: 70, unknown: 60 },
        },
        call_state_percentage: {
          type: "object",
          description: "Percentage of outbound calls by call state (completed, fail, busy, no-answer, canceled).",
          properties: {
            completed: {
              type: "number",
              format: "float",
              description: "Percentage of completed outbound calls.",
            },
            fail: {
              type: "number",
              format: "float",
              description: "Percentage of failed state outbound calls.",
            },
            busy: {
              type: "number",
              format: "float",
              description: "Percentage of busy state outbound calls that received a busy signal.",
            },
            noanswer: {
              type: "number",
              format: "float",
              description: "Percentage of outbound calls that were rejected or not answered.",
            },
            canceled: {
              type: "number",
              format: "float",
              description: "Percentage of canceled outbound calls which were hung up while it’s still ringing or in a queue.",
            },
          },
        },
        blocked_calls_by_carrier: {
          type: "array",
          description: "Associated metrics for completed outbound calls which are blocked by respective downstream carriers. Currently only the US carriers such as ATT, T-Mobile and Verizon provide this information.",
          items: {
            type: "object",
            properties: {
              country: { type: "string" },
              carriers: {
                type: "array",
                items: {
                  type: "object",
                  properties: {
                    carrier: { type: "string", description: "The name of Carrier." },
                    total_calls: {
                      type: "integer",
                      description: "Total outbound calls that were made by the carrier.",
                    },
                    blocked_calls: { type: "integer", description: "The number of calls blocked by the carrier." },
                    blocked_calls_percentage: {
                      type: "number",
                      format: "float",
                      description: "Percentage of blocked calls over total outbound calls under the carrier.",
                    },
                  },
                },
              },
            },
          },
        },
        silent_calls_percentage: {
          type: "number",
          format: "float",
          description: "Percentage of calls with silence tags over total calls. A silent tag is indicative of a connectivity issue or muted audio.",
        },
        short_duration_calls_percentage: {
          type: "number",
          format: "float",
          description: "Percentage of completed outbound calls under 6 seconds; More than 15% is typically low trust measured.",
        },
        long_duration_calls_percentage: {
          type: "number",
          format: "float",
          description: "Percentage of outbound calls lasting 60 seconds or longer.",
        },
        potential_robocalls_percentage: {
          type: "number",
          format: "float",
          description: "Percentage of completed outbound calls to unassigned or unallocated phone numbers.",
        },
        answering_machine_detection: {
          type: "object",
          description: "Associated answering machine detection enabled calls.",
          properties: {
            total_calls: {
              type: "integer",
              description: "The number of outbound calls with answering machine detection (AMD) enabled.",
            },
            answered_by_human_percentage: {
              type: "number",
              format: "float",
              description: "Percentage of calls marked as answered by a human.",
            },
            answered_by_machine_percentage: {
              type: "number",
              format: "float",
              description: "Percentage of calls marked as answered by a machine-related outcome.",
            },
          },
        },
      },
    },
  }}
/>

## Create Outbound Phone Numbers Report properties

> \[!NOTE]
>
> A Voice Insights Report will be available for 5 days after it is created.

<OperationTable type="properties" data={{"type":"object","refName":"insights.v2.create_report_response","modelName":"insights_v2_create_report_response","properties":{"account_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^AC[0-9a-fA-F]{32}$","description":"The unique SID identifier of the Account."},"report_id":{"type":"string","description":"The report identifier as Voice Insights Report TTID."},"status":{"type":"string","enum":["created","running","completed"],"description":"The status of the report.","refName":"report_status","modelName":"report_status"},"request_meta":{"type":"object","refName":"report_metadata","modelName":"report_metadata","properties":{"start_datetime":{"type":"string","format":"date-time","description":"Start date time of the report"},"end_datetime":{"type":"string","format":"date-time","description":"End date time of the report"},"filters":{"type":"array","default":[],"description":"Filter values applied to the report","items":{"type":"object","refName":"report_filter","modelName":"report_filter","properties":{"key":{"type":"string","description":"The name of the filter\n'call_state', 'call_direction', 'call_type', 'twilio_regions', 'caller_country_code', 'callee_country_code', 'silent'\n"},"values":{"type":"array","description":"List of supported filter values for the field name","items":{"type":"string"}}}}}}},"url":{"type":"string","format":"uri","nullable":true,"description":"The URL of this resource."}}}} />

## Create Outbound Phone Number Reports

`POST https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound`

### Request body parameters

```json
{"schema":{"type":"object","refName":"insights.v2.create_phone_numbers_report_request","modelName":"insights_v2_create_phone_numbers_report_request","properties":{"time_range":{"type":"object","properties":{"start_datetime":{"type":"string","format":"date-time","description":"Start date time of the report","example":"2024-01-01T00:00:00Z","x-twilio":{"shortDescription":"Start time of the report"}},"end_datetime":{"type":"string","format":"date-time","description":"End date time of the report","example":"2024-01-07T00:00:00Z","x-twilio":{"shortDescription":"Start time of the report"}}}},"filters":{"type":"array","items":{"type":"object","refName":"phone_number_report_filter","modelName":"phone_number_report_filter","properties":{"key":{"type":"string","description":"The name of the filter\n"},"values":{"type":"array","description":"List of supported filter values for the field name","items":{"type":"string"}}}}},"size":{"type":"integer","default":1000,"minimum":1,"maximum":6000,"description":"The number of max available top Phone Numbers to generate."}}},"encodingType":"application/json","conditionalParameterMap":{}}
```

The recent 7 days report can be created without any parameters.

Create Outbound Phone Number Reports

```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 createOutboundPhoneNumbersReport() {
  const outboundReport = await client.insights.v2.outboundReports.create();

  console.log(outboundReport.accountSid);
}

createOutboundPhoneNumbersReport();
```

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

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

outbound_report = client.insights.v2.outbound_reports.create()

print(outbound_report.account_sid)
```

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

using System;
using Twilio;
using Twilio.Rest.Insights.V2;
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 outboundReport =
            await OutboundReportResource.CreateAsync(new CreateOutboundReportOptions() {});

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

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

import com.twilio.Twilio;
import com.twilio.rest.insights.v2.OutboundReport;

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);
        OutboundReport outboundReport = OutboundReport.creator().create();

        System.out.println(outboundReport.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/v2"
	"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.CreateOutboundPhoneNumbersReportParams{}

	resp, err := client.InsightsV2.CreateOutboundPhoneNumbersReport(params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} 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;
use Twilio\Rest\Insights\V2\OutboundReportModels;

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

$outbound_report = $twilio->insights->v2->outboundReports->create();

print $outbound_report->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)

outbound_report = @client
                  .insights
                  .v2
                  .outbound_reports
                  .create

puts outbound_report.account_sid
```

```bash
# This endpoint is not currently supported by the Twilio CLI. You can open an issue to request it on https://github.com/twilio/twilio-cli/issues
  # For an alternative low-code solution, check out https://www.twilio.com/docs/openapi/using-twilio-postman-collections
```

```bash
curl -X POST "https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "report_id": "voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av",
  "status": "created",
  "request_meta": {
    "start_datetime": "2024-11-01T00:00:00Z",
    "end_datetime": "2024-11-07T00:00:00Z",
    "filters": []
  },
  "url": "https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound/voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av"
}
```

Generate outbound reports for a specific period by providing the `time_range` parameter.

Create Outbound Phone Number Reports with Date Time Range

```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 createOutboundPhoneNumbersReport() {
  const outboundReport = await client.insights.v2.outboundReports.create({
    time_range: {
      start_datetime: "2024-10-15T00:00:00Z",
      end_datetime: "2024-11-07T00:00:00Z",
    },
  });

  console.log(outboundReport.accountSid);
}

createOutboundPhoneNumbersReport();
```

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

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

outbound_report = client.insights.v2.outbound_reports.create(
    insights_v2_create_phone_numbers_report_request=OutboundReportList.InsightsV2CreatePhoneNumbersReportRequest(
        {
            "time_range": OutboundReportList.InsightsV2CreatePhoneNumbersReportRequestTimeRange(
                {
                    "start_datetime": "2024-10-15T00:00:00Z",
                    "end_datetime": "2024-11-07T00:00:00Z",
                }
            )
        }
    )
)

print(outbound_report.account_sid)
```

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

using System;
using Twilio;
using Twilio.Rest.Insights.V2;
using System.Threading.Tasks;
using System.Collections.Generic;

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 outboundReport =
            await OutboundReportResource.CreateAsync(new CreateOutboundReportOptions() {
                InsightsV2CreatePhoneNumbersReportRequest =
                    new OutboundReportResource.InsightsV2CreatePhoneNumbersReportRequest.Builder()
                        .WithTimeRange(
                            new OutboundReportResource
                                .InsightsV2CreatePhoneNumbersReportRequestTimeRange.Builder()
                                .WithStartDatetime(
                                    new DateTime(2024, 10, 15, 0, 0, 0, DateTimeKind.Utc))
                                .WithEndDatetime(
                                    new DateTime(2024, 11, 7, 0, 0, 0, DateTimeKind.Utc))
                                .Build())
                        .Build()
            });

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

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

import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.HashMap;
import com.twilio.Twilio;
import com.twilio.rest.insights.v2.OutboundReport;

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

        OutboundReport.InsightsV2CreatePhoneNumbersReportRequestTimeRange timeRange =
            new OutboundReport.InsightsV2CreatePhoneNumbersReportRequestTimeRange();
        timeRange.setStartDatetime(ZonedDateTime.of(2024, 10, 15, 0, 0, 0, 0, ZoneId.of("UTC")));
        timeRange.setEndDatetime(ZonedDateTime.of(2024, 11, 7, 0, 0, 0, 0, ZoneId.of("UTC")));

        OutboundReport.InsightsV2CreatePhoneNumbersReportRequest insightsV2CreatePhoneNumbersReportRequest =
            new OutboundReport.InsightsV2CreatePhoneNumbersReportRequest();
        insightsV2CreatePhoneNumbersReportRequest.setTimeRange(insightsV2CreatePhoneNumbersReportRequestTimeRange);

        OutboundReport outboundReport = OutboundReport.creator(insightsV2CreatePhoneNumbersReportRequest).create();

        System.out.println(outboundReport.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/v2"
	"os"
	"time"
)

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.CreateOutboundPhoneNumbersReportParams{}
	params.SetInsightsV2CreatePhoneNumbersReportRequest(insights.InsightsV2CreatePhoneNumbersReportRequest{
		TimeRange: &insights.InsightsV2CreatePhoneNumbersReportRequestTimeRange{
			StartDatetime: time.Date(2024, 10, 15, 0, 0, 0, 0, time.UTC),
			EndDatetime:   time.Date(2024, 11, 7, 0, 0, 0, 0, time.UTC),
		},
	})

	resp, err := client.InsightsV2.CreateOutboundPhoneNumbersReport(params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} 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;
use Twilio\Rest\Insights\V2\OutboundReportModels;

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

$outbound_report = $twilio->insights->v2->outboundReports->create(
    OutboundReportModels::createInsightsV2CreatePhoneNumbersReportRequest([
        "timeRange" => OutboundReportModels::createInsightsV2CreatePhoneNumbersReportRequestTimeRange(
            [
                "startDatetime" => "2024-10-15T00:00:00Z",
                "endDatetime" => "2024-11-07T00:00:00Z",
            ],
        ),
    ]),
);

print $outbound_report->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)

outbound_report = @client
                  .insights
                  .v2
                  .outbound_reports
                  .create(
                    insights_v2_create_phone_numbers_report_request: {
                      'time_range' => {
                        'start_datetime' => '2024-10-15T00:00:00Z',
                        'end_datetime' => '2024-11-07T00:00:00Z'
                      }
                    }
                  )

puts outbound_report.account_sid
```

```bash
# This endpoint is not currently supported by the Twilio CLI. You can open an issue to request it on https://github.com/twilio/twilio-cli/issues
  # For an alternative low-code solution, check out https://www.twilio.com/docs/openapi/using-twilio-postman-collections
```

```bash
INSIGHTS_V2_CREATE_PHONE_NUMBERS_REPORT_REQUEST_OBJ=$(cat << EOF
{
  "time_range": {
    "start_datetime": "2024-10-15T00:00:00Z",
    "end_datetime": "2024-11-07T00:00:00Z"
  }
}
EOF
)
curl -X POST "https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound" \
--json "$INSIGHTS_V2_CREATE_PHONE_NUMBERS_REPORT_REQUEST_OBJ" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "report_id": "voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av",
  "status": "created",
  "request_meta": {
    "start_datetime": "2024-11-01T00:00:00Z",
    "end_datetime": "2024-11-07T00:00:00Z",
    "filters": []
  },
  "url": "https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound/voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av"
}
```

Generate a specific number of outbound reports by providing the `size` parameter.

Create Outbound Phone Number Reports with Specific Size

```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 createOutboundPhoneNumbersReport() {
  const outboundReport = await client.insights.v2.outboundReports.create({
    time_range: {
      start_datetime: "2024-10-15T00:00:00Z",
      end_datetime: "2024-11-07T00:00:00Z",
    },
    size: 100,
  });

  console.log(outboundReport.accountSid);
}

createOutboundPhoneNumbersReport();
```

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

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

outbound_report = client.insights.v2.outbound_reports.create(
    insights_v2_create_phone_numbers_report_request=OutboundReportList.InsightsV2CreatePhoneNumbersReportRequest(
        {
            "time_range": OutboundReportList.InsightsV2CreatePhoneNumbersReportRequestTimeRange(
                {
                    "start_datetime": "2024-10-15T00:00:00Z",
                    "end_datetime": "2024-11-07T00:00:00Z",
                }
            ),
            "size": 100,
        }
    )
)

print(outbound_report.account_sid)
```

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

using System;
using Twilio;
using Twilio.Rest.Insights.V2;
using System.Threading.Tasks;
using System.Collections.Generic;

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 outboundReport =
            await OutboundReportResource.CreateAsync(new CreateOutboundReportOptions() {
                InsightsV2CreatePhoneNumbersReportRequest =
                    new OutboundReportResource.InsightsV2CreatePhoneNumbersReportRequest.Builder()
                        .WithTimeRange(
                            new OutboundReportResource
                                .InsightsV2CreatePhoneNumbersReportRequestTimeRange.Builder()
                                .WithStartDatetime(
                                    new DateTime(2024, 10, 15, 0, 0, 0, DateTimeKind.Utc))
                                .WithEndDatetime(
                                    new DateTime(2024, 11, 7, 0, 0, 0, DateTimeKind.Utc))
                                .Build())
                        .WithSize(100)
                        .Build()
            });

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

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

import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.HashMap;
import com.twilio.Twilio;
import com.twilio.rest.insights.v2.OutboundReport;

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

        OutboundReport.InsightsV2CreatePhoneNumbersReportRequestTimeRange timeRange =
            new OutboundReport.InsightsV2CreatePhoneNumbersReportRequestTimeRange();
        timeRange.setStartDatetime(ZonedDateTime.of(2024, 10, 15, 0, 0, 0, 0, ZoneId.of("UTC")));
        timeRange.setEndDatetime(ZonedDateTime.of(2024, 11, 7, 0, 0, 0, 0, ZoneId.of("UTC")));

        OutboundReport.InsightsV2CreatePhoneNumbersReportRequest insightsV2CreatePhoneNumbersReportRequest =
            new OutboundReport.InsightsV2CreatePhoneNumbersReportRequest();
        insightsV2CreatePhoneNumbersReportRequest.setTimeRange(insightsV2CreatePhoneNumbersReportRequestTimeRange);
        insightsV2CreatePhoneNumbersReportRequest.setSize(100);

        OutboundReport outboundReport = OutboundReport.creator(insightsV2CreatePhoneNumbersReportRequest).create();

        System.out.println(outboundReport.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/v2"
	"os"
	"time"
)

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.CreateOutboundPhoneNumbersReportParams{}
	params.SetInsightsV2CreatePhoneNumbersReportRequest(insights.InsightsV2CreatePhoneNumbersReportRequest{
		TimeRange: &insights.InsightsV2CreatePhoneNumbersReportRequestTimeRange{
			StartDatetime: time.Date(2024, 10, 15, 0, 0, 0, 0, time.UTC),
			EndDatetime:   time.Date(2024, 11, 7, 0, 0, 0, 0, time.UTC),
		},
		Size: 100,
	})

	resp, err := client.InsightsV2.CreateOutboundPhoneNumbersReport(params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} 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;
use Twilio\Rest\Insights\V2\OutboundReportModels;

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

$outbound_report = $twilio->insights->v2->outboundReports->create(
    OutboundReportModels::createInsightsV2CreatePhoneNumbersReportRequest([
        "timeRange" => OutboundReportModels::createInsightsV2CreatePhoneNumbersReportRequestTimeRange(
            [
                "startDatetime" => "2024-10-15T00:00:00Z",
                "endDatetime" => "2024-11-07T00:00:00Z",
            ],
        ),
        "size" => 100,
    ]),
);

print $outbound_report->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)

outbound_report = @client
                  .insights
                  .v2
                  .outbound_reports
                  .create(
                    insights_v2_create_phone_numbers_report_request: {
                      'time_range' => {
                        'start_datetime' => '2024-10-15T00:00:00Z',
                        'end_datetime' => '2024-11-07T00:00:00Z'
                      },
                      'size' => 100
                    }
                  )

puts outbound_report.account_sid
```

```bash
# This endpoint is not currently supported by the Twilio CLI. You can open an issue to request it on https://github.com/twilio/twilio-cli/issues
  # For an alternative low-code solution, check out https://www.twilio.com/docs/openapi/using-twilio-postman-collections
```

```bash
INSIGHTS_V2_CREATE_PHONE_NUMBERS_REPORT_REQUEST_OBJ=$(cat << EOF
{
  "time_range": {
    "start_datetime": "2024-10-15T00:00:00Z",
    "end_datetime": "2024-11-07T00:00:00Z"
  },
  "size": 100
}
EOF
)
curl -X POST "https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound" \
--json "$INSIGHTS_V2_CREATE_PHONE_NUMBERS_REPORT_REQUEST_OBJ" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "report_id": "voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av",
  "status": "created",
  "request_meta": {
    "start_datetime": "2024-11-01T00:00:00Z",
    "end_datetime": "2024-11-07T00:00:00Z",
    "filters": []
  },
  "url": "https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound/voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av"
}
```

## Fetch Outbound Phone Number Reports

`GET https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound/{reportId}`

### Path parameters

```json
[{"name":"reportId","in":"path","description":"A unique Report Id.","schema":{"type":"string"},"required":true}]
```

### Query parameters

```json
[{"name":"PageSize","in":"query","description":"How many resources to return in each list page.","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"}}]
```

Fetch Outbound Phone Number Reports

```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 listOutboundPhoneNumbersReport() {
  const outbounds = await client.insights.v2
    .outbound("voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av")
    .list({ limit: 20 });

  outbounds.forEach((o) => console.log(o.handle));
}

listOutboundPhoneNumbersReport();
```

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

outbounds = client.insights.v2.outbound(
    "voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av"
).list(limit=20)

for record in outbounds:
    print(record.handle)
```

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

using System;
using Twilio;
using Twilio.Rest.Insights.V2;
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 outbounds = await OutboundResource.ReadAsync(
            pathReportId: "voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av", limit: 20);

        foreach (var record in outbounds) {
            Console.WriteLine(record.Handle);
        }
    }
}
```

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

import com.twilio.Twilio;
import com.twilio.rest.insights.v2.Outbound;
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<Outbound> outbounds =
            Outbound.reader("voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av").limit(20).read();

        for (Outbound record : outbounds) {
            System.out.println(record.getHandle());
        }
    }
}
```

```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/v2"
	"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.ListOutboundPhoneNumbersReportParams{}
	params.SetLimit(20)

	resp, err := client.InsightsV2.ListOutboundPhoneNumbersReport("voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		for record := range resp {
			fmt.Println(resp[record].Handle)
		}
	}
}
```

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

$outbounds = $twilio->insights->v2
    ->outbound("voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av")
    ->read(20);

foreach ($outbounds as $record) {
    print $record->handle;
}
```

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

outbounds = @client
            .insights
            .v2
            .outbound('voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av')
            .list(limit: 20)

outbounds.each do |record|
   puts record.handle
end
```

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

twilio api:insights:v2:voice:reports:phone-numbers:outbound:list \
   --report-id voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av
```

```bash
curl -X GET "https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound/voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av?PageSize=20" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "meta": {
    "page": 0,
    "page_size": 50,
    "first_page_url": "https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound/voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av?PageSize=50&Page=0",
    "previous_page_url": null,
    "url": "https://insights.twilio.com/v2/Voice/Reports/PhoneNumbers/Outbound/voiceinsights_report_01jmzm99cte5rrbbhv8bctd4av?PageSize=50&Page=0",
    "next_page_url": null,
    "key": "reports"
  },
  "reports": []
}
```

## Related how-to documentation

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

* [Queueing Calls](/docs/voice/queue-calls)
* [Make Twilio API requests](/docs/usage/requests-to-twilio)
  * To learn more about this API, see the [Voice Insights Reports API overview](/docs/voice/voice-insights/api/reports-api)
