Create a new Hooks instance.
Function for making API requests
Create a new hook.
Required hook-type parameters that have a default value in the hook type's
manifest (e.g. method, headers, stringify for gateway-webhook) are
filled by the API when omitted from data; values provided in data take precedence.
The hook configuration to create
Promise with the created hook
Delete a hook.
The hook ID to delete
Disable a hook.
The hook ID to disable
Enable a hook.
The hook ID to enable
Get hook details.
The hook ID to get details for
Promise with the hook details
Start learning mode for a hook. Learning mode helps analyze incoming data structure
The hook ID to start learning mode for
Stop learning mode for a hook.
The hook ID to stop learning mode for
List all hooks for a team.
The team ID to filter hooks by
Optionaloptions: ListHooksOptionsOptional parameters for filtering
Promise with the list of hooks
List hooks across the teams of an organization that the user can view, including private spaces.
The organization ID to list hooks for
Optionaloptions: ListOrganizationHooksOptionsOptional filters (team, name, type, assignment, enabled state) and paging
Promise with the list of hooks
Ping a hook to check its status.
The hook ID to ping
Promise with the ping status
Rename a hook.
The hook ID to rename
The new name for the hook
Promise with the updated hook
Update a hook's configuration data.
The hook ID to update
The updated hook configuration
Promise with a boolean indicating success
Class providing methods for working with Make hooks. Hooks refer to the webhooks and mailhooks available in Make that notify you whenever a certain change occurs in the connected app or service.