Skip to main content
The GoBetter backend is an Express service structured around modular resource routers mounted at predictable paths.

Base URL

All authenticated browser requests must specify credentials: 'include' to allow the browser to exchange the HTTP-only session cookie.

Service Endpoints

Authentication

Signup, email OTP verification, password resets, active device sessions, and multi-session revocation.

Users & Profiles

Profile management, email notification settings, and permanent account deletion.

Pull Requests

Synchronized pull request queries, title search, review status filtering, and chat summaries.

Reviews

Detailed review findings, confidence scores, overview dashboard metrics, and re-review triggers.

BYOK & Keys

Encrypted third-party API keys (OpenAI, Anthropic, OpenRouter), custom gateways, and model probing.

AI & Chat

Chunked NDJSON streaming chat, repository tool calls (getDiff), thread history, and user feedback.

Workspace Settings

Default review models per mode (Quick, Focused, Deep Dive) and custom prompt configurations.

Usage & Quotas

Token expenditure accounting and monitoring against platform free allowances.

GitHub Webhook

Webhook ingestion for pull request events, database synchronization, and queue dispatching.

Route Summary