{"name":"api-cosmicmonkey","version":"1.0.0","status":"ok","environment":"production","endpoints":[{"method":"GET","path":"/health","description":"Overall system status for the public status page"},{"method":"POST","path":"/waitlist","description":"Add an email + name to the marketing waitlist"},{"method":"GET","path":"/check","description":"Trigger an on-demand health check of all services"},{"method":"POST","path":"/collect","description":"Ingest a batch of events from the cosmic.js tracking script"},{"method":"GET","path":"/verify-install?projectId=","description":"Check whether the tracking script has sent events for a project in the last 5 minutes"},{"method":"POST","path":"/projects","description":"Create a project (site) to install the tracking script on"},{"method":"GET","path":"/projects","description":"List the signed-in user's own projects"},{"method":"DELETE","path":"/projects?projectId=","description":"Soft-delete a project you own"},{"method":"POST","path":"/privacy/delete-account","description":"Permanently delete your account, every project you own, and all of its data"},{"method":"GET","path":"/stats?projectId=","description":"Visitors, bounce rate, avg session time, online now"},{"method":"GET","path":"/timeseries?projectId=","description":"Visitor counts over time for the Visitors chart"},{"method":"GET","path":"/breakdown/referrers?projectId=","description":"Top referrer domains"},{"method":"GET","path":"/breakdown/pages?projectId=","description":"Top pages by views"},{"method":"GET","path":"/breakdown/geo?projectId=","description":"Country and city breakdown"},{"method":"GET","path":"/breakdown/tech?projectId=","description":"Browser, OS, and device breakdown"},{"method":"GET","path":"/analytics/top-pages?projectId=","description":"Top 10 pages by views, with visitors + bounce counts"},{"method":"GET","path":"/analytics/top-sources?projectId=","description":"Top 10 traffic sources (Direct + referrers) by views"},{"method":"GET","path":"/analytics/page-sources?projectId=&pageUrl=","description":"Drill-down: which sources sent visitors who landed on a specific page"},{"method":"GET","path":"/locations?projectId=","description":"Location list for the Users page"},{"method":"GET","path":"/events/recent?projectId=","description":"Recent events for the Realtime page"},{"method":"GET","path":"/visitors?projectId=","description":"Recent visitor list for the Journey/User tabs"},{"method":"GET","path":"/ai-traffic?projectId=","description":"AI crawler + AI-referred traffic, grouped by AI product"},{"method":"GET","path":"/ai-stats?projectId=","description":"Summary stats for the AI Crawlers page"},{"method":"POST","path":"/register","description":"Create an account with email + password"},{"method":"POST","path":"/login","description":"Sign in with email + password"},{"method":"POST","path":"/logout","description":"Revoke the current session"},{"method":"GET","path":"/me","description":"The current session's user, or 401"},{"method":"PUT","path":"/me","description":"Update your own name and/or avatar seed"},{"method":"GET","path":"/auth/google","description":"Redirects to Google's OAuth consent screen"},{"method":"GET","path":"/auth/google/callback","description":"Google OAuth redirect target"}]}