Integrate Bridge SDK

To write a script that uses the Make SDK to create an automation from your template:

1

Create a new TypeScript project with an IDE of your choice.

2

In the project root folder, create the index.ts file.

3

Install the Make SDK into the project with npm: npm install @integromat/sdk.

4

Import the MakeSDK and MakeAPIKey classes from the @integromat/sdk package: import {MakeSDK, MakeApiKey} from "@integromat/sdk";

5

Create the main function in the script and an instance of the MakeSDK class in it:

const main = async () => {
  const sdk = new MakeSDK({
    baseUrl: 'https://eu2.make.com/',
    credentials: new MakeApiKey('your_make_api_key')
  });
  // The rest of the example
}
6

Store your Make teamId and the ID of the template you want to use in an object:

const flowOptions = {
  teamId: 15543,
  templateId: 12635
};
7

Use the templateOptions object in the initializeFlowFromTemplate method to initialize the scenario creation flow and print the publicUrl property of the resulting object:

const flow = await sdk.instances.initializeFlowFromTemplate(flowOptions);
console.log(flow.publicUrl)
8

Call the main function in the script.

import {MakeSDK, MakeApiKey} from "@integromat/sdk";
const main = async () => {
  const sdk = new MakeSDK({
    baseUrl: 'https://eu2.make.com/',
    credentials: new MakeApiKey('your_make_api_key')

Last updated