header-logo
Learn how to use Wix to build your site and business.
Design and manage your site using intuitive Wix features.
Manage subscriptions, plans and invoices.
Run your business and connect with members.
Learn to purchase, connect or transfer a domain to your site.
Get tools to grow your business and web presence.
Boost your visibility with SEO and marketing tools.
Get advanced features to help you work more efficiently.
Find solutions, learn about known issues or contact us.
placeholder-preview-image
Improve your skills with our courses and tutorials.
Get tips for web design, marketing and more.
Learn to increase organic site traffic from search engines.
Build a custom site using our full-stack platform.
Get matched with a specialist to help you reach your goals.
placeholder-preview-image

Wix Automations: Sending an HTTP Request

5 min
In this article
  • Step 1 | Set up a new automation
  • Step 2 | Configure the HTTP request
  • (Optional) Step 3 | Set response data structure
  • Step 4 | Activate the automation
  • FAQs
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 + New 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. 
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.