Skip to content

Public API

Start runs and read guides, reviews and events from your own scripts.

The REST API lets a script find a pull request, generate a guide, and read the guide and its review. A request acts as you, narrowed by its token's scopes, so it never reaches a repository you can't open. How Theseus works explains guides and changes.

API nameWhat it is
changesetThe pull request or branch a guide describes
runOne attempt to generate a guide
guideWhat a successful run produces
claimOne change in a guide; the API's name for a change
https://app.theseus.dev/api/v1

Send every request over HTTPS with an Authorization: Bearer header.

Each person gets 300 requests a minute, shared between the API and MCP. Past that, requests fail with 429 rate_limited and a Retry-After header giving the seconds to wait.

Most list operations take limit (1 to 100, default 50) and return data, next_cursor and has_more. Pass next_cursor back as cursor with the same filters; with different filters it fails with invalid_request. Search has its own limits. Session notes use this pagination for one repository and branch, oldest first.

Failures are RFC 9457 problem details (application/problem+json). Branch on code, not title; treat a code you don't know by its HTTP status. Quote request_id when you report a problem.

codeStatusMeans
invalid_request400errors lists each bad field
unauthenticated401Missing, expired or revoked token
not_in_plan402The plan doesn't cover it; detail says why
insufficient_scope403The token lacks required_scope, or the operation needs a sign-in
admission_required403Theseus hasn't admitted you yet, or no longer does
not_found404Missing, or you can't access it
ambiguous409Pick one of candidates, or specify a workspace for notes
conflict409Clashes with the resource's current state
rate_limited429Wait for Retry-After
internal_error500Retrying won't help; report it
unavailable503Retry the same request

Find a pull request or branch already known to Theseus.

Generate a guide, read it, and inspect its claims.

Read a recorded review decision action.

Send notes from an agent and read the notes you sent for a repository and branch.

Configure event delivery and inspect delivery attempts.

Read recorded events and recover missed work.

Identify your account and manage personal tokens.