NAME
Twilio::Rest::Accounts::V1::BulkContacts - The BulkContacts resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $bulk_contacts = $client->accounts->v1->bulk_contacts->create($items);
DESCRIPTION
This file holds BulkContactsList and BulkContactsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
BulkContactsList
Returned by $client->accounts->v1->bulk_contacts. See also Twilio::ListResource.
create
my $bulk_contacts = $client->accounts->v1->bulk_contacts->create($items);
Returns a BulkContactsInstance.
The required values are:
$items-
A list of objects where each object represents a contact's details. Each object includes the following fields:
contact_id, which must be a string representing phone number in E.164 format;correlation_id, a unique 32-character UUID that maps the response to the original request;country_iso_code, a string representing the country using the ISO format (e.g., US for the United States); andzip_code, a string representing the postal code. An array reference. A hash or array reference, or a string of JSON.
BulkContactsInstance
See also Twilio::InstanceResource.
Its fields are:
- items
-
A list of objects where each object represents the result of processing a
correlation_id. Each object contains the following fields:correlation_id, a unique 32-character UUID that maps the response to the original request;error_code, an integer where 0 indicates success and any non-zero value represents an error; anderror_messages, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
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.