# Hoplite API reference

The Hoplite API creates and reads projects, connected repositories, and coding-agent threads.

Production base URL: `https://api.hoplite.sh`.

Download the reviewed OpenAPI 3.1 specification at `/docs/openapi.json`; the stable `/openapi.json` alias redirects there.

## Endpoints

### System status

- [GET /health](/docs/api/getHealth) — Health check

### Repositories

- [GET /api/source-control/github/installations](/docs/api/listGitHubInstallations) — List GitHub installations

- [GET /api/source-control/github/repositories](/docs/api/listGitHubRepositories) — List repositories

- [GET /api/source-control/github/repositories/{id}/branches](/docs/api/listGitHubRepositoryBranches) — List repository branches

- [GET /api/source-control/github/repositories/{id}/inspect](/docs/api/inspectGitHubRepository) — Inspect a repository

### Projects

- [GET /api/projects](/docs/api/listProjects) — List projects

- [POST /api/projects](/docs/api/createProject) — Create a project

- [GET /api/projects/{id}](/docs/api/getProject) — Get a project

### Threads

- [GET /api/threads](/docs/api/listThreads) — List threads

- [POST /api/threads](/docs/api/createThread) — Create a thread

- [GET /api/threads/{id}](/docs/api/getThread) — Get a thread

- [GET /api/threads/{id}/messages](/docs/api/listThreadMessages) — List thread messages

- [POST /api/threads/{id}/messages](/docs/api/appendThreadMessage) — Send a thread message

- [GET /api/threads/{id}/export](/docs/api/exportThreadTranscript) — Export a thread transcript