API Endpoints
GitHub Webhook Endpoint
Section titled “GitHub Webhook Endpoint”POST /api/webhooks/github
Receives events from GitHub Apps. This is the primary trigger for repository indexing and PR reviews.
PublicSupported Events
Section titled “Supported Events”pull_request.opened/pull_request.synchronize: Triggers a PR review.installation.created: Triggers initial repository discovery.
Inngest Service
Section titled “Inngest Service”GET/POST /api/inngest
The endpoint used by the Inngest Cloud/Dev Server to communicate with the application.
Used for function discovery and health checks.
Used to invoke functions and report step completions.
Example Usage
Section titled “Example Usage”curl -X GET https://api.my-app.com/api/auth/session \ -H "Authorization: Bearer <token>"const response = await fetch('/api/auth/session', { headers: { 'Authorization': `Bearer ${token}` }});const data = await response.json();