Help

HTTP

Supported Actions

HTTP

Make a request

Sends an HTTP(S) request to a specified URL and processes the response.

HTTP

Get a file

Dowloads a file from a given URL.

HTTP

Make a Basic Auth request

Sends an HTTP(S) request to a specified URL that requires Basic Auth authorization and processes the response.

HTTP

Make a OAuth 2.0 request

Sends an HTTP(S) request to a specified URL that requires OAuth 2.0 authorization and processes the response.

Supported Iterators

HTTP

Retrieve headers

Retrieves each header from the HTTP module separately.

Getting started with HTTP

The above modules allow you to monitor events occurring on a specific website, such as website failures and the like. All you have to do is to enter the URL you want to monitor, and if needed, change the request method, specify the content of the request, and determine the HTTP header.

OAuth 2.0 Requests

In order to make a HTTP(S)request to servers that require a OAuth 2.0 authorization, you first need to create a OAuth connection.

Creating a connection

  1. Create a OAuth client in the target service with which you want Integromat to communicate with. This option will mostly likely be found in the Developer section of the given service. When creating the client, you will be asked to specify a so called Redirect URL (sometimes called as Callback URL). Always enter https://www.integromat.com/oauth/cb/oauth2 in this field.

    Once you have created the client, the given service will display two keys Client ID and Client Secret. Some services call these App Key and App Secret. Make sure you write down these keys, you will be asked to provide them when creating the connection in Integromat.

  2. Find the Authorize URI and Token URI in the API documentation of the given service (if the service uses Implicit flow, you will need only Authorize URI). These are URL addresses through which Integromat communicates with the target service. The addresses serve for OAuth authorization.

    Examples of Yahoo addresses:

    • Authorize URI: https://api.login.yahoo.com/oauth2/request_auth
    • Token URI: https://api.login.yahoo.com/oauth2/get_token
  3. If the target service uses scopes (access rights), check how the service separates individual scopes and make sure you set the separator in the advanced settings accordingly. If the separator is not set correctly, Integromat will fail to create the connection and you will receive an invalid scope error.

  4. Once you have completed the steps above, you can start to create the OAuth connection in Integromat. Add the "OAuth 2.0 HTTP(S) request and response processing" module to your scenario and in the "Connection" section click on the "Add" button.

Advanced information

Standard authorization parameters

  • response_type: code for Autorization Code flow and tokenfor Implicit flow
  • redirect_uri: https://www.integromat.com/oauth/cb/oauth2
  • client_id: The Client ID you entered when creating the account

Requesting Access tokens - standard parameters

  • grant_type: authorization_code
  • redirect_uri: https://www.integromat.com/oauth/cb/oauth2
  • client_id: The Client ID you entered when creating the account
  • client_secret: The Client Secret you entered when creating the account
  • code: The code returned by authorization request

Requesting Refresh tokens - standard parameters

  • grant_type: refresh_token
  • refresh_token: The Refresh token obtained together with Access token
  • client_id: The Client ID you entered when creating the account
  • client_secret: The Client Secret you entered when creating the account

Authorized request made to a service

After the connection is established, the module uses by default the bearer token which is sent in the request header field. The bearer token has the following format: Authorization: Bearer <access token>

When creating a connection, it is possible to adjust where the token shall be located, whether in the header in the Authorization parameter or in the URL in the query string.

Rate this article: