Public API

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

Authorization: Bearer or_...

Each key has a scope:

The key owner's role still applies.

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/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
POST /api/findings/{id}/feedbackwriteRecord feedback on a finding
GET /api/contextreadGraph, knowledge, rules and source for coding agents

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>"]}'