Read reviews, inspect findings, and request new reviews through the Proofline API. Use the TypeScript or Python SDK, or call the API directly with HTTP.
Quickstart#
The examples below list the latest reviews in your organization. To run them, set PROOFLINE_TOKEN to a token with the reviews:read scope and PROOFLINE_ORGANIZATION_ID to your organization's ID. You can fill in those values by choosing an organization and using Generate a token.
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const page = await client.listReviews({
path: { org_id: process.env.PROOFLINE_ORGANIZATION_ID! },
query: { limit: 5 },
});
for (const review of page.items) {
console.log(review.id, review.status);
}import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
page = client.list_reviews(UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]), limit=5)
for review in page.items:
print(review.id, review.status)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/reviews?limit=5" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"What you can do#
- List reviews and read one review, its assessments and its findings.
- Read the review guidance Proofline applies to a repository.
- Request a review of a pull request or of local changes, or rerun a review.
- Upload the coverage reports your CI produced for a commit, as Coverage uploads describes.
- Export reviews, findings, outcomes, validations and spend page by page, as Analytics exports describes.
- See every tool a coding agent can call over MCP in MCP tools.
- Look up every key a repository's
.proofline.yamlaccepts in Configuration file. - Read a repository's wiki, ask about its code and start an approved plan's implementation, as described in Wiki, questions and plans.
- Scan a whole repository at one commit within a credit budget, with the repository scan command or its API request.
- Fix a pull request's findings from a terminal and ask Proofline to re-verify them at the pushed commit, as Fix findings from a terminal describes.
- Hand an environment finding to a connected Cursor or Devin account, as Cloud coding-agent sessions describes.
Every request uses a scoped token for one organization. Authentication explains how to create one. The API reference lists every operation and the scope it needs.
You can also work from a terminal. The command-line client covers installing the proofline CLI and requesting and reading reviews with it, and the CI review check reports a pull request's review from a CI job.
Read these docs as Markdown#
Every page is also Markdown. Add .md to its address, such as /docs/sdks.md, or send Accept: text/markdown. /docs/llms.txt lists every page for agents, and /docs/openapi.json is the OpenAPI document the SDKs are generated from.
Eligible new organizations get one calendar month of free pull-request code reviews. To start from a terminal, follow the CLI setup for coding agents.