API not working in Perfex

ClintonLee83

New Member
I'm so stuck.

I'm trying to get perfex configured with Mailwizz using a webhooks module but it's returning empty. What am I doing wrong?

These are my settings:
Screen Shot 2023-06-06 at 10.59.51 AM.png
 
I Am sure the request format must not be json but form data, so maybe that's the problem, can you try to play with that?
Also, the header for api key is not apiKey but Api-Key.
 
I'm using apiKey because that's what the configuration object is here:
That's how it is used inside the SDK library, so no connection.

After using 'find' in the doc, I didn't find Api-Key, but I just saw X-Api-Key here (introduction>authorization):
https://api-docs.mailwizz.com/#introduction
Yeah, X-Api_key is the full header.

I'm using all 3 in the header, Api-Key, apiKey and X-Api-Key
I am not familiar with that module, so I can't tell exactly what you need to use. Wait for their response and go from there.
 
Hello Clinton.

Thats possible and doable – many purchasers have achieved it.

However, as our module can be integrated with tons of third party services – we do not provide a guide for all of them, neither can offer custom task support (like connecting your service).

What you need to do in Webhooks module is to create the trigger when a Lead occurs and enter the URL to be notified (the one that MailWizz will give you). If you are having questions regarding the setup on MailWizz’s side, we strongly suggest that you open up a ticket with them.
 
That's just stupid, then how do they know it works?

Maybe you have better luck posting the info directly to your subscription form instead of API?
What I mean is, go to your email lists as a customer, find your list, go to Pages and to the subscription page. Take the URL from there and add it in your app. Then, map the fields, your form uses only uppercase field names, so EMAIL, FNAME and LNAME by default, which looking at your screenshot, is almost correct, just remove everything that is not needed.

Give it a try like this ;)
 
Holey moley. I got it.

Here is the proper configuration to create a subscriber from a new perfex lead using the webhooks module:

(adding this as code because I couldn't post otherwise)

Code:
Request URL:

https://[your-mailwizz-domain]/api/index.php/lists/[List-Unique-ID]/subscribers



Request Method:

POST



Request Format:

FORM



Request Headers (custom):

apiUrl = https://[your-mailwizz-domain]/api/index.php

X-Api-Key = [API Key]



Request Body:

EMAIL = @{lead_email}

FNAME = @{leads_first_name}

LNAME = @{leads_last_name}
 
Back
Top