Built-in apps
HTTP
8 min
true false 107false unhandled content type false unhandled content type you do not need to establish a connection to use most of the http app modules http modules select a module of the http app based on the authentication requirements of the resource you want to use to use modules that require authentication, you have to create a connection first actions get a file downloads a file from a url true falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type make a basic auth request sends an http request with basic authentication the output bundle contains the http response true falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type make a client certificate auth request sends an http(s) request to apps that require a client certificate authorization true falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type make an api key auth request sends an https request to a specified url that requires api key authorization and processes the response the output bundle contains the http response in the make an api key auth request module settings, click the add button the add a new keychain window pops up enter the following true falsefalse unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type click create to create the connection you created an api connection you can now use the connection in the module module settings true falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type make an oauth 2 0 request sends an http(s) request to a specified url that requires oauth 2 0 authorization and processes the response in order to make http(s) requests that require an oauth 2 0 authorization, you need to create an oauth connection first create an oauth 2 0 connection {{product name}} supports two flows authorization code enter an authorize url and token url from the app api documentation implicit enter the authorize url from the app api documentation prerequisites an app account access to a developer portal or settings a redirect url (sometimes called a callback url) obtaining credentials in the app create an oauth client in the app that you want to connect with {{product name}} to do this, enter the developer portal or settings specify a redirect url https //www integromat com/oauth/cb/oauth2 obtain the client id and client secret sometimes the app calls them app key and app secret save the client id and client secret in a safe place you will need them when building a scenario in make find the authorize url and token url in the app api documentation these are the addresses through which make communicates with the app establishing the connection in make once you have your credentials from the app, you can enter them in the app's configuration in {{product name}} go to a {{scenario singular lowercase}} add the http make an oauth 2 0 request module click create a connection optional in the connection name field, enter a name for the connection in the flow type field, select the flow in the scopes field, add api scopes refer to the app api documentation to get scopes in the client id and client secret fields, enter the credentials you saved previously click save to create an oauth 2 0 connection you have created an oauth 2 0 connection now you can use the connection in the make an oauth 2 0 request module check the advanced settings to create a connection true falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type module settings true falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type make a request creates an http request and send it to a server the output bundle contains the http response this is a universal module, best to use for resources that do not require authentication true falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type this is an example of how to set up the make a request module to send a post request with the body in the json data format to make sure your json is valid, use a json validator (for example https //jsonlint com/ ) or use a create json module to create the json be careful when combining json data with mapping variables or function directly in the request content field mixing json with mapping can lead to an invalid json structure resolve a target url gets a direct url to a resource instead of a redirect url for example, links for sharing files in storage apps like dropbox redirect you before you reach the target file the module navigates through the redirect chain and returns the target url enter the url you want to resolve the output bundle contains the link to which the original url redirects in the location response header true falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type feeders retrieve headers returns each header (name and value) from the specified http module in a separate bundle true falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type generate json web tokens (jwt) if you need to connect to an api or send messages that requires jwt authentication, you can create a jwt via the http module using the hs256 or hs512 algorithms make allows creating a jwt with the help of custom or built in functions generate a jwt with a custom function this feature is available to enterprise customers go to functions and create a custom function using the following body function readablejwtencode(payload, secret, header = '{"alg" "hs256","typ" "jwt"}') { let formattedheader = iml replace(iml replace(iml replace(iml base64(header), "=", ""), "+", " "), "/", " ") let formattedpayload = iml replace(iml replace(iml replace(iml base64(payload), "=", ""), "+", " "), "/", " ") let signature = iml sha256(formattedheader + " " + formattedpayload, "base64", secret) let formattedsignature = iml replace(iml replace(iml replace(signature, "=", ""), "+", " "), "/", " ") let jwt = formattedheader + " " + formattedpayload + " " + formattedsignature return jwt } replace hs256 with hs512 and sha256 with sha512 in the custom function above to create a hs512 jwt the example custom function has the jwtencode name embedded onto the function body if you want to use another name, change it in the body too start your {{scenario singular lowercase}} with the set multiple variables module and add the following true falsefalse unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type add another set multiple variables module to generate the jwt optional in variable name , enter the name for the token in variable value , enter the following function {{jwtencode(11 payload; 11 secret)}} make sure to take into account the module number in the code in the example above, the header, payload and secret are in the 11th module in the {{scenario singular lowercase}} it may vary from one {{scenario singular lowercase}} to another if you run the {{scenario singular lowercase}} , you will receive the hs256 or hs512 jwt in the second module's output you can connect to an api or send messages that requires jwt authentication generate a jwt with built in functions start your {{scenario singular lowercase}} with the set multiple variables module and add the following true falsefalse unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type add another set multiple variables module to generate the hs256 or hs512 jwt optional in variable name , enter the name for the token in variable value , enter the following function {{5 header}} {{5 payload}} {{replace(replace(replace(sha256(5 header + " " + 5 payload; "base64"; 5 secret); "="; emptystring); "+"; " "); "/"; " ")}} use the sha512 function to create a hs512 jwt make sure to take into account the module number in the code in the example above, the header, payload and secret are in the 5th module in the {{scenario singular lowercase}} it may vary from one {{scenario singular lowercase}} to another if you run the {{scenario singular lowercase}} , you will receive the hs256 or hs512 jwt in the second module's output you can connect to an api or send messages that requires jwt authentication