[Backend] Add POST /api/v1/webhooks/:id/test endpoint to send a synthetic ping event
Overview
Developers registering a webhook in backend/src/routes/v1/webhook.routes.ts currently have to trigger an actual on-chain Soroban stream event just to verify their server receives and verifies the HMAC signature properly.
Problem
- No way to test webhook connectivity and HMAC signature headers immediately after registering an endpoint.
Proposed Changes
- Add
POST /api/v1/webhooks/:id/testinbackend/src/routes/v1/webhook.routes.tsandbackend/src/controllers/webhook.controller.ts. - Dispatch a signed synthetic payload (
eventType: "webhook.test",timestamp,webhookId) usingwebhook.service.tsand return the upstream HTTP status code and response latency.
Acceptance Criteria
- [ ] Endpoint verifies ownership of the webhook before dispatching.
- [ ] Includes standard
X-FlowFi-SignatureHMAC header on the test request. - [ ] Integration test added in
backend/tests/.
@CollinsKRO has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi Maintainer, I can fix this pls assign. ETA 5hrs
ℹ️ Repo Maintainers: To accept this application, review their application or assign @CollinsKRO to this issue.
@DeeMyth has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Good day maintainer I have gone through the requirement of this issue and I can definitely solve it Please assign it to me
ℹ️ Repo Maintainers: To accept this application, review their application or assign @DeeMyth to this issue.
@Yilkash has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Can i work on this?
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Yilkash to this issue.
Congratulations, @Yilkash! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @Yilkash: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been completed by @Yilkash as part of the Stellar Wave Program's 10th Wave 🥳
😎 @Yilkash: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.