Introduction

THIS PAGE
Top Level Properties
Webhook Types
Creating a Webhook
Editing a Webhook
Deleting a Webhook
Chaining Webhooks
Passing/Accessing Data

Webhooks allow you to trigger certain actions whenever an endpoint is triggered. They can be chained together as well as run in parallel to create complex workflows and operations.

We support a variety of 3rd party integrations. You can perform actions such as send messages, trigger deploys, execute serverless functions and much more.

Example: Send a message on Slack whenever a new entry is created in the Leads table.

Screenshot

Top Level Properties

Property Description
Name The name of the table. Can be any arbitrary value.
Type The type of resource. It can be either list type or an individual table.
Learn More

Webhook Types

You can create different types of webhooks based on the kind of action you want to perform.

Function

Execute a custom function written in code. You can write your function in Javascript in Canonic's code editor. It has access to all the data from the previous webhooks. Read More

Integration

Execute 3rd party integration operations. 100s of operations ranging from sending messages on Slack to adding rows to your Google sheet. These can be configured without writing any code, and one-click authentication. Read More

Output

Transform and add outputs to your final result with these nodes. They inject the result of the code snippet under a specific key. For example, you can clean up the response from google sheets and add it to your endpoint's output. Read More

DB Query

Coming Soon!

HTTP API

Coming Soon!


Creating a Webhook

Create a webhook by clicking on the + button next to the mutation you want to add the webhook to.

Screenshot Screenshot

You will see a new webhook pop up on the graph with the the properties panel for the webhook visible on the right side. Fill out the properties. Once done, close the properties panel to save your changes.


Editing a Webhook

You can edit a webhook by clicking on the webhook node on the graph. The properties panel will open up where you can edit all necessary properties.

Screenshot

Note: Some properties are editable but are not recommended to be edited once you go live with your project as they can cause loss of data. You will be shown a warning when performing such actions.

Note Although changes are saved automatically, they must be published for them to reflect in the Docs and be available for consumption.


Deleting a Webhook

A webhook can be deleted by simply right clicking on the webhook and selecting delete.

Screenshot

Caution! This is a dangerous action and can cause permanent loss of data once the graph is published.


Chaining Webhooks

You can chain multiple webhook together. To execute another webhook after the previous webhook completes, click on the "+" button on the right side of the webhook to create another webhook that would be chained to the previous one.

Screenshot

To run another webhook in parallel, click on the plus button on the left, near the previous webhook to create one in parallel.

Screenshot


Passing/Accessing Data

You can access the results of any of the previous nodes in the same chain.

Inside the code editor.

@TODO:

Inside integration configuration.

@TODO:

Did you find what you were looking for?
πŸ‘
πŸ‘Ž
What went wrong?
Need more help?We have a thriving Discordcommunity that can help you with all things Canonic. β†’