Skip to main content
The LaneSync REST API powers the dashboard, CI evidence upload, and deploy gates. Hosted SaaS base URL:
Self-hosted customers use their own API URL. Set SDLC_API_URL in CI workflows accordingly.

Authentication

Session-protected routes

Require authenticated GitHub OAuth session:
  • /api/dashboard
  • /api/repos
  • /api/milestones (most routes)
  • /api/sync
  • /api/quality
  • /api/projects
  • /api/team
  • /api/settings/api-keys
  • /api/config/repo-warnings
  • /api/events
  • /api/debug

CI-authenticated routes

Require Authorization: Bearer with GitHub OIDC JWT or LaneSync API key:
  • POST /api/evidence/upload
  • POST /api/evidence/upload-report
  • GET /api/milestones/check
Tenant is derived from the verified token (repository_owner for OIDC) or API key scope — not from an unauthenticated body field.

Public routes (no auth)

  • GET /api/health
  • GET /api/auth/*
  • GET /api/config/status, /manifest-start, install callbacks
  • POST /api/webhook (HMAC verified)
  • POST /api/config/setup (first-run only)

Content type

JSON endpoints return Content-Type: application/json unless noted. Multipart used for /api/evidence/upload-report.

Error format

Errors return a JSON body with an error field:
Internal details are logged server-side; production responses use generic messages for 500 errors.

HTTP status codes

Key endpoints by area

Deploy gate (CI)

CI pipelines check production readiness with CI auth:

Evidence upload (CI)

See CI evidence upload.

OpenAPI specification

The API Reference tab auto-generates interactive endpoint documentation from openapi.json. Use it for request/response schemas and try requests against your instance.