NAME
Twilio::Rest::Supersim::V1::EsimProfile - The EsimProfile resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $esim_profile = $client->supersim->v1->esim_profiles->create(\%options);
for my $esim_profile ($client->supersim->v1->esim_profiles->read({}, 20)) {
...
}
my $esim_profile = $client->supersim->v1->esim_profiles($sid)->fetch;
DESCRIPTION
eSIM Profiles that can be loaded onto consumer eUICC SIMs
This file holds EsimProfileList, EsimProfilePage, EsimProfileContext and EsimProfileInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
EsimProfileList
Returned by $client->supersim->v1->esim_profiles. See also Twilio::ListResource.
create
my $esim_profile = $client->supersim->v1->esim_profiles->create(\%options);
Order an eSIM Profile. Returns a EsimProfileInstance.
The options are:
callback_method-
The HTTP method we should use to call
callback_url. Can be:GETorPOSTand the default is POST. One ofGETorPOST. callback_url-
The URL we should call using the
callback_methodwhen the status of the eSIM Profile changes. At this stage of the eSIM Profile pilot, the a request to the URL will only be called when the ESimProfile resource changes fromreservingtoavailable. eid-
Identifier of the eUICC that will claim the eSIM Profile.
generate_matching_id-
When set to
true, a value forEiddoes not need to be provided. Instead, when the eSIM profile is reserved, a matching ID will be generated and returned via thematching_idproperty. This identifies the specific eSIM profile that can be used by any capable device to claim and download the profile.
read
my @records = $client->supersim->v1->esim_profiles->read(\%options, $limit, $page_size);
Retrieve a list of eSIM Profiles. Returns the records as a list, fetching as many pages as it needs.
The options are:
eid-
List the eSIM Profiles that have been associated with an EId.
sim_sid-
Find the eSIM Profile resource related to a Sim resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
status-
List the eSIM Profiles that are in a given status. One of
new,reserving,available,downloaded,installedorfailed.
stream
my $stream = $client->supersim->v1->esim_profiles->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->supersim->v1->esim_profiles->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->supersim->v1->esim_profiles->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->supersim->v1->esim_profiles->get_context($sid);
Returns a EsimProfileContext, and makes no request.
EsimProfilePage
A Twilio::Page of EsimProfileInstance objects.
records_key
build_instance
Used by Twilio::Page.
EsimProfileContext
Returned by $client->supersim->v1->esim_profiles($sid). It makes no request until one of these methods is called.
fetch
my $esim_profile = $client->supersim->v1->esim_profiles($sid)->fetch;
Fetch an eSIM Profile. Returns a EsimProfileInstance.
EsimProfileInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account to which the eSIM Profile resource belongs.
- activation_code
-
Combined machine-readable activation code for acquiring an eSIM Profile with the Activation Code download method. Can be used in a QR code to download an eSIM profile.
- date_created
-
The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- eid
-
Identifier of the eUICC that can claim the eSIM Profile.
- error_code
-
Code indicating the failure if the download of the SIM Profile failed and the eSIM Profile is in
failedstate. - error_message
-
Error message describing the failure if the download of the SIM Profile failed and the eSIM Profile is in
failedstate. - iccid
-
The ICCID associated with the Sim resource.
- matching_id
-
Unique identifier of the eSIM profile that can be used to identify and download the eSIM profile from the SM-DP+ server. Populated if
generate_matching_idis set totruewhen creating the eSIM profile reservation. - sid
-
The unique string that we created to identify the eSIM Profile resource.
- sim_sid
-
The SID of the Sim resource that this eSIM Profile controls.
- smdp_plus_address
-
Address of the SM-DP+ server from which the Profile will be downloaded. The URL will appear once the eSIM Profile reaches the status
available. - status
-
One of
new,reserving,available,downloaded,installedorfailed. - url
-
The absolute URL of the eSIM Profile 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.