Call HTTP or HTTPS endpoints with Azure Logic Apps

With Azure Logic Apps and the Hypertext Transfer Protocol (HTTP) connector, you can automate workflows that communicate with any HTTP or HTTPS endpoint by building logic apps. For example, you can monitor the service endpoint for your website. When an event happens at that endpoint, such as your website going down, the event triggers your logic app's workflow and runs the specified actions.

You can use the HTTP trigger as the first step in your worklfow for checking or polling an endpoint on a regular schedule. On each check, the trigger sends a call or request to the endpoint. The endpoint's response determines whether your logic app's workflow runs. The trigger passes along any content from the response to the actions in your logic app.

You can use the HTTP action as any other step in your workflow for calling the endpoint when you want. The endpoint's response determines how your workflow's remaining actions run.

If you're new to logic apps, review What is Azure Logic Apps?

Prerequisites

Add HTTP trigger

  1. Sign in to the Azure portal, and open your blank logic app in Logic App Designer, if not open already.

  2. In the search box, enter "http" as your filter. Under the triggers list, select the HTTP trigger.

    Select HTTP trigger

  3. Provide the HTTP trigger's parameters and values you want to include in the call to the target endpoint. Set up recurrence for how often you want the trigger to check the target endpont.

    Enter HTTP trigger parameters

    For more information about the HTTP trigger, parameters, and values, see Trigger and action types reference.

  4. Continue building your logic app's workflow with actions that run when the trigger fires.

Add HTTP action

Before your logic app can access any service, you must create a connection between your logic app and that service. If you didn't previously create this connection, you're prompted for connection information when you add a trigger or action for that service to your logic app. The Logic Apps Designer provides an easy way for you to create this connection directly from your logic app.

  1. Sign in to the Azure portal, and open your logic app in Logic App Designer, if not open already.

  2. Under the last step where you want to add the HTTP action, choose New step.

    In this example, the logic app starts with the HTTP trigger as the first step.

  3. In the search box, enter "http" as your filter. Under the actions list, select the HTTP action.

    Select HTTP action

    To add an action between steps, move your pointer over the arrow between steps. Choose the plus sign (+) that appears, and then select Add an action.

  4. Provide the HTTP action's parameters and values you want to include in the call to the target endpoint.

    Enter HTTP action parameters

  5. When you're done, make sure you save your logic app. On the designer toolbar, choose Save.

Authentication

To set authentication, choose Show advanced options inside the action or trigger. For more information about available authentication types for HTTP triggers and actions, see Trigger and action types reference.

Get support

Next steps