Webhook

Overview of Webhook managed source connector.

The Webhook Source Connector allows you to publish events to the GlassFlow pipeline using a Webhook URL. This integration is perfect for real-time notifications, web integrations, and custom workflows.

Connector Details

To configure the Webhook connector, GlassFlow provides the following details:

  • Webhook URL: The URL provided by GlassFlow where the events will be published. Example, Webhook URL:

https://api.glassflow.dev/v1/pipelines/<pipeline-id>/topics/input/events

Setting Up the Webhook Connector

  1. Log in to the GlassFlow WebApp and navigate to the "Pipelines" section.

  2. Create a new pipeline.

  3. Configure the Data Source:

    • Choose "Webhook" as the Data Source type.

    • GlassFlow will generate a Webhook URL for you.

  4. Click Next Step and confirm your pipeline data source settings.

Once configured, your GlassFlow pipeline will start receiving events published to the provided Webhook URL.

Sending Events to the Webhook

Use the provided Webhook URL to send events to your GlassFlow pipeline. Here is an example of how to send a POST request to the Webhook URL using curl command:

curl -X POST https://api.glassflow.dev/v1/pipelines/<your-pipeline-id>/topics/input/events \
     -H "Content-Type: application/json" \
     -H "X-PIPELINE-ACCESS-TOKEN: <your_pipeline_access_token>" \
     -d '{
           "key1": "value1",
           "key2": "value2"
         }'

Replace <your-pipeline-id> with your actual pipeline ID and <your_pipeline_access_token> with your actual pipeline access token. Modify the JSON data in the -d flag to fit the event data you want to send.

Last updated

Logo

© 2023 GlassFlow