NAME

Twilio::Rest::Webhooks::V1::Test - The Test resource

SYNOPSIS

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

my $test = $client->webhooks->v1->tests->create(\%body);

DESCRIPTION

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

TestList

Returned by $client->webhooks->v1->tests. See also Twilio::ListResource.

create

my $test = $client->webhooks->v1->tests->create(\%body);

Send a test webhook to validate your configuration. Requires a settingId — tests end-to-end delivery using the specified Setting's auth, signature, and connection configuration. ### When to Test - Before deploying Settings to production - When debugging webhook delivery issues. Returns a TestInstance.

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

Its fields are:

method

HTTP method to use when sending the test webhook request One of GET or POST.

settingId

Required. Setting to use for test configuration

url

Required. Target webhook URL to test

TestInstance

See also Twilio::InstanceResource.

Its fields are:

created_at

A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

result

No description in the specification.

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.