Mock SM Reporting API live

A self-contained Cloudflare Worker that mimics the standardized SM project Reporting API contract consumed by DataPuller::AppApiService.

Authentication

All /api/v1/reporting/* endpoints require:

Authorization: Bearer <API_KEY>

The default key is test-bearer-token-123 unless an API_KEY environment variable is set on this Worker.

Endpoints

Try it

curl -H "Authorization: Bearer test-bearer-token-123" \
  "https://reporting-app-sample-api.pages.dev/api/v1/reporting/manifest"

curl -H "Authorization: Bearer test-bearer-token-123" \
  "https://reporting-app-sample-api.pages.dev/api/v1/reporting/summary?start_date=2026-04-06&end_date=2026-04-12"

curl -H "Authorization: Bearer test-bearer-token-123" \
  "https://reporting-app-sample-api.pages.dev/api/v1/reporting/breakdowns?metric=entries&dimension=geographic&start_date=2026-04-06&end_date=2026-04-12"

Forcing failures (for orchestrator branch coverage)

Append one of these query params to any reporting endpoint:

Notes