NAME
Twilio::Rest::Messaging::V1::DomainCerts - The DomainCerts resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $domain_certs = $client->messaging->v1->domain_certs($domain_sid)->fetch;
$client->messaging->v1->domain_certs($domain_sid)->update($tls_cert);
$client->messaging->v1->domain_certs($domain_sid)->delete;
DESCRIPTION
This file holds DomainCertsContext and DomainCertsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
DomainCertsContext
Returned by $client->messaging->v1->domain_certs($domain_sid). It makes no request until one of these methods is called.
fetch
my $domain_certs = $client->messaging->v1->domain_certs($domain_sid)->fetch;
Returns a DomainCertsInstance.
update
my $domain_certs = $client->messaging->v1->domain_certs($domain_sid)->update($tls_cert);
Returns a DomainCertsInstance.
The required values are:
$tls_cert-
Contains the full TLS certificate and private for this domain in PEM format: https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail. Twilio uses this information to process HTTPS traffic sent to your domain.
delete
$client->messaging->v1->domain_certs($domain_sid)->delete;
Returns true.
DomainCertsInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- cert_in_validation
-
Optional JSON field describing the status and upload date of a new certificate in the process of validation
- certificate_sid
-
The unique string that we created to identify this Certificate resource.
- date_created
-
Date that this Domain was registered to the Twilio platform to create a new Domain object. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_expires
-
Date that the private certificate associated with this domain expires. You will need to update the certificate before that date to ensure your shortened links will continue to work. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
Date that this Domain was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- domain_name
-
Full url path for this domain.
- domain_sid
-
The unique string that we created to identify the Domain resource.
- url
-
No description in the specification.
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.