Create a new Make SDK instance
Your Make API key or OAuth2 access token
The Make zone (e.g. eu1.make.com)
Optional configuration
Optional
headers?: Record<string, string>Custom headers to include in all requests
Optional
version?: numberAPI version to use (defaults to 2)
Readonly
blueprintsAccess to blueprint-related endpoints Blueprints define the structure and workflow of scenarios
Readonly
connectionsAccess to connection-related endpoints Connections link Make to external apps and services
Readonly
dataAccess to data store-related endpoints Data stores allow you to store and retrieve data within Make
Readonly
dataAccess to data structure-related endpoints Data structures define the structure of data being used in Make
Readonly
enumsAccess to enum-related endpoints Enums provide access to standardized lists like countries, regions, and timezones
Readonly
executionsAccess to execution-related endpoints Executions represent the running instances of scenarios
Readonly
foldersAccess to folder-related endpoints Folders help organize scenarios
Readonly
functionsAccess to function-related endpoints Functions are custom code snippets that can be used in scenarios
Readonly
hooksAccess to webhook-related endpoints Hooks (webhooks and mailhooks) notify you when certain changes occur in connected apps or services
Readonly
incompleteAccess to incomplete execution-related endpoints Incomplete executions are scenario runs that didn't complete successfully
Readonly
keysAccess to key-related endpoints Keys store secrets that can be used in apps
Readonly
organizationsAccess 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
Readonly
scenariosAccess to scenario-related endpoints Scenarios allow you to create and run automation tasks
Readonly
teamsAccess to team-related endpoints Teams control access to Make scenarios, connections, data stores, and other resources
Readonly
usersAccess to user-related endpoints Provides methods to get current user information
Readonly
versionThe API version to use Default is version 2 of the Make API
Readonly
zoneThe Make zone (e.g. eu1.make.com) Identifies the region of the Make servers to connect to
Internal
Make 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)
Optional
options: FetchOptionsRequest options (method, headers, body, query parameters)
Promise resolving to the parsed response data
Protected
handleProtected
Handle 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
Protected
handleProtected
Execute 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
Optional
options: RequestInitFetch options including headers, body, and method
Promise resolving to the Response object
Protected
handleProtected
Handle 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
Protected
prepareProtected
Prepare the request body for API calls
The request body - can be an object, string, or undefined
The headers object to potentially modify the content-type
The body serialized as a string
Protected
prepareProtected
Prepare headers for API requests
Optional
headers: Record<string, string>Request-specific headers to prepare
Headers object ready for the request
Protected
prepareProtected
Add query parameters to a URL
The base URL
Optional
query: Record<string, QueryValue>Query parameters to append
The URL with query parameters appended
Protected
prepareURLProtected
Prepare the full URL for API requests
The URL - can be relative or absolute
Optional
query: 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.