Base URLs
LatentGEO provides two API base URL patterns:- Legacy:
http://localhost:8000/api - Versioned:
http://localhost:8000/api/v1(recommended)
OpenAPI Documentation
Interactive API documentation is available at:Public vs Protected Endpoints
Public Endpoints
The following endpoints do not require authentication:GET /health- Overall system health statusGET /health/ready- Readiness probeGET /health/live- Liveness probePOST /api/github/webhook- GitHub webhook receiver (signature-validated)POST /api/v1/github/webhook- GitHub webhook receiver (signature-validated)POST /api/webhooks/github/incoming- GitHub incoming webhook (signature-validated if configured)POST /api/v1/webhooks/github/incoming- GitHub incoming webhook (signature-validated if configured)POST /api/webhooks/hubspot/incoming- HubSpot webhook receiverPOST /api/v1/webhooks/hubspot/incoming- HubSpot webhook receiverGET /api/webhooks/health- Webhook health checkGET /api/v1/webhooks/health- Webhook health check
Protected Endpoints
All other API endpoints require JWT bearer authentication. See the Authentication page for details.API Endpoint Categories
HubSpot Integration
- OAuth authentication and connection management
- Content synchronization
- Page retrieval and analysis
- Recommendation generation and application
- Change rollback
/api/v1/hubspot/*
GitHub Integration
- OAuth authentication and connection management
- Repository listing and synchronization
- Blog content auditing (SEO and GEO)
- Automated fix PR creation
- Pull request management
- Fix input management with chat interface
/api/v1/github/*
Other Categories
- Audits - SEO and GEO audit execution and management
- Reports - Audit report generation and retrieval
- Analytics - Usage and performance analytics
- Search - Search console integration
- PageSpeed - Performance metrics
- Backlinks - Backlink analysis
- Keywords - Keyword tracking and analysis
- Rank Tracking - Search ranking monitoring
- LLM Visibility - Generative engine optimization metrics
- AI Content - AI-powered content generation
- Content Editor - Content editing and optimization
- Content Analysis - Content quality analysis
- GEO - Generative engine optimization
- Webhooks - Webhook management
- SSE - Server-sent events for real-time updates
Quick Start Example
Here’s a simple example to get started with the GitHub OAuth flow:url should be used to redirect the user for OAuth authorization, and the state token must be included in the callback request for security validation.
Health Check
The health endpoint returns service status information:200- System is healthy or degraded but operational503- System is unhealthy
healthy, degraded, unhealthy
Rate Limiting
Rate limiting is enabled in production environments to prevent abuse. Requests exceeding the rate limit will receive a429 Too Many Requests response.
CORS Policy
The API supports CORS for web applications. In development mode, the following origins are automatically allowed:http://localhost:3000http://localhost:8000http://127.0.0.1:3000http://frontend:3000(Docker)
CORS_ORIGINS environment variable.
Next Steps
- Learn about Authentication requirements
- Review Error Handling conventions
- Explore the OpenAPI documentation for detailed endpoint specifications