Skip to main content
POST
Configure Webhook Delivery
Configure webhooks to receive real-time HTTP POST notifications when your squid’s events occur. Subscribe to specific events like run start, completion, pause, or errors.

Event Types

Webhook Payload

Lobstr sends a JSON payload to your webhook URL:

Payload Fields

Retry Mechanism

When retry is enabled:
  • Failed webhook deliveries are retried up to 3 times
  • Retries occur with a 15-minute delay between attempts

Webhook Response Requirements

  • Your endpoint should respond within 30 seconds
  • Return HTTP 200, 201, or 202 to indicate successful receipt

Headers

string
required
Your API authentication token. Value: Token YOUR_API_KEY
string
required
Must be application/json. Value: application/json

Query Parameters

string
required
The unique identifier (hash) of the squid for which to configure webhook delivery. Example: c106a44a98044ef18acc59986ae10967

Request Body

string
required
Your webhook endpoint URL that will receive POST requests. Example: "https://your-webhook.com/endpoint"
boolean
required
Master switch to enable/disable webhooks. Example: true
boolean
required
Enable automatic retries for failed webhook deliveries (up to 3 attempts with 15-minute delays). Example: false
boolean
required
Subscribe to run start/resume events. Example: true
boolean
required
Subscribe to run pause events. Example: false
boolean
required
Subscribe to run completion events. Example: false
boolean
required
Subscribe to run error events. Example: true

Response Field Explanations

string
Configured webhook endpoint URL. Example: "https://your-webhook.com/endpoint"
boolean
Whether webhooks are active. Example: true
boolean
Whether retry mechanism is enabled. Example: false
boolean
Subscription status for run.running events. Example: true
boolean
Subscription status for run.paused events. Example: false
boolean
Subscription status for run.done events. Example: false
boolean
Subscription status for run.error events. Example: true
Subscribe only to events you need. For most use cases, run.done and run.error are sufficient.
Your webhook endpoint must respond within 30 seconds or the delivery will be marked as failed.
Enable retry for production webhooks to handle temporary network issues or server downtime automatically.
Webhook payloads are sent as JSON with Content-Type: application/json header. Parse the request body to extract event data.
Use the Test Webhook endpoint to verify your endpoint is accessible and responding correctly before activating webhooks.
Implement proper authentication/validation in your webhook endpoint to ensure requests are coming from lobstr.io.

Code Examples

Response

201