NAME
Twilio::Rest::FlexApi::V1::InsightsSession - The InsightsSession resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $insights_session = $client->flex_api->v1->insights_session->create(\%options);
DESCRIPTION
This file holds InsightsSessionContext and InsightsSessionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
InsightsSessionContext
Returned by $client->flex_api->v1->insights_session. It makes no request until one of these methods is called.
create
my $insights_session = $client->flex_api->v1->insights_session->create(\%options);
To obtain session details for fetching reports and dashboards. Returns a InsightsSessionInstance.
The options are:
-
The Authorization HTTP request header
InsightsSessionInstance
See also Twilio::InstanceResource.
It has create, which work as they do on the context.
Its fields are:
- base_url
-
The base URL to fetch reports and dashboards
- session_expiry
-
The session expiry date and time, given in ISO 8601 format.
- session_id
-
The unique ID for the session
- url
-
The URL of this resource.
- workspace_id
-
Unique ID to identify the user's workspace
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.