Skip to content

feat: add webhook support with retry logic and delivery tracking#457

Merged
LaGodxy merged 2 commits intoMettaChain:mainfrom
dev-RAM11:feat/webhook-support
May 4, 2026
Merged

feat: add webhook support with retry logic and delivery tracking#457
LaGodxy merged 2 commits intoMettaChain:mainfrom
dev-RAM11:feat/webhook-support

Conversation

@dev-RAM11
Copy link
Copy Markdown
Contributor

Closes #423

What this PR does

  • Added Webhook and WebhookDelivery Prisma models
  • Implemented webhook registration (create, read, update, delete) per user
  • Added event-based delivery system via trigger() method
  • Implemented automatic retry logic with exponential backoff (1min, 5min, 15min)
  • Added delivery status tracking with response codes and error messages
  • HMAC-SHA256 request signing via X-PropChain-Signature header
  • Cron job runs every minute to retry failed deliveries
  • 9 tests covering all service methods

Endpoints

  • POST /webhooks — register a webhook
  • GET /webhooks — list your webhooks
  • GET /webhooks/:id — get a webhook
  • PATCH /webhooks/:id — update a webhook
  • DELETE /webhooks/:id — delete a webhook
  • GET /webhooks/:id/deliveries — view delivery history

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 23, 2026

@dev-RAM11 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@LaGodxy
Copy link
Copy Markdown
Contributor

LaGodxy commented Apr 24, 2026

@dev-RAM11 resolve conflicts.

@LaGodxy LaGodxy merged commit 26c42b1 into MettaChain:main May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Webhook Support

2 participants