NAME

Twilio::Rest::Insights::V2::Report - The Report resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $report = $client->insights->v2->reports->create(\%body);
my $report = $client->insights->v2->reports($report_id)->fetch;

DESCRIPTION

Root resource for Voice Reports V2

This file holds ReportList, ReportContext and ReportInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

ReportList

Returned by $client->insights->v2->reports. See also Twilio::ListResource.

create

my $report = $client->insights->v2->reports->create(\%body);

Create a Report for a specific account with given time range and filters. Returns a ReportInstance.

%body is sent as JSON. It can be left out. When given, it takes the names Twilio's API documentation uses.

Its fields are:

filters

No description in the specification.

time_range

Optional start and end date time for the report window. Defaults to the most recent 7 days when omitted.

get_context

my $context = $client->insights->v2->reports->get_context($report_id);

Returns a ReportContext, and makes no request.

ReportContext

Returned by $client->insights->v2->reports($report_id). It makes no request until one of these methods is called.

fetch

my $report = $client->insights->v2->reports($report_id)->fetch;

Get Account Level Report for the given Report Id. Returns a ReportInstance.

ReportInstance

See also Twilio::InstanceResource.

It has fetch, which work as they do on the context.

Its fields are:

account_sid

The unique SID identifier of the Account.

report

No description in the specification.

report_id

The account level report identifier as Voice Insights Report TTID.

request_meta

No description in the specification.

status

One of created, running or completed.

url

The URL of this resource.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.