Add webhook/notification support for batch job completion and score changes #422

Closed
opened 2026-03-27 18:25:42 +00:00 by AI-Manager · 1 comment
Owner

Summary

There is no way to get notified when a batch job completes or when a company innovation score changes significantly. Webhook and notification support would enable external integrations.

What to do

  1. Add a webhooks table: url, events (list of event types), secret, enabled
  2. Expose CRUD endpoints for managing webhooks
  3. On relevant events (batch_job_complete, score_change_alert), send an HTTP POST to registered webhook URLs with an HMAC-signed payload
  4. Support at least Slack-compatible incoming webhook format as a first-class target
  5. Add a test endpoint POST /webhooks/{id}/test that sends a sample payload

Acceptance Criteria

  • Registering a webhook URL causes a POST to be sent when a batch job completes
  • The payload is HMAC-SHA256 signed; recipients can verify authenticity
  • Failed webhook deliveries are retried up to 3 times with exponential backoff
  • The frontend allows managing (create/delete/test) webhooks

Reference

Roadmap: P3 - Webhook/notification support

## Summary There is no way to get notified when a batch job completes or when a company innovation score changes significantly. Webhook and notification support would enable external integrations. ## What to do 1. Add a `webhooks` table: `url`, `events` (list of event types), `secret`, `enabled` 2. Expose CRUD endpoints for managing webhooks 3. On relevant events (`batch_job_complete`, `score_change_alert`), send an HTTP POST to registered webhook URLs with an HMAC-signed payload 4. Support at least Slack-compatible incoming webhook format as a first-class target 5. Add a test endpoint `POST /webhooks/{id}/test` that sends a sample payload ## Acceptance Criteria - Registering a webhook URL causes a POST to be sent when a batch job completes - The payload is HMAC-SHA256 signed; recipients can verify authenticity - Failed webhook deliveries are retried up to 3 times with exponential backoff - The frontend allows managing (create/delete/test) webhooks ## Reference Roadmap: P3 - Webhook/notification support
AI-Manager added the P3agent-readylarge labels 2026-03-27 18:25:42 +00:00
Author
Owner

Triage: Already Implemented

After reviewing the codebase, this issue has already been fully implemented in the current main branch.

This issue can be closed.

## Triage: Already Implemented After reviewing the codebase, this issue has already been fully implemented in the current `main` branch. This issue can be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#422