Make Endpoints SDK
Use the Make Endpoints SDK to call an app action directly from JavaScript or TypeScript. Instead of building a scenario for an individual call, select an app Endpoint, provide its input, and run it with a Make connection where required.
@makehq/endpoints-sdk includes the make-endpoints-cli and requires installing the TypeScript SDK alongside it.
To manage Make resources such as scenarios and teams, use the Make TypeScript SDK. The Endpoints SDK uses that SDK's Make client for authentication and HTTP requests.
Before you begin
You'll need:
Node.js 24 or 26, as supported by the current package.
Endpoints enabled for your Make organization.
A Make API key with
endpoints:runand access to the selected team.Your Make zone and team ID.
A compatible Make connection for an Endpoint that requires authentication. Its connection type and granted provider scopes must match the Endpoint's requirements.
The Make API key authenticates your request to Make. The connection ID identifies the connection used to access the app. Don’t put an app’s credentials in the Endpoint’s input.
Install the SDK
Install the Endpoints SDK and its Make SDK peer dependency:
npm install @makehq/endpoints-sdk @makehq/sdkCall an Endpoint
To call an Endpoint, store your API key, zone, and team ID in environment variables, such as MAKE_API_KEY, MAKE_ZONE, and MAKE_TEAM_ID. Create a Make client with the API key and zone. Call the Endpoint with its input. If the Endpoint uses a connection, also pass the connection ID.
Example
This example retrieves a Google Docs document through an existing Google connection in Make. To run it:
Set
MAKE_API_KEY,MAKE_ZONE, andMAKE_TEAM_IDas environment variables.Set
MAKE_CONNECTION_IDto the ID of your Google connection.Set
GOOGLE_DOC_IDto the ID of the document you want to retrieve.Copy the following code into a file named
get-document.mjs:
The input includes filter, which this Endpoint's input type requires.
In the folder that contains the file, run the script:
The script prints the document as JSON in your terminal. The output contains the document’s content, so keep it out of public logs.
Choose an import
Import only the clients your application needs. In the table below, the last two rows use Google Docs as an example. For another app, replace google-docs and GoogleDocs with that app’s name.
EndpointsSdk from @makehq/endpoints-sdk
All generated app clients
GoogleDocsSdk from @makehq/endpoints-sdk/apps/google-docs
All bundled versions of one app
GoogleDocsV1Sdk from @makehq/endpoints-sdk/apps/google-docs/v1
One specific app version
SdkTransport is exported from the package root. App paths use the app's package name, such as google-docs, rather than its JavaScript property name.
Generated methods resolve directly to the Endpoint's output. The lower-level sdk.execute(pointer, options) method can call an Endpoint by name and returns the envelope { output }. Use it only when you know the correct app, version, Endpoint name, and input contract.
Discover Endpoints and use them with agents
The @makehq/endpoints-sdk package also includes the make-endpoints-cli command.
To view the Endpoints included in the package, run list. To view one Endpoint's definition, run describe with the app, version, and Endpoint name. For example:
Run list and describe before you choose Endpoints for your agent. They don't check your connections, so an Endpoint in the output might not be one your team can run. Give your agent only the Endpoints the task needs.
If your agent runs in JavaScript or TypeScript, import EndpointTools from @makehq/endpoints-sdk/tools. For example, this script finds the tool for the Google Docs get-document Endpoint and prints its definition:
Resources
Last updated

