Overview
A webhook exposes your workflow as an API endpoint:Setting Up Webhooks
1. Add a Webhook Node
- Drag a Webhook node onto your canvas
- Position it as the entry point of your workflow
- A unique webhook key is automatically generated
2. Configure Inputs
The Webhook node can receive input parameters: Map webhook inputs to downstream node parameters.3. Connect to Export
Ensure your workflow ends with an Export node: The Export node’s output URLs are returned in the API response.API Authentication
All webhook API calls require authentication:Getting an API Key
- Go to Workspace Settings
- Navigate to API Keys
- Click Create API Key
- Copy and store securely (shown only once)
API Endpoints
Trigger Workflow
Start a workflow run:Get Run Status
Check execution progress:List Runs
Get recent workflow runs:Cancel Run
Stop a running workflow:Polling Pattern
Since workflows execute asynchronously, poll for completion:Rate Limits
Rate limit headers are included in responses:
Error Handling
HTTP Status Codes
Error Response Format
Integration Examples
Node.js / JavaScript
Zapier / Make / n8n
- Use HTTP/Webhook module
- Configure POST request to trigger endpoint
- Add polling loop to check status
- Use output URLs in downstream steps
Serverless Functions
Best Practices
Debugging
Check Webhook Status
Verify your webhook is active in the Cordage UI:- Open your canvas
- Click the Webhook node
- Check “Active” status in inspector
View Run History
See all runs for a webhook:- Click the Webhook node
- Open “Run History” in inspector
- Click individual runs for details
