NAME

Twilio::Rest::Numbers::V1::EmbeddedSession - The EmbeddedSession resource

SYNOPSIS

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

my $embedded_session = $client->numbers->v1->embedded_sessions($bundle_sid)->create(\%body);

DESCRIPTION

Create a new Embedded Session for an existing Sender ID Registration

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

EmbeddedSessionList

Returned by $client->numbers->v1->embedded_sessions($bundle_sid). See also Twilio::ListResource.

create

my $embedded_session = $client->numbers->v1->embedded_sessions($bundle_sid)->create(\%body);

Creates a new embedded Persona inquiry session for an existing registration in DRAFT or TWILIO_REJECTED status. Use this to resume an incomplete registration or resubmit a rejected one. Returns a EmbeddedSessionInstance.

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

Its fields are:

themeSetId

Theme ID for the Compliance Embeddable UI. Overrides the theme set during registration creation.

EmbeddedSessionInstance

See also Twilio::InstanceResource.

Its fields are:

id

Registration identifier (BU-prefixed).

session_id

Session ID for the compliance embeddable.

session_token

Ephemeral session token for the compliance embeddable.

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.