Jump to content

Can I use the newsletter block or a form to send an API call to my server with the email entered by the user?

Recommended Posts

I would like to have a newsletter block included on my Squarespace page, and call an API call with the entered information when the users taps the submit button.

For example, I would like to show a text field for email address and a submit button like this:

When the user taps the button, Squarespace allows me to either save this info on a Google sheet, or in a mailchimp account, or to use Zapier to process the info.

I would like to call a simple API call to my server to register the email address that the user entered.  

Is this possible?  If not with a newsletter block, can I do this with a form?  Or is Zapier the only way to do this kind of integration using data the user has entered?

 

Thank you!

Screenshot 2024-04-04 at 13.20.27.png

Link to comment
  • Replies 1
  • Views 708
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.