Skip to content

feat(backend): add GET /api/webhooks endpoint listing all registered low-balance webhook URLs #444

Description

@Dev-AdeTutu

Summary

Once a provider registers a webhook via POST /api/webhooks/low-balance there is no way to see which URLs are registered. Add a read endpoint so admins can audit and debug webhook configuration.

Acceptance Criteria

  • GET /api/webhooks returns { webhooks: [{ url, registered_at }] }
  • Protected by requireAdminKey middleware
  • Returns an empty array when no webhooks are registered

Files to touch

  • backend/src/routes/webhooks.ts
  • backend/src/lib/webhookRegistry.ts — add a listWebhooks() export

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions