How Can I Post Contact Form Data to External API?

Hi,

I am a developer (new to Wix/Corvid) trying to help a client with what seems to be a simple request: send contact form data to an external CRM tool via the third party’s REST API.

The live Wix site currently has a standard Wix contact form which is storing results in a submissions table. Is it possible to access that form’s data—either before or after being stored to the submissions table—and use the Fetch API to POST the submitted data to the external service? If so, can someone point me to the required steps? If not, what are the alternatives?

I have been scouring Corvid documentation and forums for the correct approach to this, so forgive me if it is obvious and I’m just not seeing it.

Hello, Mike!

Please check out the following tutorials:
Corvid: Accessing Third-Party Services with the Fetch API
Corvid: Exposing a Site API with HTTP Functions

You can assess contact’s info using the following API https://www.wix.com/corvid/reference/wix-crm.html#ContactInfo

However, to work with data using code it would be the best to create your own custom form .

Good luck!

Hey Mike, I did something similar with posting data to a Zapier webhook. But an endpoint is an endpoint, doesn´t make much diff.
Here´s the example: https://girizano.wixsite.com/codecorner/post/writing-events-to-google-calendar-with-zapier

If you have a custom form with collections, you can simply, use on click event for submit button to gather form data and post it via external api, I have explained the detail process here: How to Post Custom Contact Form Data to External API in Wix? - Sami