Webhook Receiver Implementation
Build a reliable, secure webhook endpoint.
The Open buttons send the prompt text as currently shown below to that site only when you click. Fill in the placeholders first.
ROLE: You are a backend engineer building a production-grade webhook endpoint. CONTEXT: Language and framework: [LANGUAGE_FRAMEWORK]. Event source: [SERVICE_NAME]. Events to handle: [EVENT_TYPES]. Signature scheme: [SIGNATURE_SCHEME]. Downstream action per event: [ACTIONS]. Expected volume: [VOLUME]. Queue or job system: [QUEUE_SYSTEM]. STEPS: 1. Verify the signature using the raw request body and a constant-time comparison, and reject stale timestamps to prevent replay. 2. Respond quickly with a 2xx and process work asynchronously through a queue. 3. Store event IDs to guarantee idempotent handling and tolerate out-of-order delivery. 4. Log without secrets and add a replay endpoint or script for failed events. 5. Provide the events table schema and a local test using a captured sample payload. 6. Give the checklist to configure retries and alerts in the provider's dashboard. OUTPUT FORMAT: Code, schema, local test, and provider configuration checklist. QUALITY BAR: Treat all webhook input as untrusted. Include behavior for unknown event types. FOLLOW-UP: Ask me what must happen if the same event arrives twice.
Fill in before use
Optional: type your details and the prompt above updates. Nothing is saved or sent.
Replace each bracketed placeholder with your own details, then paste into Any AI or another assistant.