Audit the live public and ephemeral tips of a candidate checkout
| repository_idrequired | string | repository id to act on |
| change_id | string | |
| revision | integer |
71 tools over HTTP using MCP protocol 2025-06-18. Connect your agent to read repositories, propose changes and inspect results within its permissions.
The MCP server lets compatible clients call Trunk tools as the authenticated user or agent. Each call is subject to the permissions of the credential used to connect.
initialize answers with instructions written for whoever authenticated the session — your handle and the reminder to check your scopes before proposing. Each tool accepts one input object; the tool catalog below lists its fields.
Use the same /mcp endpoint whether the client authenticates with a long-lived agent key or a delegated OAuth connection.
claude mcp add --transport http trunk https://api.trunk.dev/mcp \ --header "Authorization: Bearer $AGENT_KEY"
[mcp_servers.trunk] url = "https://api.trunk.dev/mcp" bearer_token_env_var = "TRUNK_API_KEY"
Codex reads the variable at connect time and sends it as the bearer token, so the key never sits in the file. codex mcp add trunk --url https://api.trunk.dev/mcp --bearer-token-env-var TRUNK_API_KEY writes the same entry.
{ "$schema": "https://opencode.ai/config.json", "mcp": { "trunk": { "type": "remote", "url": "https://api.trunk.dev/mcp", "enabled": true, "headers": { "Authorization": "Bearer {env:TRUNK_API_KEY}" } } } }
{env:TRUNK_API_KEY} is opencode's own substitution, resolved when the config is read — write the key itself here and it is committed the moment the file is.
OAuth-capable remote MCP clients, including ChatGPT, should be pointed at https://api.trunk.dev/mcp and let MCP/OAuth discovery drive registration and authorization. They do not need a pre-created Trunk agent key; see Remote OAuth clients below.
Every message is a POST to https://api.trunk.dev/mcp. A notification — a message with no id — is answered 202 with no body.
HTTP MCP accepts either an existing Trunk bearer credential or a delegated OAuth bearer issued specifically for the /mcp protected resource.
/mcp resource, not as general /v1 API authority.For remote clients that support MCP OAuth, Trunk uses discovery plus Authorization Code with PKCE and explicit human consent instead of asking the user to copy an agent key into the client.
https://api.trunk.dev/mcp. Trunk publishes OAuth protected-resource and authorization-server metadata, so a compatible client can discover the authorization, token, registration and revocation endpoints. Public clients may use dynamic client registration.trunk:mcp:read is the required base OAuth scope. Its complete audited tool surface is whoami, list_repositories, get_repository, issue_agent_git_credential, list_branches, list_directory, read_file, read_files, search_source, preflight_patch and get_repository_stats. It does not imply access to the rest of the generic MCP read catalog. Delegated OAuth also exposes only the trunk://me MCP resource; trunk://queue and trunk://policy remain generic API-key/session MCP resources.trunk:mcp:feedback adds submit_feedback, list_feedback, get_feedback and wait_feedback for the integration agent’s own reports. It never grants maintainer reads or respond_feedback. Follow the feedback guide for submission and response examples.trunk:mcp:changes:read adds exactly list_changes, get_change and audit_candidate_retention. The audit compares the public and ephemeral tips for one original candidate revision and reports its current retention blocker. Delegated list results contain only id, repository_id, branch, revision, base_commit and status. Delegated get accepts the Change id without the generic include selector and adds only the exact stored diff. Generic Change risk, reported results, author presentation, evidence, trace, decisions and track data are not delegated by this scope.trunk:mcp:propose adds exactly propose_change, revise_change, mark_change_ready and recover_github_contribution; it does not inherit the consenting human's owner/admin authority. The delegated integration agent still needs its own current Trunk repository/service/path proposal scope for authoring mutations. It may propose Draft or non-Draft work, and only the exact author may mark its exact current Draft revision Ready. Ready removes only that author-controlled hold; it does not grant direct landing authority. An authorized proposal may still automatically land through the normal Change lifecycle when the integration agent's scope and budget, repository policy and required checks allow it.trunk_land_change, force-land, revert, verification, scope-granting or other human/provider control-plane operations. Automatic landing after proposal, revision or exact-author Ready is a policy outcome, not a delegated land operation. A new OAuth scope added by Trunk also does not silently widen an already-issued token; additional authority requires fresh consent.For an existing linked GitHub contribution, recover_github_contribution accepts change_id and the exact current revision. It requires enabled GitHub integration, the integration agent's own authorship and current repository/service/path proposal scope. It resets bounded synchronization retries; the response does not mean synchronization has completed. Delegated results contain only change_id, revision, status and landing_readiness. Recovery does not change Draft/Ready, create verification evidence or authorize a merge. A completed-without-changes contribution remains terminal; stale revisions and merged or published contributions are rejected.
issue_agent_git_credential issues a separate five-minute Git-read token for one native repository using the agent's current read permission and originating credential authority. Keyless OAuth agents call this tool through their existing MCP connection; they do not send the MCP bearer to Git or /v1. The returned expires_at includes any earlier OAuth access expiry. Use a protected temporary Git credential helper, renew through the same authenticated tool and retry an expired Git read at most once. The credential permits clone/fetch and the read part of pull, never push, Ready or landing. GitHub-backed repositories are not supported. Keep the password out of remote URLs, arguments, logs and shared Git configuration.
Request offline_access only when the client needs refresh tokens. Trunk rotates refresh tokens: a successful refresh immediately makes the presented refresh token unusable and returns one successor. Reusing that predecessor while it is still within its accepted lifetime is treated as replay and retires only that refresh-token family; after the predecessor expires it is simply invalid. For signed credentials, revoking a family-bound access token or a refresh token likewise retires that family, while other independently issued token families on the same active delegation grant survive. Public-client revocation requests include their client_id; a mismatched client or unknown token remains an idempotent, non-disclosing revocation result. An access-only token has no refresh family, so revoking it retires the grant generation instead. Losing the delegating human's workspace membership also retires the delegation grant, so credentials derived from that grant no longer authenticate.
Supported MCP methods. Unsupported methods return -32601.
| initialize | Opens the session. Returns the negotiated protocol version, the server capabilities and instructions written for the authenticated agent. |
| notifications/initialized | The client saying it is ready. Carries no id, so it gets no reply. |
| ping | Liveness. Answers with an empty result. |
| tools/list | Every tool, with input schema and, when negotiated, structured output schema generated from its operation contract. |
| tools/call | Runs one tool as the authenticated actor. Requires a credential; a failure comes back as an error result, not a transport error. |
| resources/list | The read-only resources below. |
| resources/read | Reads one resource by URI. |
A tool result is one text block holding the operation's JSON response. Two things are worth knowing before you parse it.
propose_change and revise_change return the routing decision rather than the whole evidence bundle: the change id and status, whether it landed, the risk score and band, the rule that decided it, the findings above info with their file and line, and what to do next. Whenget_change is available, it reads back the Change view allowed for the current credential; delegated OAuth Change-read authority intentionally returns only recovery fields plus the exact stored proposal diff.isError: true and the message, so the session survives it.The catalog below is the full generic MCP tool surface, with each operation and input shape. It is not an OAuth grant manifest: delegated OAuth clients see only the audited base-read tools above plus separately consented Change-readback or proposal tools.
| repository_idrequired | string | repository id to act on |
| change_id | string | |
| revision | integer |
| repository_idrequired | string | repository id to act on |
| repository_idrequired | string | repository id to act on |
| pathsrequired | string[] | Repository-relative file paths. At most 12. |
| ref | string | Branch name. Defaults to the trunk branch. |
| repository_idrequired | string | repository id to act on |
| queryrequired | string | Literal text to find; regular expressions are not evaluated. |
| ref | string | Branch name. Defaults to the trunk branch. |
| path | string | Optional repository-relative subtree to search. |
| case_sensitive | boolean | |
| max_results | integer |
| repository_idrequired | string | repository id to act on |
| diffrequired | string |
| repository_idrequired | string | repository id to act on |
| commitrequired | string | Pinned Git SHA-1 commit to import. |
| sourcerequired | string | Audit label for the source, without credentials. Never fetched by the server. |
| pack_digestrequired | string | Lowercase SHA-256 digest of the exact raw Git pack. |
| pack_bytesrequired | integer | Exact raw Git pack byte count. |
| repository_idrequired | string | repository id to act on |
| change_idrequired | string | change id to act on |
| check_idrequired | string | check id to act on |
| expected_revisionrequired | integer |
| change_idrequired | string | change id to act on |
| expected_revisionrequired | integer |
| change_idrequired | string | change id to act on |
| expected_revisionrequired | integer | |
| reasonrequired | string |
| repository_idrequired | string | repository id to act on |
| pathsrequired | string[] | |
| offset | integer |
| repository_idrequired | string | repository id to act on |
| pathsrequired | string[] |
| repository_idrequired | string | repository id to act on |
| base | string | |
| head | string | |
| path | string | |
| offset | integer |
| change_idrequired | string | change id to act on |
| change_idrequired | string | change id to act on |
| check_idrequired | string | check id to act on |
| offset | integer | |
| limit | integer |
| change_idrequired | string | change id to act on |
| change_idrequired | string | change id to act on |
| cursor | string | |
| timeout_ms | integer |
| change_idrequired | string | change id to act on |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| include_archived | boolean |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| spec_idrequired | string | spec id to act on |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| expected_revisionrequired | integer | |
| titlerequired | string | |
| bodyrequired | string |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| spec_idrequired | string | spec id to act on |
| expected_revisionrequired | integer | |
| titlerequired | string | |
| bodyrequired | string |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| spec_idrequired | string | spec id to act on |
| expected_revisionrequired | integer | |
| title | string | |
| body | string |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| spec_idrequired | string | spec id to act on |
| expected_revisionrequired | integer | |
| title | string | |
| body | string |
| workspace_idrequired | string | workspace id to act on |
| workspace_idrequired | string | workspace id to act on |
| titlerequired | string | |
| statusrequired | string | |
| owner_idrequired | string | |
| repository_ids | string[] | |
| brief | string | |
| icon | string |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| titlerequired | string | |
| statusrequired | string | |
| expected_revisionrequired | integer | |
| repository_ids | string[] | |
| brief | string | |
| owner_id | string | |
| icon | string |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| expected_revisionrequired | integer |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| expected_revisionrequired | integer |
| workspace_idrequired | string | workspace id to act on |
| repository_id | string | |
| include_archived | boolean |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| before | string |
| workspace_idrequired | string | workspace id to act on |
| workspace_idrequired | string | workspace id to act on |
| task_idrequired | string | task id to act on |
| expected_revisionrequired | integer |
| workspace_idrequired | string | workspace id to act on |
| task_idrequired | string | task id to act on |
| expected_revisionrequired | integer |
| workspace_idrequired | string | workspace id to act on |
| repository_id | string | |
| project_id | string | |
| change_id | string | |
| include_archived | boolean |
| workspace_idrequired | string | workspace id to act on |
| task_idrequired | string | task id to act on |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | |
| titlerequired | string | |
| statusrequired | string | |
| description | string | |
| assignee_id | string | Active workspace member or repository agent ID. Omit or use an empty string for unassigned. |
| workspace_idrequired | string | workspace id to act on |
| task_idrequired | string | task id to act on |
| expected_revisionrequired | integer | |
| titlerequired | string | |
| statusrequired | string | |
| project_id | string | |
| description | string | |
| assignee_id | string | Active workspace member or repository agent ID. Omit or use an empty string for unassigned. |
| workspace_idrequired | string | workspace id to act on |
| task_idrequired | string | task id to act on |
| expected_revisionrequired | integer | |
| bodyrequired | string |
| workspace_idrequired | string | workspace id to act on |
| task_idrequired | string | task id to act on |
| expected_revisionrequired | integer | |
| change_idrequired | string |
| workspace_idrequired | string | workspace id to act on |
| task_idrequired | string | task id to act on |
| expected_revisionrequired | integer | |
| change_idrequired | string |
| request_keyrequired | string | |
| categoryrequired | string | |
| operationrequired | string | Affected Trunk feature, HTTP route or MCP tool; unknown operation names are accepted so missing endpoints can be reported. |
| summaryrequired | string | |
| expectedrequired | string | |
| actualrequired | string | |
| reproduction | string | Minimal sanitized reproduction; empty when unavailable. |
| after | string | |
| status | string | |
| limit | integer |
| feedback_idrequired | string | feedback id to act on |
| maintainer | boolean |
| feedback_idrequired | string | feedback id to act on |
| after_revision | integer | |
| timeout_ms | integer |
| feedback_idrequired | string | feedback id to act on |
| expected_revisionrequired | integer | |
| statusrequired | string | |
| responserequired | string | |
| release_url | string |
Takes no arguments.
Takes no arguments.
| repository_idrequired | string | repository id to act on |
| repository_idrequired | string | Repository id or name. |
| titlerequired | string | Imperative one-liner, as it will read on trunk. |
| intentrequired | string | Why this change exists, in your own words: the problem, the evidence it is real, and what you decided not to do. This is what a human reads first. |
| diffrequired | string | Unified diff (git format). Trunk derives its own evidence from this — it does not take your word for what changed. |
| linear_issue | string | Linear issue identifier or URL. Its description is shared with repository readers and used by Reviews. On revision omit to keep the snapshot, resend to refresh, or send an empty string to unlink. |
| service | string | Owning service. Inferred from the changed paths when omitted. |
| spec | object | |
| goal | string | |
| non_goals | string[] | |
| acceptance_criteria | string[] | |
| constraints | string[] | |
| base_commit | string | Trunk commit you worked from. Defaults to current head. |
| reported | object | Results you observed. Recorded as self-reported and weighted as such. |
| suites | object[] | |
| namerequired | string | |
| passedrequired | integer | |
| failedrequired | integer | |
| skipped | integer | |
| duration_ms | integer | |
| coverage_delta | number | |
| benchmarks | object[] | |
| namerequired | string | |
| before_msrequired | number | |
| after_msrequired | number | |
| trace | object[] | Client-submitted session trace: prompts, tool calls, skills and reasoning summaries. Only submit content you can share with repository readers; omit secrets. Trunk does not automatically capture client sessions. |
| kindrequired | string | What the agent was doing at this step. |
| summaryrequired | string | One line, written for a human skimming the trace. |
| detail | string | Optional longer output: command, result, reasoning. |
| prompt | object | |
| rolerequired | string | |
| contentrequired | string | Prompt text explicitly supplied by the client. |
| tool_call | object | |
| namerequired | string | |
| call_id | string | Client tool-call identifier for correlation. |
| arguments | string | Tool input as text or serialized JSON. |
| result | string | Tool output as text or serialized JSON. |
| status | string | |
| skill | object | |
| namerequired | string | |
| source | string | Skill path or URI. |
| content | string | |
| reasoning | string | Agent-supplied reasoning summary or decision rationale, not private chain-of-thought. |
| ts | string | ISO timestamp. Defaults to now. |
| tokens | integer | Tokens consumed by this step. |
| usd | number | Cost of this step in USD. |
| cost_usd | number | What this change cost to produce. Recorded for usage reporting. |
| draft | boolean | For native repositories, explicit true sets Draft; explicit false sets Ready, on both creation and revision. Omitted on a new Change starts Ready; omitted on a revision preserves the previous Draft/Ready state. Verification/CI/Preview and all landing gates remain independent. |
| change_idrequired | string | change id to act on |
| titlerequired | string | Imperative one-liner, as it will read on trunk. |
| intentrequired | string | Why this change exists, in your own words: the problem, the evidence it is real, and what you decided not to do. This is what a human reads first. |
| diffrequired | string | Unified diff (git format). Trunk derives its own evidence from this — it does not take your word for what changed. |
| expected_revisionrequired | integer | Current numerical Change revision observed by the caller. A stale value returns conflict without writing. |
| linear_issue | string | Linear issue identifier or URL. Its description is shared with repository readers and used by Reviews. On revision omit to keep the snapshot, resend to refresh, or send an empty string to unlink. |
| service | string | Owning service. Inferred from the changed paths when omitted. |
| spec | object | |
| goal | string | |
| non_goals | string[] | |
| acceptance_criteria | string[] | |
| constraints | string[] | |
| base_commit | string | Exact replacement base commit. Omit to retain the current Change base. |
| reported | object | Results you observed. Recorded as self-reported and weighted as such. |
| suites | object[] | |
| namerequired | string | |
| passedrequired | integer | |
| failedrequired | integer | |
| skipped | integer | |
| duration_ms | integer | |
| coverage_delta | number | |
| benchmarks | object[] | |
| namerequired | string | |
| before_msrequired | number | |
| after_msrequired | number | |
| trace | object[] | Client-submitted session trace: prompts, tool calls, skills and reasoning summaries. Only submit content you can share with repository readers; omit secrets. Trunk does not automatically capture client sessions. |
| kindrequired | string | What the agent was doing at this step. |
| summaryrequired | string | One line, written for a human skimming the trace. |
| detail | string | Optional longer output: command, result, reasoning. |
| prompt | object | |
| rolerequired | string | |
| contentrequired | string | Prompt text explicitly supplied by the client. |
| tool_call | object | |
| namerequired | string | |
| call_id | string | Client tool-call identifier for correlation. |
| arguments | string | Tool input as text or serialized JSON. |
| result | string | Tool output as text or serialized JSON. |
| status | string | |
| skill | object | |
| namerequired | string | |
| source | string | Skill path or URI. |
| content | string | |
| reasoning | string | Agent-supplied reasoning summary or decision rationale, not private chain-of-thought. |
| ts | string | ISO timestamp. Defaults to now. |
| tokens | integer | Tokens consumed by this step. |
| usd | number | Cost of this step in USD. |
| cost_usd | number | What this change cost to produce. Recorded for usage reporting. |
| draft | boolean | For native repositories, explicit true sets Draft; explicit false sets Ready, on both creation and revision. Omitted on a new Change starts Ready; omitted on a revision preserves the previous Draft/Ready state. Verification/CI/Preview and all landing gates remain independent. |
| repository_id | string | |
| service | string | |
| branch | string | Only changes on this branch. |
| author | string | Actor handle or id. |
| status | string | Comma-separated: verifying, merge_conflicts, awaiting_decision, approved, landed, reverted, blocked, rejected, no_change. No_change means completed without changes, not landed or rejected. Merge conflicts are an effective status, independent of lifecycle status. |
| route | string | |
| order_by | string | Dates sort newest first; unlanded changes sort last for landed_at. Risk ranks the newest matching limit changes by descending score, with recency breaking ties. |
| limit | integer |
| change_idrequired | string | change id to act on |
| include | string | Comma-separated: diff, evidence, trace, decisions, track. |
| change_idrequired | string | change id to act on |
| change_idrequired | string | change id to act on |
| revisionrequired | integer | Exact current numerical Change revision being released from Draft. |
| change_idrequired | string | change id to act on |
| revisionrequired | integer | Exact current numerical Change revision whose synchronization is retried. |
| change_idrequired | string | change id to act on |
| reasonrequired | string | What went wrong. Shown on the author's record. |
| detected_by | string | Alert, on-call, customer report, canary… |
| change_idrequired | string | change id to act on |
| stepsrequired | object[] | |
| kindrequired | string | What the agent was doing at this step. |
| summaryrequired | string | One line, written for a human skimming the trace. |
| detail | string | Optional longer output: command, result, reasoning. |
| prompt | object | |
| rolerequired | string | |
| contentrequired | string | Prompt text explicitly supplied by the client. |
| tool_call | object | |
| namerequired | string | |
| call_id | string | Client tool-call identifier for correlation. |
| arguments | string | Tool input as text or serialized JSON. |
| result | string | Tool output as text or serialized JSON. |
| status | string | |
| skill | object | |
| namerequired | string | |
| source | string | Skill path or URI. |
| content | string | |
| reasoning | string | Agent-supplied reasoning summary or decision rationale, not private chain-of-thought. |
| ts | string | ISO timestamp. Defaults to now. |
| tokens | integer | Tokens consumed by this step. |
| usd | number | Cost of this step in USD. |
Takes no arguments.
| agent_idrequired | string | agent id to act on |
| repository_idrequired | string | repository id to act on |
| repository_idrequired | string | repository id to act on |
| rulesrequired | object[] | |
| limit | integer |
| repository_idrequired | string | repository id to act on |
| repository_idrequired | string | repository id to act on |
| ref | string | Branch name. Defaults to the trunk branch. |
| path | string | Directory to list. Defaults to the repository root. |
| repository_idrequired | string | repository id to act on |
| path | string | File to read, from the repository root. |
| ref | string | Branch name. Defaults to the trunk branch. |
| limit | integer | |
| since | integer | |
| change_id | string |
| repository_idrequired | string | repository id to act on |
| change_idrequired | string | change id to act on |
| workspace_idrequired | string | workspace id to act on |
| project_idrequired | string | project id to act on |
| workspace_idrequired | string | workspace id to act on |
| task_idrequired | string | task id to act on |
The catalog below is the full generic API-key/session MCP resource surface. Delegated OAuth exposes only trunk://me; trunk://queue and trunk://policy are not delegated OAuth resources.
| trunk://queue | Decision queue Changes policy could not resolve without a human. |
| trunk://policy | Routing policy The rules that decide what lands unattended. |
| trunk://me | My identity Scopes, budget and track record for this credential. |
These operations exist on the API and are reachable by a person, but no general agent-facing tool grants them. Registering identities, widening credentials and approving evidence are human acts.
POST/v1/repositories/:repository_id/git-credentials | Issue a short-lived human Git HTTPS credential |
POST/v1/changes/:changeId/ci-dispatches | Dispatch or retry an exact required Trunk-managed check |
POST/v1/changes/:changeId/byo-ci-dispatches | Dispatch or retry an exact enabled customer-owned Buildkite check |
POST/v1/repositories/:repositoryId/deployments | Create or replay an exact-revision deployment and dispatch supported Preview providers |
PUT/v1/deployments/:deploymentId | Report provider-observed state for one deployment attempt |
GET/v1/workspace/verification-requirements | Read workspace-wide configurable verification requirements |
GET/v1/repositories/:repositoryId/verification-requirements | Read inherited and repository-specific verification requirements |
POST/v1/verification-requirements | Configure an independent workspace or repository verification requirement |
PUT/v1/verification-requirements/:requirementId | Change enabled and Required policy with an exact version precondition |
DELETE/v1/verification-requirements/:requirementId | Remove a configurable verification requirement without deleting history |
GET/v1/repositories/:repositoryId/check-requirements | Read the required external checks for a repository |
PUT/v1/repositories/:repositoryId/check-requirements | Replace the required external checks for a repository |
GET/v1/changes/:changeId/checks | Read current revision-bound checks and the landing gate |
POST/v1/changes/:changeId/checks/attempts | Request a review retry or rerun for the current Candidate |
POST/v1/changes/:changeId/checks | Create a human-attested check run for the current change revision |
PUT/v1/checks/:checkId | Advance a human-attested check run and resume landing when the gate turns green |
GET/v1/reviewers/catalog | Read public metadata only for Trunk-managed reviewer catalog |
POST/v1/reviewers | Create an workspace or repository reviewer definition |
GET/v1/reviewers | List workspace reviewer definitions |
GET/v1/reviewers/:reviewerId | Read a customer-owned reviewer definition |
GET/v1/reviewers/:reviewerId/versions | Read retained versions of an active customer reviewer |
PUT/v1/reviewers/:reviewerId | Replace a customer reviewer with version precondition |
DELETE/v1/reviewers/:reviewerId | Tombstone an active customer reviewer without erasing historical versions |
GET/v1/repositories/:repositoryId/reviewers | List effective customer definitions for a repository |
GET/v1/repositories/:repositoryId/reviewer-selections | Read frozen Trunk reviewer defaults selected for a repository |
GET/v1/workspace/reviewer-settings | Read reviewer configuration, provenance and administrator permissions |
POST/v1/workspace/reviewer-settings | Create a customer reviewer with Name, Prompt and scoped review policy |
PUT/v1/workspace/reviewer-settings/:reviewerId | Edit a customer reviewer and policy with exact version preconditions |
DELETE/v1/workspace/reviewer-settings/:reviewerId | Delete a customer reviewer, retaining historical identity and results |
GET/v1/repositories/:repositoryId/reviewer-settings | Read reviewer configuration, provenance and administrator permissions |
POST/v1/repositories/:repositoryId/reviewer-settings | Create a customer reviewer with Name, Prompt and scoped review policy |
PUT/v1/repositories/:repositoryId/reviewer-settings/:reviewerId | Edit a customer reviewer and policy with exact version preconditions |
DELETE/v1/repositories/:repositoryId/reviewer-settings/:reviewerId | Delete a customer reviewer, retaining historical identity and results |
PUT/v1/repositories/:repositoryId/reviewer-settings/global/:reviewerId | Select a Trunk global reviewer and configure repository review policy |
GET/v1/changes/:changeId/reviews | Read attributable Candidate review assessments and source findings |
POST/v1/auth/signup | Create an account |
POST/v1/auth/signin | Exchange an email and password for a session token |
POST/v1/auth/signout | End the current session |
POST/v1/repositories | Create a repository |
POST/v1/changes/:change_id/decisions | Record a human decision or terminate a pre-evidence Change |
POST/v1/changes/:change_id/land | Land an approved or auto-landable change on trunk |
GET/v1/queue | The human decision queue — only what policy could not resolve |
POST/v1/agents | Register an agent identity |
DELETE/v1/agents/:agent_id | Delete an agent that never did anything |
POST/v1/agents/:agent_id/scopes | Grant an agent a scope |
GET/v1/agents/:agent_id/keys | List an agent's active API keys |
POST/v1/agents/:agent_id/keys | Issue a new API key |
DELETE/v1/agents/:agent_id/keys/:key_id | Revoke an API key |
PUT/v1/agents/:agent_id/budget | Set an agent budget |
PUT/v1/repositories/:repository_id/policy | Save routing policy against the version read for editing |
GET/v1/repositories/:repository_id/trunk | The trunk log: what landed, in order |