ModernCI
Sign in

Docs · Agents and API

REST API reference

Generated from the operation table in the ModernCI source (crates/mci-api/src/ops.rs, commit 32cae87556), so the REST API, MCP tools and CLI stay in step. ModernCI is pre-launch: names and fields may change.

The API is served by the region that holds your project. Send a bearer token created by a tenant admin. A machine-readable description is at /openapi.json.

Method and pathOperationWhat it doesAuthStatus
GET /healthhealth.getIs this install upnoneavailable
GET /v1/health/detailhealth.detailHealth with the engine lease holder, server version and standing alarmstokenavailable
GET /v1/auth/methodsauth.methodsWhich sign-in methods this install offersnoneavailable
POST /v1/probe/cannedprobe.cannedRun the canned PR request end to end for the outside probertokenavailable
POST /v1/tokenstokens.createCreate a person or agent with a token (shown once)tokenavailable
POST /v1/support-accesssupport.grantLet the platform operator support this tenant for a limited timetokenavailable
DELETE /v1/support-access/{tenant}support.revokeEnd operator support access to this tenanttokenavailable
GET /v1/auditaudit.listRead a tenant's audit logtokenavailable
PUT /v1/delegated-approvaldelegated.setTurn delegated-approval mode on or off for the named tenanttokenavailable
GET /v1/repos/{repo}/prsprs.listList PRs with their status and wait reasontokenavailable
GET /v1/prs/{pr}prs.getShow one PR: diff, checks, logs, approvals, cost, wait reasontokenavailable
POST /v1/prsprs.doneSubmit a pushed branch as a PR and leavetokenavailable
POST /v1/prs/{pr}/claimprs.claimClaim an unclaimed PRtokenavailable
GET /v1/workwork.mineMy open work: reds, conflicts, approvalstokenavailable
POST /v1/work/{item}/claimwork.claimClaim a work itemtokenavailable
POST /v1/work/{item}/reportwork.reportReport progress and agent spendtokenavailable
POST /v1/work/{item}/askwork.askAsk a person a question about a work itemtokenavailable
POST /v1/work/{item}/releasework.releaseLet go of a claimed work itemtokenavailable
POST /v1/prs/{pr}/dequeueprs.dequeueTake my PR out of the merge queuetokenavailable
GET /v1/prs/{pr}/queue-exitsprs.queue_exitsWhy a PR left the merge queuetokenavailable
GET /v1/prs/{pr}/activityprs.activityActivity log of a PR: pushes, checks, approvals, queue exitstokenavailable
POST /v1/requests/pauserequests.pauseAsk a person to pause or resume runs in a projecttokenavailable
POST /v1/config/checkconfig.checkCheck .ci files: schema errors with file and linetokenavailable
POST /v1/config/simulateconfig.simulateWhat a .ci change would run, and whether it changes the gatetokenavailable
GET /v1/projects/{project}/savingssavings.getSpend, waste and agent spend for a projecttokenavailable
GET /v1/agents/bundleagents.bundleThe agent skill bundle for a client, generated from this tablenoneavailable
GET /v1/agents/errorsagents.errorsThe closed agent error cataloguenoneavailable
GET /v1/eventsevents.watchStream my events with replay from a sequence numbertokenavailable
GET /v1/runs/{run}/logruns.logRead a run's logtokenavailable
POST /v1/prs/{pr}/checks/{check}/rerunchecks.rerunRe-run a check with a stated reasontokencoming (not implemented yet)
POST /v1/prs/{pr}/approvalsapprovals.createApprove or reject a guarded change with a passkeytoken + passkeyavailable
GET /v1/signer/keyssigner.keys.pendingSigner keys waiting for owner approval: each key's purpose, kind, rotation and new public keytokenavailable
POST /v1/signer/keys/challengesigner.keys.challengeGet a passkey challenge bound to the exact signer key requesttokenavailable
POST /v1/signer/keys/approvesigner.keys.approveApprove the signer key request with a passkey; the signer verifies it itselftokenavailable
GET /v1/passkeyspasskeys.listMy passkeys in this region and whether each is confirmed; for a tenant admin, members' passkeys waiting for confirmationtokenavailable
POST /v1/passkeys/bind/challengepasskeys.bind.challengeGet a passkey challenge that confirms one passkey here (cosigned by another of mine, confirmed by a tenant admin, enrolled with a code from the operator) or proves I hold ittokenavailable
POST /v1/passkeys/bindpasskeys.bindConfirm a passkey here with an assertion by a passkey already confirmed here (mine, or a tenant admin's for a member)tokenavailable
POST /v1/passkeys/enrolpasskeys.enrolConfirm my first passkey here with the one-time code from the operator and an assertion by that passkeytokenavailable
POST /v1/passkeys/revokepasskeys.revokeRevoke a passkey here (mine, or a member's as a tenant admin): it never approves againtokenavailable
GET /v1/settings/{level}/{scope}/{setting}settings.getEffective value of a setting, where it comes from, and its locktokenavailable
PUT /v1/settings/{level}/{scope}/{setting}settings.setSet or lock a setting at a leveltokenavailable
POST /v1/tenantstenants.createCreate a tenanttokenavailable
POST /v1/projectsprojects.createCreate a projecttokenavailable
POST /v1/projects/{project}/reposrepos.createAdd a repo to a projecttokenavailable
POST /v1/forgesforges.connectChoose the forge plugin for a tenant or project, with its configtokenavailable
POST /v1/computescomputes.connectChoose the compute plugin for a tenant or project, with its config and overflow classestokenavailable
POST /v1/rolesroles.grantGrant a roletokenavailable
POST /v1/roles/revokeroles.revokeTake a role awaytokenavailable
GET /v1/membersmembers.listList a tenant's people and agents with their rolestokenavailable
PUT /v1/projects/{project}/secrets/{name}secrets.putWrite a secret (write-only)tokencoming (not implemented yet)
POST /v1/pauseruns.pausePause new runs at a scopetokenavailable
POST /v1/resumeruns.resumeResume runs at a scopetokenavailable
POST /v1/stopruns.stopStop: pause and cancel running jobstokenavailable
GET /v1/planruns.planJobs and worst-case cost that would start nowtokencoming (not implemented yet)
GET /v1/meme.getWho I am: identity, tenant, roles, passkeystokenavailable
POST /v1/users/linkusers.linkLink a globally signed-in user to an identity of this tenanttokenavailable
GET /v1/reposrepos.listRepos I can see, with open and red PR countstokenavailable
GET /v1/prsprs.searchSearch PRs across the repos I can seetokenavailable
GET /v1/prs/{pr}/diffprs.diffA PR's diff against its target, guarded files markedtokenavailable
POST /v1/prs/{pr}/approvals/challengeapprovals.challengeGet a passkey challenge bound to a PR's exact head and guarded filestokenavailable
GET /v1/repos/{repo}/promotionspromotions.listList promotion, revert and reconcile PRs: kind, source, target, promoted commit, hold reason, checkstokenavailable
GET /v1/promotions/{pr}promotions.getShow one promotion, revert or reconcile PR with its checks, approvals and hold reasontokenavailable
GET /v1/repos/{repo}/promotion-statuspromotion.statusEach promotion pair of a repo (dev -> qa -> main): tips, what is ahead, held and whytokenavailable
POST /v1/promotions/{pr}/challengepromotion.challengeStart a passkey ceremony bound to a promotion's exact commit and the guarded files it changestokenavailable
POST /v1/promotions/{pr}/approvalspromotion.approveApprove a promotion, or reject it with a reason (which opens the revert), with a person's passkeytoken + passkeyavailable
GET /v1/settings/{level}/{scope}settings.listEvery setting and feature at a level, with value, source and locktokenavailable
GET /v1/statsstats.flowMerge queue flow: PRs arrived, landed and red, cost, time to landtokenavailable
POST /v1/events/ackevents.ackAcknowledge my events up to a sequence numbertokenavailable
GET /v1/projects/{project}/runsruns.listRuns started with mci run, newest first, by status and requestertokenavailable
POST /v1/projects/{project}/runs/quoterun.quoteEstimate the cost and duration of an on-demand runtokenavailable
POST /v1/projects/{project}/runsrun.createStart an on-demand run, or reuse an identical earlier result of yourstokenavailable
POST /v1/projects/{project}/workspace/syncworkspace.syncFind the nearest commit the region already has, to send only a difftokenavailable
PUT /v1/runs/{run}/contextrun.uploadUpload an on-demand run's working treetokenavailable
GET /v1/runs/{run}/eventsrun.attachStream an on-demand run's output and resulttokenavailable
POST /v1/runs/{run}/cancelrun.cancelStop an on-demand run (Ctrl-C)tokenavailable
GET /v1/runs/{run}/contextrun.contextA runner downloads the working tree of the on-demand run it runsjob tokenavailable
GET /v1/computecompute.overviewRunners, pools, cloud accounts, placement and spend at a glancetokenavailable
POST /v1/compute/runners/enrolrunners.enrolAdd a runner from the console: the commands to run and an enrolment to watchtoken + passkeyavailable
GET /v1/compute/runners/enrol/{code}runners.enrolmentA runner enrolment by its code: the machine, its scope and statustokenavailable
POST /v1/compute/runners/enrol/{code}/approverunners.approveApprove or deny a machine that asked to become a runnertoken + passkeyavailable
POST /v1/compute/runners/tokensrunners.tokens.createCreate a one-time registration token for unattended runners (shown once)token + passkeyavailable
GET /v1/compute/machines/{machine}runners.statusOne runner: health, jobs, capabilities, policytokenavailable
PUT /v1/compute/machines/{machine}runners.updateSet a runner's labels and which jobs may use ittokenavailable
POST /v1/compute/machines/{machine}/drainrunners.drainLet a runner finish its jobs and take no new onestokenavailable
POST /v1/compute/machines/{machine}/resumerunners.resumeLet a drained runner take jobs againtokenavailable
DELETE /v1/compute/machines/{machine}runners.deregisterRemove a runner (it must be idle)tokenavailable
PUT /v1/compute/pools/{pool}/spillpools.spillWhen a pool's jobs wait too long, run them on another pool within a daily spendtokenavailable
GET /v1/runs/{run}/liveruns.liveA running job live: phases, log, tests, resources, then the resulttokenavailable
GET /v1/runs/{run}/log/searchruns.log_searchSearch a run's whole logtokenavailable
POST /v1/runs/{run}/reportruns.reportA runner reports a job's resultjob tokenavailable
POST /v1/hooks/push/{forge}hooks.pushPush notification from a git hostforge hookcoming (not implemented yet)

Auth: token is an API token whose identity holds the needed permission; token + passkey also needs a fresh passkey assertion from a person; forge hook and job token are used by forges and runners, not by people or agents.

View this page as Markdown