@makehq/sdk
    Preparing search index...

    Class Connections

    Class providing methods for working with Make connections. Connections link Make to external apps and services, allowing scenarios to interact with them through APIs.

    Index

    Constructors

    Methods

    • Delete a connection.

      Parameters

      • connectionId: number

        The connection ID to delete

      Returns Promise<void>

    • List editable parameters for a connection.

      Parameters

      • connectionId: number

        The connection ID to get editable parameters for

      Returns Promise<string[]>

      Promise with an array of parameter names that can be edited

    • Lock a connection: only the members of its access list can see it, and the caller becomes its sole admin. Only the connection's author can lock it. The API answers 400 (IM903) where locked connections are off for the organization.

      Parameters

      • connectionId: number

        The connection ID to lock

      Returns Promise<EntityVisibilityChange<"locked">>

      Promise with the connection's ID and its new visibility

    • Make a locked connection visible to the whole team again and clear its access list. Only an admin of the locked connection can do this. The API answers 400 (IM903) where locked connections are off for the organization.

      Parameters

      • connectionId: number

        The connection ID to make team-visible

      Returns Promise<EntityVisibilityChange<"team">>

      Promise with the connection's ID and its new visibility

    • Verify if given OAuth scopes are set for a given connection.

      Parameters

      • connectionId: number

        The connection ID to validate scopes for

      • scope: string[]

        Array of OAuth scopes to validate

      Returns Promise<boolean>

      Promise with a boolean indicating if the connection has the given scopes

    • Verify if a connection is working correctly. Tests the connection credentials and configuration.

      Parameters

      • connectionId: number

        The connection ID to verify

      Returns Promise<boolean>

      Promise with a boolean indicating if the connection is valid