Public API

Authenticate with a workspace API key, created under Organization Settings → API Keys:

Authorization: Bearer or_...

Each key has a scope:

The key owner's role still applies.

Use left and right arrow keys to scroll columns. Home shows the first column; End shows the last.

EndpointScopePurpose
POST /api/queryreadAsk a question; returns an answer with exact-quote sources (JSON, or Server-Sent Events with stream: true)
GET /api/query/{messageId}readFetch a query result later
POST /api/searchreadHybrid full-text and semantic search with ranked snippets
GET /api/workspacereadThe key's workspace, your other workspaces, and onboarding links
GET /api/repositoriesreadRepositories visible to the key
POST /api/repositorieswriteEnable and index an installed repository
GET /api/repositories/{id}readIndex status
GET /api/reviews, GET /api/reviews/{id}readReviews and their findings
POST /api/reviewswriteRequest a review of a revision (headSha defaults to the pull request's current head)
POST /api/reviews/local, GET /api/reviews/local/{id}write, readReview local commits from their diff and changed files (the CLI's signed-in review); only the requester can read the result
GET /api/reviews/status?repositoryId=&prNumber=readLatest review of a pull request and its open findings
GET /api/findings/unresolvedreadOpen findings on the key owner's open pull requests
POST /api/rules/suggestionswriteSuggest a custom rule for an admin to approve
GET /api/analytics?since=&until=readAnalytics report as JSON (team, repository, author filters)
POST /api/findings/{id}/feedbackwriteRecord feedback on a finding
GET /api/contextreadGraph, knowledge, rules and source for coding agents
POST /api/rules/importadminImport candidate rules as suggestions that need approval

The full contract is in the OpenAPI document.

curl -s https://review.example.com/api/query \
  -H "authorization: Bearer $OPENREVIEW_API_KEY" -H "content-type: application/json" \
  -d '{"question":"Where is the checkout total computed?","repositoryIds":["<id>"]}'