Webhooks

WindBorne webhooks let you receive real-time HTTP POST notifications as forecast outputs become available. Instead of polling the API, register a webhook URL and configure the subscriptions you care about.

How It Works

  1. You register a webhook with a target URL and one or more subscriptions via POST /webhooks/v1 .
  2. When a subscription matches, WindBorne sends an HTTP POST to your URL with a JSON payload.
  3. Your server responds with a 2xx status to acknowledge receipt.
  4. Failed deliveries are retried with exponential backoff.

Subscription Types

Quick Start

Create a webhook that subscribes to completed WM6 forecast cycles:

Verifying Payloads

WindBorne generates a signing secret and returns it only when the webhook is created. Store it securely. Every delivery includes Webhook-Id , Webhook-Timestamp , and Webhook-Signature headers. Read the unmodified request body as bytes, reject stale timestamps, and verify the HMAC before processing the payload.

The timestamp check limits replay attempts to five minutes. If duplicate processing within that window matters, also retain recently processed Webhook-Id values and reject repeats.

Delivery & Retries

Return a 2xx response to acknowledge a delivery. Failed deliveries are retried.

API Reference

See the full Webhooks API reference for endpoint details.