Skip to content

feat: add GET /api/v1/programs/:id/webhook-events audit endpoint (Closes #18) - #64

Open
ZacLou wants to merge 1 commit into
StellarRoute:mainfrom
ZacLou:feat/issue-18-webhook-events-audit
Open

feat: add GET /api/v1/programs/:id/webhook-events audit endpoint (Closes #18)#64
ZacLou wants to merge 1 commit into
StellarRoute:mainfrom
ZacLou:feat/issue-18-webhook-events-audit

Conversation

@ZacLou

@ZacLou ZacLou commented Aug 27, 2026

Copy link
Copy Markdown

Closes #18

Changes

Adds GET /api/v1/programs/:id/webhook-events audit endpoint with cursor pagination:

  • Endpoint: GET /api/v1/programs/{id}/webhook-events?limit=20&cursor=<timestamp>
  • Response: { "items": [...], "next_cursor": "<ts>", "has_more": bool }
  • Filtering: Matches webhook events to program via github_repo join
  • 404: Returns "program not found" when program ID doesn't exist
  • Fields: id, delivery_id, event_type, github_repo, pr_number, status, error_message, received_at

Files changed

  • crates/api/src/routes/mod.rs — Added route, handler (list_webhook_events), WebhookEventRow, and WebhookEventRecord types

Use case

Audit trail for debugging webhook processing — see which deliveries were processed, ignored, or failed for a given program.

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.

[api] Add GET /api/v1/programs/:id/webhook-events audit endpoint

1 participant