Curl command for API subscribe

twisted1919

Administrator
Staff member
This will work:
Bash:
curl -X POST -L -F 'EMAIL=you@domain.com' -F 'FIRST_NAME=John' -F 'LAST_NAME=Doe' -F 'NEWSLETTER_CONSENT=1' https://domain.with-mailwizz.com/index.php/lists/[LIST_UID]/subscribe
 

JackBauer

New Member
So someone could make an attack to this form via API and fill your database with trash?

The only thing they need is the list id...
 

twisted1919

Administrator
Staff member
Very unlikley. The list unique id itself is not something easy to get. Secondly, emails must be verified to actually be used, and thirdly, you can enable recaptcha and end it all.
 
Top