Webhook-line SVG Icon

Webhook

Send HTTP POST payloads to any URL when Lescopr events occur.

Overview

The Webhook connector pushes Lescopr events to any HTTP endpoint as signed JSON payloads — perfect for custom integrations, automation tools, or internal services.

Key features:

  • Configurable HTTP method (POST / PUT)
  • HMAC-SHA256 payload signature for verification
  • Configurable event filters and automatic retry

Setup

Go to Settings → Connectors → Webhook in the Lescopr dashboard. Enter your target URL, choose an HTTP method, and set an optional shared secret used to sign payloads.

Each request includes a X-Lescopr-Signature header with the HMAC-SHA256 signature of the raw body.

Lescopr Dashboard → Settings → Connectors → Webhook
bash
Target URL:    https://your-service.com/lescopr-webhook
HTTP method:   POST
Secret:        your-shared-secret  # used for HMAC-SHA256 signature
Retry count:   3
Signature verification (Node.js example)
typescript
import { createHmac } from 'crypto';

function verifySignature(secret: string, body: string, signature: string): boolean {
  const hmac = createHmac('sha256', secret);
  hmac.update(body);
  const expected = 'sha256=' + hmac.digest('hex');
  return expected === signature;
}

Payload & events

Lescopr sends a JSON payload for the following events:

  • incident.created
  • incident.resolved
  • incident.severity_changed
  • bug.created
  • anomaly.detected

All payloads include event, timestamp, project_id, and full object data.