header-logo
Getting started with WixBuild your website and business with Wix. Try using our AI tools to create your website, customize templates, or hire professionals to build or enhance your online presence.
Creating a websiteRead how to use the Wix Editor and manage content on your site. Discover how to protect your visitors' privacy and make your site accessible.
Account & billingReview your account settings, manage your subscriptions and plans and understand your invoices.
Using the Wix mobile appsUse our mobile apps to run your business efficiently on the go and set up a dedicated app for your site members to stay in touch.
Connecting a domainFollow our step-by step guides to learn how to purchase, connect or transfer a domain for your site, and find out how to keep your site’s data secure.
Managing your businessGet tools to grow your business and web presence. Find the right tools for your specific needs, set up online payments and keep track of your site's analytics.
Promoting your siteLearn to make your site more visible promoting it on search engines, sending emails and running paid ads. Improve your online presence with practical tips.
Studio, Partners & EnterpriseGet the most out of your Studio or Enterprise account with advanced features that'll help you work more efficiently.
Need more help?Find solutions for site performance and technical issues, learn about issues we’re working to fix or contact us for help.
placeholder-preview-image
Wix LearnImprove your skills with our courses and tutorials.
Wix BlogGet tips for web design, marketing and more.
SEO Learning HubLearn to increase organic site traffic from search engines.
Website developmentBuild a custom site using our full-stack platform.
Hire a ProfessionalGet matched with a specialist to help you reach your goals.
placeholder-preview-image
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

Wix Automations: Sending an HTTP Request

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 + 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. 
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. 

Helpmate

Hello

Need a bit more guidance?
Unlock personalized helpLog in to get the most out of Helpmate.