Qubitro Documentation
SupportLog inSign Up
  • Documentation
  • Guides
  • Developers
  • Welcome
  • Data Sources
    • No-Code Integrations
      • Onomondo
      • Notehub
      • The Things Stack
      • Soracom
      • Loriot
      • 1NCE
      • Golioth
      • AWS IoT Core LoRaWAN
      • Actility ThingPark
      • Chirpstack
      • Particle
    • MQTT
    • HTTP
  • Platform
    • Project
      • Settings
      • Access Management
      • Roles & Permissions
    • Device
      • Settings
    • Storage
      • Time Series Storage
    • Functions
      • Decoder Function
        • LoRaWAN Device Template Decoder
        • LoRaWAN Custom Decoder
        • Hex Payload Decoder
      • Transformation Function
      • Rule Function
        • Send Email
        • Webhooks
        • Slack
        • Twilio
        • Mailgun
        • SendGrid
      • Storage Function
        • AWS Redshift
        • Google BigQuery
        • MQTT Publish
        • MongoDB Time Series
      • Scheduled Function
        • HTTP
      • Function Settings
      • Function Templates
        • Settings
    • Monitoring
      • Dashboards
        • Setup & Configuration
        • Widgets
          • Chart
          • State Timeline
          • Gauge
          • Stat
          • Headline
          • Aggregated Chart
          • Map
          • Battery
          • Image
          • Image Map
          • Table
          • Storage Table
          • Iframe
          • Blob Storage
        • Settings
        • Access Management
        • Roles & Permission
      • Blueprints
        • Setup & Configuration
        • Settings
    • Credentials
      • API Keys
      • External Credentials
        • Slack
        • Mailgun
        • SendGrid
        • Twilio
        • AWS Redshift
        • MQTT
        • MongoDB
        • The Things Stack
      • Webhook Signing Key
  • Add-Ons
    • Storage Views
    • Aggregated View
    • Archived Views
    • Blob Storage
    • Managed Email
    • Audit Log
    • MCP Server
  • Organizations
    • Overview
    • General
    • Groups
    • Members & Roles
      • Read Only
      • Read/Write
      • Admin
    • Custom Roles
    • Add-Ons
    • Billing
    • Invoices
    • White-Label
  • Account Management
    • Personal Accounts
Powered by GitBook
On this page
  • Key Features
  • Examples
  • Configuration
  • Common Errors & Troubleshooting
Export as PDF
  1. Platform
  2. Functions
  3. Rule Function

Webhooks

The Webhooks action in Qubitro Rule Functions enables you to send data to external platforms and services automatically via HTTP requests.

The Webhooks action in Qubitro Functions enables you to send data to external platforms and services automatically via HTTP requests. It's ideal for integrating Qubitro with other systems, triggering automated workflows, or forwarding real-time data.

Key Features

  • Supports HTTP methods: POST, PUT, GET, DELETE.

  • Sends JSON payloads with dynamic device data.

  • Customizable request headers.

Examples

  • Send device data to external analytics platforms.

  • Trigger workflows on platforms like Zapier, Slack, or Microsoft Teams.

  • Integrate Qubitro data with your custom APIs.

Configuration

When triggered by defined conditions, Qubitro automatically sends an HTTP request with incoming data to the specified external webhook URL. You define the request method, headers, and JSON body content.

1

Configure Basic Settings

  • Set Debounce Period (optional): Specify a timeframe to avoid repeated triggers.

  • Enter Name: Provide a descriptive, unique name for your function.

  • Provide Description: Briefly describe the function's purpose.

2

Configure Webhook Template

  • Webhook URL: Enter the URL for your external service endpoint.

  • Request Method: Select from POST, PUT, GET, or DELETE.

  • Request Headers (optional): Specify headers required by the external platform, such as authorization or content type.

  • Request Body Payload: Define a JSON object to send data dynamically to your external service.

{
  "maintenance_needed": "${{maintenance_needed}}",
  "timestamp": "${{timestamp}}",
  "acoustic_level": "${{acoustic_level}}",
  "anomaly_detected": "${{anomaly_detected}}",
  "equipment_health": "${{equipment_health}}",
  "pressure": "${{pressure}}",
  "temperature": "${{temperature}}",
  "flow_rate": "${{flow_rate}}",
  "humidity": "${{humidity}}",
  "random_key": "random_value"
}

Adjust the JSON body according to your requirements using placeholders

3

Define Trigger Conditions

  • Choose a condition type (e.g., JavaScript Logic Builder) to determine when the webhook triggers.

function run(){
  let temperature = "${{temperature}}";

  if (temperature > 30){
    trigger();
  }
};

In this example, a webhook request triggers when the temperature exceeds 30.

Common Errors & Troubleshooting

Webhook not triggering
  • Verify the webhook URL is correct and accessible.

  • Ensure your JavaScript logic conditions are met and error-free.

  • Confirm your external service endpoint can accept your chosen HTTP request method.

Incorrect or missing data in payload
  • Ensure JSON placeholders match exactly the keys in your device data payload.

  • Confirm the selected request method and headers match the external system's requirements.

Receiving unexpected response or errors
  • Check the external service logs for detailed error messages.

  • Validate the JSON structure and ensure data types are correct.

  • Test webhook manually using tools like Postman.

PreviousSend EmailNextSlack

Last updated 2 months ago