Posting to an external webhook

Hello! Just started with Wix and loving it so far. Added a member community to the site and now looking for a best practice recommendation to auto-subscribe new members to my Cerkl-powered personalized email newsletter. On the old Wordpress site, we would post name and email to the Cerkl endpoint.

I’m assuming on Wix, I’m assuming we’d write our own code for wixU.register() https://www.wix.com/corvid/reference/wix-users.html#register

Upon successful registration, post to the Cerkl webhook.

A. Does this sound correct?
B. Does anyone have an example of posting to a webhook in Corvid?

TIA!

Yes, got it working. Here’s the code from a custom signup form:

$w.onReady( function () {

$w(‘#btnSignup’).onClick( () => {
//register member
wixUsers.register($w(‘#email’).value, $w(‘#password’).value, {
“contactInfo”: {
“firstName”: $w(‘#firstname’).value,
“lastName”: $w(‘#lastname’).value
}
});
let fullname_concat = $w(‘#firstname’).value + " " + $w(‘#lastname’).value;

let URI=“email=” + encodeURIComponent($w(“#email”).value) + “&fullname=” + encodeURIComponent(fullname_concat);

URI=“https://example.endpoint.com/endpoint&” + URI;

fetch( URI, {
“method”: “post”,
“headers”: {
“Content-Type”: “application/x-www-form-urlencoded”
}//,