Create a new Make SDK instance
Your Make API key or OAuth2 access token
The Make zone (e.g. eu1.make.com)
Optional configuration
Optionalheaders?: Record<string, string>Custom headers to include in all requests
Optionalversion?: numberAPI version to use (defaults to 2)
ReadonlyblueprintsAccess to blueprint-related endpoints Blueprints define the structure and workflow of scenarios
ReadonlyconnectionsAccess to connection-related endpoints Connections link Make to external apps and services
ReadonlydataAccess to data store-related endpoints Data stores allow you to store and retrieve data within Make
ReadonlydataAccess to data structure-related endpoints Data structures define the structure of data being used in Make
ReadonlyenumsAccess to enum-related endpoints Enums provide access to standardized lists like countries, regions, and timezones
ReadonlyexecutionsAccess to execution-related endpoints Executions represent the running instances of scenarios
ReadonlyfoldersAccess to folder-related endpoints Folders help organize scenarios
ReadonlyfunctionsAccess to function-related endpoints Functions are custom code snippets that can be used in scenarios
ReadonlyhooksAccess to webhook-related endpoints Hooks (webhooks and mailhooks) notify you when certain changes occur in connected apps or services
ReadonlyincompleteAccess to incomplete execution-related endpoints Incomplete executions are scenario runs that didn't complete successfully
ReadonlykeysAccess to key-related endpoints Keys store secrets that can be used in apps
ReadonlyorganizationsAccess to organization-related endpoints Organizations are top-level entities that contain teams and manage overall account settings
The protocol to use (defaults to https) Can be changed to http for testing in local environments
ReadonlyscenariosAccess to scenario-related endpoints Scenarios allow you to create and run automation tasks
ReadonlysdkAccess to SDK-related endpoints
Readonlyapps: SDKAppsAccess to App-related endpoints Apps allow you to create and manage custom applications for Make
Readonlyconnections: SDKConnectionsAccess to Connection-related endpoints Connections manage authentication and authorization for apps
Readonlyfunctions: SDKFunctionsAccess to Function-related endpoints Functions are reusable code blocks within apps
Readonlymodules: SDKModulesAccess to Module-related endpoints Modules are the building blocks of apps
Readonlyrpcs: SDKRPCsAccess to RPC-related endpoints RPCs are the building blocks of apps
Readonlywebhooks: SDKWebhooksAccess to Webhook-related endpoints Webhooks are used to listen for external events in apps
ReadonlyteamsAccess to team-related endpoints Teams control access to Make scenarios, connections, data stores, and other resources
ReadonlyusersAccess to user-related endpoints Provides methods to get current user information
ReadonlyversionThe API version to use Default is version 2 of the Make API
ReadonlyzoneThe Make zone (e.g. eu1.make.com) Identifies the region of the Make servers to connect to
InternalMake API requests with authentication
Handles URL construction, authentication, and error handling for all API calls. This method is used internally by all endpoint classes.
The expected response type
The endpoint URL (relative or absolute)
Optionaloptions: FetchOptionsRequest options (method, headers, body, query parameters)
Promise resolving to the parsed response data
ProtectedhandleProtectedHandle API error responses
Converts error responses into MakeError instances with proper error details. This method processes the response body to extract error information.
The error response from the API
Promise resolving to a MakeError instance
ProtectedhandleProtectedExecute the HTTP request
Makes the actual fetch request with the provided URL and options. This method can be overridden in subclasses for custom request handling.
The complete URL to request
Optionaloptions: RequestInitFetch options including headers, body, and method
Promise resolving to the Response object
ProtectedhandleProtectedHandle successful API responses
Parses the response based on content-type header. JSON responses are parsed as objects, other responses as text.
The expected response type
The successful response from the API
Promise resolving to the parsed response data
ProtectedprepareProtectedprepareProtectedPrepare headers for API requests
Optionalheaders: Record<string, string>Request-specific headers to prepare
Headers object ready for the request
ProtectedprepareProtectedAdd query parameters to a URL
The base URL
Optionalquery: Record<string, QueryValue>Query parameters to append
The URL with query parameters appended
ProtectedprepareURLProtectedPrepare the full URL for API requests
The URL - can be relative or absolute
Optionalquery: Record<string, QueryValue>Query parameters to append
The complete URL ready for the request
The main Make SDK class that provides access to all Make API endpoints. Acts as the entry point for interacting with the Make API.