Skip to content
RehearsalDocs

Reference

Every command, tool, error and limit, generated from the code of the version these pages describe.

The reference pages are written by a script that reads the product's code. A page cannot describe a command, a tool or a limit that the code does not have. The check that keeps them equal runs on every change.

The same task in four places

Rehearsal has one API. The console, the CLI, the Python client and the MCP tools all call it, so they can all do the same work. The words differ a little.

TaskConsoleCLIPythonMCP tool
Add an applicationApplicationsrehearsal apps addrh.applications.createadd_application
Build a worldBuild worldrehearsal buildrh.worlds.buildbuild_world
Follow a buildBuild viewrehearsal jobs watchrh.jobs.eventsjob_status
List worldsApplicationsrehearsal worlds listrh.worlds.listlist_worlds
See the jobs of a worldWorld pagerehearsal worlds scenariosrh.worlds.scenarioslist_scenarios
Create an agentAgentsrehearsal profiles createrh.profiles.createcreate_agent
Run an evaluationRunsrehearsal evalrh.evaluations.createrun_evaluation
Read a runRun pagerehearsal runs showrh.runs.getrun_results
Read an episodeEpisode rowrehearsal runs episoderh.runs.episodeepisode_details
Improve an agentImprove on a runrehearsal improverh.post("/v1/improvements", ...)improve_agent
CompareComparerehearsal comparerh.evaluations.comparecompare_runs

In Python, rh is Rehearsal() from rehearsal.sdk.

The API itself

REST API lists every operation. The server also describes its own API: on a server that you can reach, /api/docs is a page where you can try each operation, and /openapi.json is the OpenAPI document.

Ids

Every id starts with a prefix that says what it names.

PrefixNames
prj_A project
app_An application
wld_A world
wv_A world version
scn_A job in a world (a scenario)
prof_An agent profile
run_A run
ep_An episode
job_A server job: a build, a part of a run, an improvement, a re-check
art_An exported file
key_An API key's record. The key itself starts with rh_
Checked against rehearsal-kit 0.1.2 on 11 October 2026.

Was this page helpful?

Edit this page

On this page

Was this page helpful?

Edit this page