#!/usr/bin/perl use warnings; use strict; use LWP::UserAgent; use Data::Dumper; my $ua = LWP::UserAgent->new(); my $url = "https://api.mysite.com/2022-01-08/enrich/upload"; my $data = 'testme@mysite.com'; my $webhook = "http://mywebhook.com/"; my $user = "any_string"; my $pwd = "{secure_token}"; my $content_type = "form-data"; $ua->credentials($user, $pwd); my $response = $ua->post($url, Content_Type => $content_type, Content => [data => $data, webhook => $webhook] ); my $content = $response->as_string(); print ($content); ####