The unhook.yaml file is the primary way to configure Unhook. It supports the following options:
Copy
interface WebhookConfig { webhookId: string; // Your unique webhook ID debug?: boolean; // Enable debug mode telemetry?: boolean; // Enable telemetry destination: Array<{ name: string; // Name of the endpoint url: string | URL | { // Local URL to deliver requests to protocol?: 'http' | 'https'; hostname: string; port?: string; pathname?: string; search?: string; }; ping?: boolean | string | URL; // Health check configuration }>; source?: Array<{ name: string; // Name of the source }>; delivery: Array<{ source?: string; // Source of the webhook (defaults to '*') destination: string; // Name of the destination to deliver to }>;}
webhookId: "wh_your_webhook_id"methods: ["POST", "PUT"] # Only allow POST and PUT requestsdestination: - name: "restricted-endpoint" url: "http://localhost:3000/api/webhooks"