{"status":"running","message":"Lead Automation Pipeline (Microsoft Graph)","endpoints":{"meta":[{"method":"GET","path":"/","description":"This health check / endpoint list"}],"webhook":[{"method":"POST","path":"/api/webhook/graph","description":"Microsoft Graph webhook (auto-triggered on new mail)"},{"method":"POST","path":"/api/webhook/email","description":"Manual email submission for testing without Graph"}],"subscription":[{"method":"POST","path":"/api/subscription/create","description":"Create a new mail subscription"},{"method":"POST","path":"/api/subscription/renew","description":"Renew a subscription (body: { subscriptionId })"},{"method":"GET","path":"/api/subscription/list","description":"List active subscriptions"}],"leads":[{"method":"GET","path":"/api/leads","description":"List all leads"},{"method":"GET","path":"/api/leads/pending","description":"List pending leads"},{"method":"GET","path":"/api/leads/:id","description":"Get a single lead (JSON)"},{"method":"GET","path":"/api/leads/:id/approve","description":"Render the approve confirmation page (read-only)"},{"method":"POST","path":"/api/leads/:id/approve","description":"Confirm approval — sends email + updates sheet"},{"method":"GET","path":"/api/leads/:id/reject","description":"Render the reject confirmation page (read-only)"},{"method":"POST","path":"/api/leads/:id/reject","description":"Confirm rejection — updates sheet status"}]}}