Skip to Content
API ReferenceOverview

API Reference

Greenlight exposes an HTTP API on the core service (default port 8100).

Base URL

EnvironmentExample
Local Dockerhttp://localhost:8100
Productionhttps://api.example.com (PUBLIC_WEBHOOK_URL)

Auth summary

SurfaceHeaderWhen
/v1/*X-API-KeyWhen USE_AUTH=true
Health / webhooks / OpenAPINonePublic

API keys are stored in Postgres with scoped permissions. On first boot, if api_keys is empty and GREENLIGHT_API_KEY is set, core bootstraps a full-admin key.

Error shape

Most application errors return:

{ "detail": "Invalid or missing API key" }

Zod validation failures from @hono/zod-validator may return structured Zod issues with status 400.

Sections

Interactive OpenAPI document (when enabled on core): GET /openapi.json (ENABLE_DOCS=true). A static copy ships with this docs site at /openapi.json.