top of page

Managing your business

Managing your customers

Wix Automations: Sending an HTTP Request


Before you begin:


This article is intended for advanced users. Sending an HTTP request requires prior technical knowledge and experience working with webhooks.


Wix Automations integrate seamlessly with external services by sending or retrieving data from any webhook or API endpoint. Use the HTTP request action to trigger events, update external records, or incorporate external data into later steps of your automation flow.


This action supports real-time communication between disconnected systems, making it easy to handle request bodies, manage responses (e.g. JSON), and map the returned data for subsequent automation steps.



Step 1 | Set up a new automation


To get started, create a new automation and add the HTTP request action.


To set up an automation:


  1. Go to Automations in your site's dashboard.

  2. Click + Create Automation at the top right

  3. Click + Start from Scratch.

  4. Click the title to give your automation a name.

  5. Select a trigger for your automation.

  6. Click + to add a step.

  7. Click Action.

  8. Select Send HTTP request on the left.


Screenshot of configuration of send http request action.


Step 2 | Configure the HTTP request


Set up the details of your HTTP request, including the method, URL, and the data you’d like to send.


Click below to learn how to configure each field.


Select the details of your HTTP request starting with the method based on the action you want to perform.

  • POST: Submits data to be processed (e.g. creating a new record).

  • GET: Retrieves data from the specified resource (e.g. fetch a list of users).

  • PUT: Updates or replaces an existing resource (e.g. update user info).

  • DELETE: Removes the specified resource.

  • OPTIONS: Used less frequently, depending on the API specifications.

  • PATCH: Used less frequently, depending on the API specifications.

    Screenshot of the method drop-down in the http request action.

Enter the target URL that should receive the notifications. It can include any path or query parameter you may need in order to reach the proper destination – click Customize next to Webhook URL to add a new parameter.

Path Parameters

Some APIs require a path parameter.

Example of a JavaScript URL with path params.

For example, you can get the weather results simply by searching the zipcode if you know it.

Example of a JavaScript URL with path params customized in the action.

Query Parameters

Some APIs require a query parameter.

Example of a JavaScript URL with query params.

For example, you can search the weather by state and city.

Example of a JavaScript URL with query params customized in the action.

Decide what data is included in the body of your request. Depending on the HTTP method you choose, the available options may change for what can be included in your request.

Adjust the following options:

  • Nest request body under data: Enable or disable this toggle to control whether the request body is wrapped inside a parent 'data' object. This depends on how your endpoint expects to receive the data.

  • Request body: Choose which data to include as part of this webhook request.

    • All automation data: All data from the trigger is sent to the target URL. For example, if the trigger is Wix Forms, the webhook sends data from every form field.

      Tip: Click Preview request body to see all the data that the webhook will send.

    • Choose fields: Only specific data is sent to the target URL. For example, if your trigger is Wix Forms you might only want to send the Name and Email fields.

      1. Click + Add New Item.

      2. Enter a key name in the Key field. This helps you distinguish what data is sent.

      3. Enter a value in the Value field to choose the data that should match the key.

        Tip: Click Customize to create custom workflows using the formula field.

      4. Click Add.

      5. (Optional) Click + Add New Item to add another row and match key names to data.

        Note: If you choose not to map a specific key to a value, the webhook will notify the URL without any additional information from the trigger.

A screenshot of the configuration options in a send http request action.

A screenshot of the configuration options in a send http request action.


(Optional) Step 3 | Set response data structure


Finally, configure the data structure returned from the external service to match Wix Automations' schema. For example, for a response from the weather app we can enter a sample JSON like this:


A screenshot of an example for a sample JSON request.

Note:


This sample data is used to generate an output data structure. The automation can then treat these fields (e.g. firstName, id, age) as distinct variables, which you can use in later steps.


To set your response structure:


  1. Click Set Response Data Structure to define the data passed to your automation.

    1. Enter a JSON example that you expect to see in the response.

    2. Click Preview Structure.

    3. Click Save Structure or Edit JSON to continue editing.

  2. When you're done, click Apply.


A screenshot of set response data structure pop-up.


Step 4 | Activate the automation


At the top right save as a draft and come back later or activate right away. It now appears on your Automations page where you can monitor, edit, deactivate, or delete according to your needs.


Tip:


Send a test request to make sure you have successfully set up your response to meet your expectations.



FAQs


Click below to learn more about sending an HTTP request.


No, this feature does not support calls to Wix’s own APIs. You can only target external services.


If your automation is turned off, Wix Automations will not send requests.


If the payload has inconsistencies with the data structure you defined, your automation will still run. Fields that don’t match or aren’t present will simply be ignored, as they are not considered mandatory.


If the data doesn’t appear in the next step, ensure your response schema is correctly set up. If data still doesn’t appear, re-check your endpoint’s logs or documentation to confirm the structure of the response.


Need An AI Run Website?
Contact Us
 Today!

wix experts
Graphic2Traffic web design
©
bottom of page