Cloud Feature — Incoming webhooks are available on superglue Cloud. Try it
now.
How it works
When you enable webhooks for a tool, superglue provides a unique webhook URL:Using development mode
To execute webhooks against development/sandbox system credentials, add themode parameter:
Setting up a webhook
1
Get your webhook URL
Your webhook URL follows this pattern:Replace
{toolId} with your tool’s ID and {your_api_key} with a valid API key. You can create API keys at https://app.superglue.cloud/api-keys.2
Configure the external service
Add the webhook URL to your external service (Stripe, GitHub, etc.). Most services have a webhooks section in their dashboard.
3
Design your tool for webhook payloads
Your tool receives the raw webhook payload as input. Design your steps to extract the data you need:Use template expressions to access nested fields:
<<(sourceData) => sourceData.data.object.email>>Webhook behavior
- Asynchronous execution: Returns
202 Acceptedimmediately, executes the tool in the background - Run tracking: Each webhook trigger creates a run record you can view in the dashboard
- Request source: Runs triggered via webhook are labeled with source
WEBHOOKin the runs table
Example: Stripe webhook integration
Build a tool that handles Stripe events and syncs customer data to your CRM:https://api.superglue.ai/v1/hooks/handle-stripe-customer?token={your_api_key}
Example: GitHub webhook integration
Trigger a deployment tool when code is pushed to your repository:Security considerations
- Use HTTPS: Always use HTTPS webhook URLs
- Restricted API keys: Use API keys that only have permission to execute specific tools
- Validate signatures: If the source service provides webhook signatures (e.g., Stripe’s
stripe-signatureheader), validate them in your tool logic - Monitor activity: Regularly review the runs dashboard for unexpected webhook activity
- Rotate keys: Periodically rotate API keys used for webhooks
Filtering webhook events
Many services send multiple event types to the same webhook URL. Filter events in your tool using conditional logic:Tool chaining
You can chain tools together so that one tool automatically triggers another when it completes. This is useful for building multi-step workflows where the output of one tool becomes the input of the next.How it works
When running a tool via the API, use the specialtool:{toolId} format for the webhookUrl option instead of an HTTP URL:
fetch-orders completes:
- Its output data becomes the input payload for
process-orders process-ordersis triggered automatically- The chained run has
requestSource: "tool-chain"
Viewing chained runs
You can filter runs by request source to see tool chain executions:Example: ETL pipeline
Build a data pipeline where each stage triggers the next:- extract-data → fetches raw data from source API
- transform-data → cleans and reshapes the data
- load-data → inserts into destination database
transform-data to chain to load-data in its tool configuration or pass it at runtime.