PolyLever

Documentation

API Overview

PolyLever exposes a REST API consumed by the web dashboard. All authenticated routes require a Bearer token from login or OAuth.

Authentication

Pass the access token in the Authorization header: Authorization: Bearer <token>

MethodPathAuthPurpose
POST/api/v1/auth/registerNoneCreate an account with email and password
POST/api/v1/auth/loginNoneSign in and receive an access token
GET/api/v1/auth/googleNoneStart Google OAuth sign-in
GET/api/v1/auth/githubNoneStart GitHub OAuth sign-in
POST/api/v1/auth/verify-emailNoneVerify email with token from link
POST/api/v1/auth/resend-verificationNoneResend verification email

GitHub integration

MethodPathAuthPurpose
GET/github/install-urlBearerGet GitHub App install URL
GET/github/statusBearerList installations and connected projects
POST/github/syncBearerRe-sync repositories from GitHub
POST/github/link-installationBearerManually link an installation ID
GET/github/callbackBearer or stateComplete GitHub App install callback
POST/github/webhookGitHub signatureReceive GitHub webhook events

Reviews

MethodPathAuthPurpose
GET/reviewsBearerList all reviews for the signed-in user
GET/reviews/{review_id}BearerGet review detail with diff and AI text
GET/projects/{project_id}/reviewsBearerList reviews for a specific project

Review detail responses include diff_content, review_text, status, branch, commit SHAs, and LLM provider metadata.

Health check

MethodPathAuthPurpose
GET/healthNoneBackend health check