NAME

Twilio::Rest::FrontlineApi::V1::User - The User resource

SYNOPSIS

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

my $user = $client->frontline_api->v1->users($sid)->fetch;
$client->frontline_api->v1->users($sid)->update(\%options);

DESCRIPTION

A User resource represents a frontline user.

This file holds UserList, UserContext and UserInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

UserList

Returned by $client->frontline_api->v1->users. See also Twilio::ListResource.

get_context

my $context = $client->frontline_api->v1->users->get_context($sid);

Returns a UserContext, and makes no request.

UserContext

Returned by $client->frontline_api->v1->users($sid). It makes no request until one of these methods is called.

fetch

my $user = $client->frontline_api->v1->users($sid)->fetch;

Fetch a frontline user. Returns a UserInstance.

update

my $user = $client->frontline_api->v1->users($sid)->update(\%options);

Update an existing frontline user. Returns a UserInstance.

The options are:

avatar

The avatar URL which will be shown in Frontline application.

friendly_name

The string that you assigned to describe the User.

is_available

Whether the User is available for new conversations. Set to false to prevent User from receiving new inbound conversations if you are using Pool Routing.

state

One of active or deactivated.

UserInstance

See also Twilio::InstanceResource.

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

Its fields are:

avatar

The avatar URL which will be shown in Frontline application.

friendly_name

The string that you assigned to describe the User.

identity

The application-defined string that uniquely identifies the resource's User. This value is often a username or an email address, and is case-sensitive.

is_available

Whether the User is available for new conversations. Defaults to false for new users.

sid

The unique string that we created to identify the User resource.

state

One of active or deactivated.

url

An absolute API resource URL for this user.

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.