NAME

Twilio::Rest::Insights::V3::Query - The Query resource

SYNOPSIS

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

my $query = $client->insights->v3->query->create(\%body, \%options);
my $query = $client->insights->v3->query->fetch;

DESCRIPTION

This file holds QueryList and QueryInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

QueryList

Returned by $client->insights->v3->query. See also Twilio::ListResource.

create

my $query = $client->insights->v3->query->create(\%body, \%options);

Execute a semantic query against the Conversations domain. Returns results inline. For long-running queries, use the QueryJobs endpoint. Returns a QueryInstance.

%body is sent as JSON. It takes the names Twilio's API documentation uses.

Its fields are:

domain

The business domain to execute the query against

query

Required. No description in the specification.

The options are:

page_size

Number of items per page

fetch

my $query = $client->insights->v3->query->fetch(\%options);

Retrieve subsequent pages of a synchronous query using a page token. Returns a QueryInstance.

The options are:

page_token

Pagination token

QueryInstance

See also Twilio::InstanceResource.

Its fields are:

domain

Indicates the business domain the query was executed against

items

Array of result objects containing the query results. Each object contains properties matching the requested measures and dimensions.

meta

No description in the specification.

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.