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
};

The teamId can be found in your user’s team dashboard URL. In Make, navigate to the team dashboard of the newly created team and look at the URL. The URL follows the pattern: https://{makeZone}/{teamId}/team/dashboard

For example, https://www.eu2.make.com/15467/team/dashboardis the URL of the dashboard of the team with the teamId 15467.

The templateId is the number you received after creating your integration template and making it instanceable.

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