Platform DocumentationPlatform Documentation
Device TemplateWorkflowsNodes

API Trigger

Configure an API trigger to start workflows when called via HTTP.

The API Trigger node starts a workflow when it receives an HTTP request at a unique endpoint URL. This allows external systems to trigger workflows on demand.

Overview

The API Trigger provides a webhook-style interface for triggering workflows from external applications, services, or systems.

API Trigger Screenshot

How It Works

  1. When you add an API Trigger to a workflow, the platform generates a unique URL
  2. Any external system can send an HTTP request to this URL
  3. When the request is received, the workflow starts automatically
  4. The request body is passed to the workflow as input data

Configuration

SettingDescription
MethodHTTP method to accept (GET or POST)
AuthenticationOptional API key for securing the endpoint
ResponseOptional custom response to return to the caller

Using the API Trigger

Step 1: Add the Node

  1. Add an API Trigger node to your workflow
  2. The node displays a unique URL — copy this URL

Step 2: Send a Request

Send an HTTP request to the URL:

curl -X POST "https://..." \
  -H "Content-Type: application/json" \
  -d '{"temperature": 22.5, "humidity": 45}'

Step 3: Access the Data

The JSON data from the request body is available in the workflow as variables. Connect subsequent nodes to process this data.

Use Cases

  • External system integration — Trigger a workflow when an external system sends data
  • Manual triggers — Start a workflow from a script or application
  • Webhook receiver — Receive webhooks from third-party services
  • Real-time updates — Push data to the platform on demand

Security Considerations

API Key Authentication

For production use, enable API key authentication:

  1. Configure an API key in the node settings
  2. Callers must include the API key in the request header:
curl -X POST "https://..." \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"data": "value"}'

URL Protection

  • Keep the API URL confidential — anyone with the URL can trigger the workflow
  • Use authentication whenever possible
  • Monitor workflow execution logs for unexpected triggers

Limitations

  • The API endpoint has a timeout limit — long-running workflows may not return a response
  • Request body size is limited — keep payloads small
  • Only one trigger per workflow — the API Trigger must be the first node

Next Steps

Connect the API Trigger to other nodes to process the incoming data, store it in datastreams, or trigger actions.

On this page