#### API

# Origin API changelog

> [!WARNING]
>
> The Origin API is in Early Beta and subject to change. Review the [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) when updating an integration.

Changes to the Origin public API, including endpoints, request and response schemas, scopes, and webhooks, grouped by day with the newest first. Each change carries one label: **Breaking**, **Deprecated**, **Added**, **Changed**, or **Removed**. Breaking and deprecated changes include migration guidance inline. The [Origin API reference](/build/agents-window/api/origin) always reflects the latest synced state.

## November 25, 2026

* **Added.** [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) accepts an optional `authorPerformedVia` query parameter, an `app_…` or `sa_…` ID, that returns only pull requests a user opened through that app or service account, such as their personal Grok bot. A pull request the app or service account authored itself doesn't match; filter those with `author`.

## November 23, 2026

* **Breaking.** [Create Pull Request Review](/build/agents-window/api/origin#create-pull-request-review) rejects a bot service account's `approve` of a version that is no longer the pull request's latest with `FailedPrecondition` (HTTP 400), and records nothing. Such an approval used to be recorded. The bot's `comment` and `request_changes` reviews are still accepted on any version. Migration: have the bot review the pull request's latest version and approve that version.

## November 22, 2026

* **Changed.** [Get Blob](/build/agents-window/api/origin#get-blob) states that a blob larger than 4 MiB (decoded) is rejected with `FailedPrecondition` (HTTP 400), which is how Origin already handled it. Fetch larger files by cloning the repository over [Git HTTPS](/build/agents-window/api/origin#git-https-authentication).
* **Changed.** [Get Git Ref](/build/agents-window/api/origin#get-git-ref) states that a pull request's merge preview ref is deleted when the pull request merges or closes, as well as when the merge has conflicts, and that [Prepare Pull Request Merge Ref](/build/agents-window/api/origin#prepare-pull-request-merge-ref) refreshes it. Origin already handled the ref this way.

## November 19, 2026

* **Changed.** [Create Git Ref](/build/agents-window/api/origin#create-git-ref) returns `InvalidArgument` (HTTP 400) for a branch name longer than 4,000 bytes in UTF-8. Such a request used to fail with an internal error.
* **Changed.** Visible comments and replies, submitted reviews, review requests added or removed, and labels added or removed move a pull request's `updatedAt` forward, so `sortBy=updated` on [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) orders by that activity. They used to leave `updatedAt` unchanged.
* **Changed.** When Origin can't read a team's [inbound IP allowlist](/build/agents-window/api/origin#inbound-ip-allowlist), it keeps applying the last copy it read for up to ten minutes, then refuses the requests that list checks with `PermissionDenied` (HTTP 403). Those requests used to be admitted while the list couldn't be read.

## November 18, 2026

* **Breaking.** [Create Ruleset](/build/agents-window/api/origin#create-ruleset) and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) reject a `push_repository` ruleset whose `includedRefNames` or `excludedRefNames` holds a pattern, `~ALL` included, with `InvalidArgument` (HTTP 400), unless the ruleset already is a `push_repository` ruleset that stores that pattern in the same list. A `push_repository` ruleset applies to every push whatever its patterns, so these requests used to succeed and store patterns that limited nothing. Migration: send empty `includedRefNames` and `excludedRefNames` for a `push_repository` ruleset, or use a `push_branch` or `push_tag` ruleset to protect only some branches or tags.
* **Breaking.** [Create Ruleset](/build/agents-window/api/origin#create-ruleset) and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) reject an `includedRefNames` or `excludedRefNames` list whose brace groups and ranges, such as `{main,dev}` and `{1..9}`, expand it to more than 1,024 patterns, with `InvalidArgument` (HTTP 400). Update Ruleset still accepts a list sent exactly as the ruleset already stores it. Such lists used to be accepted at any size. Migration: use fewer `{a,b}` alternatives and `{1..9}` ranges in each list, or name the branches or tags with one pattern each.
* **Added.** [List Installation User Repositories](/build/agents-window/api/origin#list-installation-user-repositories) lists the repositories an installation user token can read: `GET /v1/origin/user/installations/{installationId}/repos`. A repository is listed when the acting user can read it, the installation can read it, and the token's `repositoryIds`, when set, include it. Only an installation user token minted for that installation can call it, and it requires [`repository:metadata:read`](/build/agents-window/api/origin#scopes).
* **Added.** [Update Repo](/build/agents-window/api/origin#update-repo) accepts an optional `name` in its request body that renames the repository within its owner. The previous name keeps resolving to the repository for Git and API requests, web links to it redirect to the new name, and no other repository can take it. A rename delivers [`repository.renamed`](/build/agents-window/api/origin#events), needs the same [`repository:settings:write`](/build/agents-window/api/origin#scopes) scope as the rest of Update Repo, and works only on repositories whose source of truth is Origin.
* **Changed.** The `x-origin-scopes` extension in the [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) lists a fourth `tokenTypes` value, `installation_as_user`, on every operation that accepts an installation user token, and the reference shows it as an **Installation user token** Auth badge. Authorization is unchanged; the extension publishes which operations already accepted installation user tokens.
* **Changed.** The `nextPageToken` that [List Commits](/build/agents-window/api/origin#list-commits) returns carries the full SHA that `sha` resolved to on the first page, so requests that pass it as `pageToken` keep walking from that commit even when the branch or tag moves between pages. The token used to carry the ref name, so a push between pages could repeat commits already listed, and a force-push could skip commits.
* **Changed.** [Update Ruleset](/build/agents-window/api/origin#update-ruleset) leaves a ruleset as it is when the request matches what the ruleset already stores, and returns it with each rule's and bypass actor's `id` unchanged. Such a request used to rewrite the ruleset and assign new IDs to its rules and bypass actors.
* **Changed.** [Update Repo](/build/agents-window/api/origin#update-repo) accepts `deleteBranchOnMerge` on a repository that pulls from an upstream source. The value is stored and takes effect once Origin becomes the repository's source of truth, and a mirror transition doesn't change it. Such a request used to return `FailedPrecondition` (HTTP 400).
* **Changed.** The [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) publishes the request limits Origin applies as schema keywords, `maxItems`, `maxLength`, `maximum`, and `default`, so client generators and validators can read them. For example, `labels` in the request body of [Add Pull Request Labels](/build/agents-window/api/origin#add-pull-request-labels) carries `maxItems: 100`. The limits themselves didn't change. The `pageSize` descriptions on [List Pull Requests](/build/agents-window/api/origin#list-pull-requests), [List Pull Request Comments](/build/agents-window/api/origin#list-pull-request-comments), and [List Pull Request Reviews](/build/agents-window/api/origin#list-pull-request-reviews) also state that values above 100 are clamped to 100, which is how Origin already handled them.
* **Changed.** The [`repository.renamed`](/build/agents-window/api/origin#events) [payload](/build/agents-window/api/origin#repository-renamed) description states that no other repository can take a renamed repository's previous name and that the renamed repository can rename back to it, which is how Origin already handled previous names. It used to say the previous name kept resolving only until another repository took it.

## November 17, 2026

* **Changed.** When a `pull_request` rule sets `requireCodeOwnerReview` through [Create Ruleset](/build/agents-window/api/origin#create-ruleset) or [Update Ruleset](/build/agents-window/api/origin#update-ruleset), a changed path whose code owners resolve only to the pull request's author is satisfied by any approval that counts toward `requiredApprovingReviewCount`. Such a path used to block [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) whatever approvals the pull request had, because the author can't approve their own pull request.

## November 14, 2026

* **Changed.** A group's review request clears only when a current member of the group who isn't the pull request's author submits an `approve` or `request_changes` review, so [List Pull Request Requested Reviewers](/build/agents-window/api/origin#list-pull-request-requested-reviewers) keeps returning the group after a `comment` review or a review by the author. Those reviews used to clear the group's request. A request for a user or service account still clears when that reviewer submits a review with any verdict.

## November 4, 2026

* **Added.** The [`repository.renamed`](/build/agents-window/api/origin#events) webhook event is delivered when a repository's name changes within its owner namespace, including a change of case only. Its [payload](/build/agents-window/api/origin#repository-renamed) carries the repository after the rename, `previousName`, the `actor` that renamed it when known, and `renamedAt`. Subscribing requires [`repository:metadata:read`](/build/agents-window/api/origin#scopes).
* **Added.** An inbound IP allowlist can trust the egress IP ranges that apps declare. [Get Inbound IP Allowlist](/build/agents-window/api/origin#get-inbound-ip-allowlist) and [Update Inbound IP Allowlist](/build/agents-window/api/origin#update-inbound-ip-allowlist) return `trustAppDeclaredIps`, and so does `allowlist` on [Replace Inbound IP Allowlist Entries](/build/agents-window/api/origin#replace-inbound-ip-allowlist-entries). Update Inbound IP Allowlist accepts an optional `trustAppDeclaredIps` in its request body to set it. While it's `true`, the list also admits an installation access token or an installation user token calling from an egress IP range its app declares. It doesn't change [Get Repo Tarball](/build/agents-window/api/origin#get-repo-tarball).
* **Changed.** `enabled` is optional on [Update Inbound IP Allowlist](/build/agents-window/api/origin#update-inbound-ip-allowlist). A request must set `enabled`, `trustAppDeclaredIps`, or both; one that sets neither returns `InvalidArgument` (HTTP 400).
* **Changed.** [Create Ruleset](/build/agents-window/api/origin#create-ruleset) and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) accept up to 50 `rules` and up to 100 `bypassActors`, up from 20 and 15.
* **Changed.** The [inbound IP allowlist](/build/agents-window/api/origin#inbound-ip-allowlist) reference states which lists a request must pass: the list of the team that owns the repository or namespace it names, and the list of the requesting member's or service account's own team. Installation access tokens, installation user tokens, and service accounts are checked on every surface, not only at [Get Repo Tarball](/build/agents-window/api/origin#get-repo-tarball). It also states that an enforced list covers MCP requests, that a refused API request, or one whose address Origin can't determine, returns `PermissionDenied` (HTTP 403), that requests from Grok Build's own services aren't checked against the list, and that a change can take up to a minute to apply. [Add Inbound IP Allowlist Entry](/build/agents-window/api/origin#add-inbound-ip-allowlist-entry) documents that an entry that would make an enforced list exclude the caller's own address returns `InvalidArgument` (HTTP 400), and the [error model](/build/agents-window/api/origin#errors) documents that a `403` can mean an allowlist refused the request's address.

## October 28, 2026

* **Breaking.** A user's approval counts toward a `pull_request` rule's `requiredApprovingReviewCount`, `requireCodeOwnerReview`, and `requiredReviewers` only while the user has permission to [submit reviews](/build/agents-window/api/origin#create-pull-request-review) on the repository. Approvals from users without that permission, such as someone whose access was removed after they approved or a group member who can only read the repository, used to count and no longer do. [Get Pull Request Mergeability](/build/agents-window/api/origin#get-pull-request-mergeability) can therefore report a pull request as blocked that it used to report as mergeable, and [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) refuses it with `FailedPrecondition` (HTTP 400). Migration: request a new approval from someone with permission to submit reviews on the repository, or restore the approver's access.
* **Added.** [Create Repo](/build/agents-window/api/origin#create-repo) accepts an optional `visibility` in its request body, `internal` or `private`, and creates the repository with it. Omitting it creates an `internal` repository, which is what Create Repo created for every request before.

## October 27, 2026

* **Breaking.** [Enable Pull Request Auto Merge](/build/agents-window/api/origin#enable-pull-request-auto-merge) returns `PermissionDenied` (HTTP 403) to a service account, as it already did to an installation user token, because auto-merge merges later as the principal that turned it on and Origin can't act as a service account then. These requests used to succeed and left auto-merge on without ever merging. Auto-merge that a service account turned on before this change is turned off, and [`pull_request.merge_when_ready.disabled`](/build/agents-window/api/origin#events) reports `enabler_lost_access` as its `disabledReason`. Migration: merge the pull request with [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) once it's mergeable, or have a person turn on auto-merge with their Grok Build user credential.
* **Breaking.** [Enable Pull Request Auto Merge](/build/agents-window/api/origin#enable-pull-request-auto-merge) rejects `mergeMethod` `merge` with `FailedPrecondition` (HTTP 400) when an `active` `required_linear_history` rule covers the pull request's base branch and squash merges are allowed there, because auto-merge lands without a ruleset bypass and the rule refuses its merge commit. These requests used to succeed. Auto-merge already on with `merge` for such a branch is turned off, and [`pull_request.merge_when_ready.disabled`](/build/agents-window/api/origin#events) reports `merge_failed` as its `disabledReason`. Migration: send `squash`, or omit `mergeMethod` to land the default, when the base branch requires linear history.

## October 25, 2026

* **Breaking.** [Post Check Run](/build/agents-window/api/origin#post-check-run) and [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs) return `InvalidArgument` (HTTP 400) for a check suite or check run whose `name` is longer than 255 characters or whose `detailsUrl` is longer than 8,192 characters, where these requests used to succeed. A batch with one such run writes none of its runs. Migration: truncate `name` to 255 characters and `detailsUrl` to 8,192 characters on `checkSuite`, `checkRun`, and each `checkRuns[]` entry before you post.

## October 23, 2026

* **Breaking.** [Get Repo Tarball](/build/agents-window/api/origin#get-repo-tarball) returns `PermissionDenied` (HTTP 403) to an installation access token or an installation user token that calls from an address outside the [inbound IP allowlist](/build/agents-window/api/origin#inbound-ip-allowlist) of the namespace the app is installed in, while that namespace enforces the list. These requests used to receive the `302` redirect, whose download URL only listed addresses could use. Migration: call Get Repo Tarball from an address on the installation namespace's allowlist, as you already do to download the archive.
* **Deprecated.** `users` and `groups` are deprecated in favor of the new `reviewers` list and will be removed in a future release. This covers the request bodies of [Request Pull Request Reviewers](/build/agents-window/api/origin#request-pull-request-reviewers) and [Remove Pull Request Requested Reviewers](/build/agents-window/api/origin#remove-pull-request-requested-reviewers) and the responses of [List Pull Request Requested Reviewers](/build/agents-window/api/origin#list-pull-request-requested-reviewers) and Request Pull Request Reviewers. Both are still accepted and populated as before, and the request lists remain the only way to name a user by email or a group by slug. Migration: send and read `reviewers`, and keep `users` and `groups` only for email and slug lookups.
* **Added.** [List Pull Request Requested Reviewers](/build/agents-window/api/origin#list-pull-request-requested-reviewers) and [Request Pull Request Reviewers](/build/agents-window/api/origin#request-pull-request-reviewers) responses include `reviewers`, which lists every requested reviewer, service accounts included. Each entry sets exactly one of `user`, `group`, or `serviceAccount`, the shape `reviewer` has in the [Pull Request Reviewer Events](/build/agents-window/api/origin#pull-request-reviewer-events) payload. A requested service account stays listed until it submits a review at or after the request.
* **Added.** [Request Pull Request Reviewers](/build/agents-window/api/origin#request-pull-request-reviewers) and [Remove Pull Request Requested Reviewers](/build/agents-window/api/origin#remove-pull-request-requested-reviewers) accept `reviewers`, which names each reviewer by public ID as a `user` (`user_…`), `group` (`grp_…`), or `serviceAccount` (`sa_…`), so you can request and remove bot service accounts. A requested service account must be a bot whose owner belongs to the team that owns the repository. One the repository can't request returns `PermissionDenied` (HTTP 403), and one that can't review the pull request, such as a personal bot on a pull request its owner authored, returns `FailedPrecondition` (HTTP 400).

## October 22, 2026

* **Breaking.** [Get Repo Tarball](/build/agents-window/api/origin#get-repo-tarball) responds `302` to every request made with an installation access token, an installation user token, or a service account, and the download URL in `Location` accepts requests only from addresses on the [inbound IP allowlist](/build/agents-window/api/origin#inbound-ip-allowlist) of the repository's namespace while the namespace enforces one. For a service account, the allowlist of the team that owns the account applies too, and a request from an address that allowlist excludes returns `PermissionDenied` (HTTP 403) instead of the redirect. The first request for a commit used to stream the archive with `200`, which an installation user token could do from any address. Migration: read the archive from the URL in `Location` instead of the response body, and download it from an address on the namespace's allowlist.
* **Added.** Apps can request [`namespace:repositories:create`](/build/agents-window/api/origin#scopes), and an installation that holds it can create repositories in its namespace with [Create Repo](/build/agents-window/api/origin#create-repo). The installation must use the `all` repository-selection mode; an installation on selected repositories can't create repositories even when a workspace admin approved the scope. An existing installation holds the scope only after a workspace admin approves it through the [installation URL](/build/agents-window/api/origin#installation).

## October 21, 2026

* **Breaking.** [List Commits](/build/agents-window/api/origin#list-commits) returns `InvalidArgument` (HTTP 400) for a `path` that contains a `..` segment, where it used to list no commits. It also drops empty and `.` segments from `path`, so `./src//app.ts` lists the commits that change `src/app.ts` instead of none. Migration: resolve `..` segments before you send `path`, for example send `src/app.ts` instead of `src/lib/../app.ts`.
* **Changed.** [List Namespaces](/build/agents-window/api/origin#list-namespaces) also returns the namespaces where a [grant](/build/agents-window/api/origin#grants) on the namespace or one of its repositories names you or a group you belong to. It used to leave them out, even when [List Repos](/build/agents-window/api/origin#list-repos) could list repositories there. This extends the candidates named in the [September 24](/build/agents-window/api/origin/changelog#sep-24-2026) entry, and you still hold [`namespace:repositories:read`](/build/agents-window/api/origin#scopes) on every namespace it returns.

## October 20, 2026

* **Added.** The [`pull_request.reviewer.added`](/build/agents-window/api/origin#events), `pull_request.reviewer.removed`, and `pull_request.reviewer.rerequested` webhook events are delivered when the reviewer is a service account, such as a bot that CODEOWNERS requests, where Origin used to send none of them. In the [reviewer payload](/build/agents-window/api/origin#pull-request-reviewer-events), `reviewer` carries a new `serviceAccount` object with the account's `id` and, when Grok Build can describe the account, a `type` naming the product it acts for and a `displayName`. Origin might add more reviewer kinds, so ignore unknown fields when you decode `reviewer`, and treat a reviewer with no variant you recognize as unknown rather than as an error.
* **Changed.** [Request Pull Request Reviewers](/build/agents-window/api/origin#request-pull-request-reviewers) and [Remove Pull Request Requested Reviewers](/build/agents-window/api/origin#remove-pull-request-requested-reviewers) resolve reviewers for an [installation access token](/build/agents-window/api/origin#installation-access-token) against the members of the team that owns the repository's namespace and the members and groups of the organizations linked to that team. An installation token used to have no reviewer candidates on such a repository, so Request Pull Request Reviewers returned `InvalidArgument` (HTTP 400) for every reviewer it named. Installation user tokens and Grok Build user credentials resolve candidates as before.

## October 19, 2026

* **Added.** [List Commits](/build/agents-window/api/origin#list-commits) accepts an optional `path` query parameter that lists only the commits that change a file or directory, without following renames. A merge is listed when the path differs from any of its parents, as `git log --full-history -- <path>` does. A directory matches when anything beneath it changes, and a commit must also match every email and time filter that's set. The page token carries the path, so `path` is ignored on a request that sends a token.
* **Added.** [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) accepts a repeatable `mergeCommitShas` query parameter that returns the pull requests whose `mergeCommitSha` equals any listed SHA. Each value must be a full 40- or 64-character commit SHA, and more than 100 distinct SHAs, or any value that isn't a full SHA, returns an empty list. Pass `state=merged` or `state=all`, because `state` defaults to `open` and a pull request has no merge commit until it merges.
* **Added.** [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) accepts optional `mergedSince` and `mergedUntil` query parameters, inclusive RFC 3339 bounds on `mergedAt` such as `2026-08-01T00:00:00Z`. Unmerged pull requests never match, so pass `state=merged` or `state=all`, and a pull request must also match any `since` and `until` creation-time bounds that are set. A malformed timestamp returns `InvalidArgument` (HTTP 400).

## October 17, 2026

* **Breaking.** Ruleset bypass actors and the `requiredReviewers` of `pull_request` rules no longer carry a `team` object with `organizationPublicId` and `groupPublicId`. They name a Grok Build organization group with `group` instead, whose `group.id` is the group's public ID (`grp_…`), and Origin derives the group's organization from that ID. [List Rulesets](/build/agents-window/api/origin#list-rulesets), [Get Ruleset](/build/agents-window/api/origin#get-ruleset), [Create Ruleset](/build/agents-window/api/origin#create-ruleset), and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) return `group`, and Create Ruleset and Update Ruleset return `InvalidArgument` (HTTP 400) for an entry that still sends `team`. This replaces the `team` shape in the [October 14](/build/agents-window/api/origin/changelog#oct-14-2026) and [October 16](/build/agents-window/api/origin/changelog#oct-16-2026) entries. Migration: send `group.id` with the value your integration sent as `team.groupPublicId`, drop `team.organizationPublicId`, and read `group.id` wherever you read `team.groupPublicId`.

## October 16, 2026

* **Breaking.** Ruleset bypass actors no longer have an `originRole` kind. [Create Ruleset](/build/agents-window/api/origin#create-ruleset) and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) return `InvalidArgument` (HTTP 400) for a `bypassActors[]` entry that names an Origin role, and [List Rulesets](/build/agents-window/api/origin#list-rulesets), [Get Ruleset](/build/agents-window/api/origin#get-ruleset), and the create and update responses leave out any role actor a ruleset already stores. A role actor never granted a bypass: Origin doesn't resolve who holds a role when it evaluates a ruleset. Migration: replace each `bypassActors[].originRole` entry with `user`, `team`, or `app` entries that name the principals who can bypass the ruleset.
* **Added.** The [`repository.label.created`](/build/agents-window/api/origin#events), `repository.label.updated`, and `repository.label.deleted` webhook events report label definitions being created, updated, and deleted in a repository, including labels that `createMissing` creates on [Set Pull Request Labels](/build/agents-window/api/origin#set-pull-request-labels) and [Add Pull Request Labels](/build/agents-window/api/origin#add-pull-request-labels). Created and deleted labels carry the [label payload](/build/agents-window/api/origin#repository-label-events), and the [updated payload](/build/agents-window/api/origin#repository-label-updated) adds `previousLabel`, the label as it was before the update. An update that changes nothing delivers nothing, and none of the three events is delivered for a repository Origin mirrors from GitHub. They require [`repository:labels:read`](/build/agents-window/api/origin#scopes).
* **Changed.** [Create Ruleset](/build/agents-window/api/origin#create-ruleset) and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) return `InvalidArgument` (HTTP 400) for a `name` longer than 120 characters, where the request used to fail with an internal error (HTTP 500). The limit applies after trimming whitespace and counts UTF-16 code units, so an astral character such as an emoji counts twice.

## October 15, 2026

* **Breaking.** [Add Pull Request Comment Reaction](/build/agents-window/api/origin#add-pull-request-comment-reaction) and [Remove Pull Request Comment Reaction](/build/agents-window/api/origin#remove-pull-request-comment-reaction) reject an `emoji` that contains `@`, which both endpoints used to accept. Migration: send reaction emoji without `@`.
* **Changed.** [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) returns `FailedPrecondition` (HTTP 400), and nothing merges, when a merge commit is the only method that can land on the base branch and an `active` `required_linear_history` rule covers that branch, unless the caller can bypass every ruleset that holds such a rule. A squash can't land when the repository's `allowSquashMerge` is `false` or a `pull_request` rule's `allowedMergeMethods` leaves it out. [Get Pull Request Mergeability](/build/agents-window/api/origin#get-pull-request-mergeability) reports the condition as a `ruleset_error` blocker. Such a pull request used to read as `mergeable` when nothing else blocked it, and the merge failed when Origin pushed the merge commit.

## October 14, 2026

* **Breaking.** The [`pull_request.base_ref.updated`](/build/agents-window/api/origin#events) webhook event is delivered only when a pull request is retargeted onto a different base branch. Origin used to also deliver it when the pull request's resolved base commit changed without a retarget, as when a head push found that the base branch had advanced. Migration: read the base commit from `pullRequest.version.baseSha` on [`pull_request.head_ref.pushed`](/build/agents-window/api/origin#events), which every head push still delivers.
* **Breaking.** [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) returns `FailedPrecondition` (HTTP 400), and nothing merges, when the pull request's base branch is the head branch of a pull request that has already merged. For a stack, the base that counts is the one the merge lands on. Such a merge used to land on a branch whose commits never reach the branch the earlier pull request merged into. The repository's default branch is exempt, as is a base branch that an `active` `push_branch` ruleset with a `deletion` rule names in `includedRefNames`. [Get Pull Request Mergeability](/build/agents-window/api/origin#get-pull-request-mergeability) reports the condition as a `needs_restack` blocker. Migration: set the pull request's `base` to the branch the error message names with [Update Pull Request](/build/agents-window/api/origin#update-pull-request), then merge it.
* **Breaking.** [Create Ruleset](/build/agents-window/api/origin#create-ruleset) and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) return `InvalidArgument` (HTTP 400) for a `bypassActors[].team` entry unless its group exists, belongs to the organization `team.organizationPublicId` names, and that organization is linked to the team that owns the repository's namespace. A repository whose namespace no team owns accepts no `team` entry. Such entries used to be stored. Migration: name a group of an organization linked to the repository's owning team in `team.organizationPublicId` and `team.groupPublicId`, or remove the `team` entry.
* **Added.** The [`pull_request.unpublished`](/build/agents-window/api/origin#events) webhook event reports an open pull request becoming a draft again. It carries the same [payload](/build/agents-window/api/origin#pull-request-events) as `pull_request.published` and requires [`repository:pull_requests:read`](/build/agents-window/api/origin#scopes).
* **Added.** [`pull_request.base_ref.updated`](/build/agents-window/api/origin#events) payloads include `previousBase`, the base `ref` and `sha` the pull request had before it was retargeted. The other [pull request events](/build/agents-window/api/origin#pull-request-events) omit it.
* **Added.** Push rulesets accept the `max_file_size` rule type, which rejects a push that introduces a file larger than its `maxFileSizeBytes` parameter, from 1 to 104857600 (100 MiB). The whole push is rejected, and files the repository already stores aren't judged again. Because the rule covers a whole push, only a `push_repository` ruleset accepts it. Set it with [Create Ruleset](/build/agents-window/api/origin#create-ruleset) or [Update Ruleset](/build/agents-window/api/origin#update-ruleset).
* **Added.** `pull_request` rules accept `requiredReviewers`, teams whose members must approve a pull request. Each entry names a Grok Build group by `team.organizationPublicId` and `team.groupPublicId` and sets `minimumApprovals`, from 1 to 50, defaulting to 1. Only approvals from the group's members count toward it, and a listed team that later stops resolving blocks every merge the rule covers. Set it with [Create Ruleset](/build/agents-window/api/origin#create-ruleset) or [Update Ruleset](/build/agents-window/api/origin#update-ruleset), which return `InvalidArgument` (HTTP 400) when the save adds a team the repository can't require.

## October 13, 2026

* **Added.** [Enable Pull Request Auto Merge](/build/agents-window/api/origin#enable-pull-request-auto-merge) turns on auto-merge, so Origin merges a pull request on the caller's behalf once it's mergeable, and a stacked pull request once it's also the lowest open one in its stack: `PUT /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/auto_merge`. The optional body sets the `mergeMethod`, under the same rules as [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request), and the merge commit's `commitTitle` and `commitMessage`. Calling it while auto-merge is on re-arms it for the caller with that call's options, and a closed or merged pull request returns `FailedPrecondition` (HTTP 400). Requires [`repository:contents:write`](/build/agents-window/api/origin#scopes), isn't available to installation user tokens, and costs 5 points. The endpoint is in preview.
* **Added.** [Disable Pull Request Auto Merge](/build/agents-window/api/origin#disable-pull-request-auto-merge) turns auto-merge off, and succeeds when it isn't on: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/auto_merge`. Requires [`repository:pull_requests:write`](/build/agents-window/api/origin#scopes) and costs 5 points. The endpoint is in preview.
* **Added.** Pull requests carry `autoMerge` while auto-merge is on: who turned it on and when, in `enabledBy` and `enabledAt`, the `mergeMethod` it lands with, and any `commitTitle` and `commitMessage` it was given. Returned by [List Pull Requests](/build/agents-window/api/origin#list-pull-requests), [Get Pull Request](/build/agents-window/api/origin#get-pull-request), [Update Pull Request](/build/agents-window/api/origin#update-pull-request), and [Enable Pull Request Auto Merge](/build/agents-window/api/origin#enable-pull-request-auto-merge). The field is in [preview](/build/agents-window/api/origin#preview).
* **Added.** The [`pull_request.merge_when_ready.enabled`](/build/agents-window/api/origin#events) and `pull_request.merge_when_ready.disabled` webhook events report auto-merge turning on, and turning off without a merge; a merge that auto-merge lands delivers `pull_request.merged`. The [disabled payload](/build/agents-window/api/origin#pull-request-auto-merge-disabled) carries the `disabledReason`, such as `manual`, `merge_failed`, or `pull_request_closed`, and `disabledBy` when a principal turned it off. Both events require [`repository:pull_requests:read`](/build/agents-window/api/origin#scopes) and are in [preview](/build/agents-window/api/origin#preview).
* **Added.** [Add Pull Request Labels](/build/agents-window/api/origin#add-pull-request-labels) and [Set Pull Request Labels](/build/agents-window/api/origin#set-pull-request-labels) accept `createMissing`. When it's `true`, a name with no exact match reuses the one label that matches it ignoring case, or else creates a label with color `ededed`, and the response's `createdLabels` lists the labels the request created. Setting it requires [`repository:labels:write`](/build/agents-window/api/origin#scopes) in addition to `repository:pull_requests:write`, and each label created costs 5 more points.
* **Added.** `pull_request` rules accept `allowedMergeMethods`, the merge methods a pull request can land with on a targeted branch: `merge`, `squash`, or both. Set it with [Create Ruleset](/build/agents-window/api/origin#create-ruleset) or [Update Ruleset](/build/agents-window/api/origin#update-ruleset). While an `active` rule sets it, [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) returns `FailedPrecondition` (HTTP 400) for any other `mergeMethod`, and a merge that doesn't name a method lands with an allowed one.
* **Changed.** A `429` [rate limit](/build/agents-window/api/origin#exceeding-the-limit) response sends `Retry-After` as the seconds left in the window plus one, from 2 to 60, where it always sent 60. It's still 60 when Origin can't read the window, and `X-RateLimit-Reset` still advertises a full 60-second window.
* **Changed.** When [Add Pull Request Labels](/build/agents-window/api/origin#add-pull-request-labels) or [Set Pull Request Labels](/build/agents-window/api/origin#set-pull-request-labels) names labels that don't exist, the `NotFound` (HTTP 404) error lists every unknown name, where it used to name only the first.

## October 12, 2026

* **Breaking.** In a repository that allows merge commits, [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) returns `FailedPrecondition` (HTTP 400) with every `mergeMethod`, and nothing merges, when the pull request's `version.baseSha`, as [Get Pull Request](/build/agents-window/api/origin#get-pull-request) returns it, has diverged from its base branch. A pull request is left that way when its parent is squash-merged and it's retargeted onto the branch the parent landed on. For a stack, Origin checks the lowest unmerged pull request. Such a merge used to land against Git's merge base, which might bring back changes the pull request removed. [Get Pull Request Mergeability](/build/agents-window/api/origin#get-pull-request-mergeability) reports the condition as a `needs_restack` blocker. Migration: rebase the pull request's own commits onto its base branch and push them before you call Merge Pull Request.
* **Added.** A [user confirmation link](/build/agents-window/api/origin/acting-as-users#send-the-user-to-origin) can name your app with `client_id` instead of one installation with `installation_id`. Origin resolves it to the app's active installations in the namespaces the user belongs to: one continues as that installation's link, several let the user pick a namespace, and none shows that the app isn't installed in any namespace the user belongs to. A link that carries both parameters uses `installation_id`, and its `client_id` must be the app the installation belongs to. The [confirmation receipt](/build/agents-window/api/origin/acting-as-users#confirmation-receipt)'s `installation_id` and `namespace_id` name the installation the user chose.
* **Changed.** An [installation URL](/build/agents-window/api/origin#installation) also requests [`repository:members:read`](/build/agents-window/api/origin#scopes) when the app's `defaultScopes`, as [Get App](/build/agents-window/api/origin#get-app) returns them, include it, even if the URL's `scope` doesn't name it. The consent page lists it with the other scopes the workspace admin approves. This covers URLs written before Origin split the scope out of `repository:metadata:read` on [October 3](/build/agents-window/api/origin/changelog#oct-3-2026), whose new installations didn't receive it.

## October 9, 2026

* **Breaking.** Pull request, review, comment, and reaction actors name the account behind an action Grok Build takes, such as a Bugbot review, an Automations run, an environment build, or a hosted agent, instead of the shared `origin-cursor-managed-actor` app ID. Such an actor is a `serviceAccount` with its `sa_…` `id` and a `type` such as `bugbot`, `automations`, `env_builds`, or `agent_serve`, plus the `displayName` `Cursor` for Grok Build's own accounts. Grok Build's own app is an `app` with its `app_…` `id` and `displayName`, and a user acting through one of these service accounts carries it in `performedVia`. The change covers pull request `author` on [List Pull Requests](/build/agents-window/api/origin#list-pull-requests), [Get Pull Request](/build/agents-window/api/origin#get-pull-request), [Create Pull Request](/build/agents-window/api/origin#create-pull-request), [Update Pull Request](/build/agents-window/api/origin#update-pull-request), and [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request); comment `author` and `reactions[].reactor` on [List Pull Request Comments](/build/agents-window/api/origin#list-pull-request-comments), [Get Pull Request Comment](/build/agents-window/api/origin#get-pull-request-comment), [Create Pull Request Comment](/build/agents-window/api/origin#create-pull-request-comment), and [Update Pull Request Comment](/build/agents-window/api/origin#update-pull-request-comment); and review `author` and `dismissal.dismissedBy` on [List Pull Request Reviews](/build/agents-window/api/origin#list-pull-request-reviews), [Create Pull Request Review](/build/agents-window/api/origin#create-pull-request-review), [Update Pull Request Review](/build/agents-window/api/origin#update-pull-request-review), and [Dismiss Pull Request Review](/build/agents-window/api/origin#dismiss-pull-request-review). Webhook payloads and check runs already named these accounts. Migration: stop matching `origin-cursor-managed-actor`, identify these actors by `serviceAccount.id` or `serviceAccount.type` instead, and pass the `sa_…` or `app_…` ID from a response as `author` to [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) to filter by them.

## October 8, 2026

* **Breaking.** [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) returns `FailedPrecondition` (HTTP 400), and nothing merges, when the pull request's base branch is the head branch of another open or draft pull request that it isn't stacked on. For a stack, the base that counts is the one the merge lands on. Such a merge used to land on the other pull request's branch. The repository's default branch is exempt, as is a base branch that an `active` `push_branch` ruleset with a `deletion` rule names in `includedRefNames`. [Get Pull Request Mergeability](/build/agents-window/api/origin#get-pull-request-mergeability) reports the condition as a `needs_restack` blocker. Migration: merge the pull request that owns the base branch first, or stack this pull request on it by setting `parentPullRequest` with [Update Pull Request](/build/agents-window/api/origin#update-pull-request).
* **Added.** [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) accepts `labels`, repeated once per label name, and returns only pull requests that carry every named label. A comma is part of a name, so `labels=bug,security` names one label. More than 10 names, a name longer than 50 characters, or a name that isn't a label in the repository returns an empty list. The parameter is in [preview](/build/agents-window/api/origin#preview).

## October 6, 2026

* **Breaking.** A user actor's `email` is an empty string in pull request, review, comment, check run, requested reviewer, and merge eligibility responses, such as `author.user.email` on [Get Pull Request](/build/agents-window/api/origin#get-pull-request), unless the caller holds [`repository:members:read`](/build/agents-window/api/origin#scopes) on the repository. [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) rejects an email `author` filter from such a caller with `PermissionDenied` (HTTP 403). Webhook payloads still carry emails. Installations that held `repository:metadata:read` when Origin split out `repository:members:read` on [October 3](/build/agents-window/api/origin/changelog#oct-3-2026) already hold it. Migration: request `repository:members:read` to read user emails and filter by author email, or filter List Pull Requests by the author's `user_…` ID.
* **Breaking.** [Get Repo](/build/agents-window/api/origin#get-repo) returns `mirror` only to a caller holding [`repository:mirror:read`](/build/agents-window/api/origin#scopes) on the repository and omits it otherwise, as it does for a native repository. Installations and apps' default scopes don't include that scope, so an installation reads `mirror` from Get Repo only after a workspace admin approves `repository:mirror:read` for it. Migration: request `repository:mirror:read` to keep reading `mirror` from Get Repo.
* **Breaking.** An actor field that names a deleted user or service account is absent from responses and webhook payloads. A deleted service account used to appear with its `id` alone, and a deleted user made reads that include their pull requests, reviews, or comments, such as [List Pull Requests](/build/agents-window/api/origin#list-pull-requests), fail with an internal error (HTTP 500). Requested-reviewer lists leave out a deleted reviewer, and Origin doesn't send [`pull_request.reviewer.added`](/build/agents-window/api/origin#events), `pull_request.reviewer.removed`, or `pull_request.reviewer.rerequested` for one. App actors are unchanged, and a deleted service account in `performedVia` still appears with its `id`. Migration: treat an absent actor field, such as a pull request's `author`, as an account that no longer exists, instead of reading a service account `id` from it.
* **Breaking.** Origin deletes a pull request's merge preview at `refs/pull/{pullNumber}/merge` when the pull request closes or merges, so [Get Git Ref](/build/agents-window/api/origin#get-git-ref) returns `404` for it afterward instead of the last preview. Reopening the pull request prepares a new one. Migration: read a merged pull request's `mergeCommitSha` instead of its merge preview, and treat a `404` for a closed pull request's preview as expected.
* **Added.** Merge-conflict blockers from [Get Pull Request Mergeability](/build/agents-window/api/origin#get-pull-request-mergeability) carry `conflictsBeyondDownstack`, `true` when the pull request conflicts on a path the pull request below it in the stack doesn't. It's `false` when every conflict is inherited from below, and `true` when the pull request isn't in a stack. Read it with `inheritedFromDownstack`, which can be `true` while the pull request also conflicts on its own paths. The endpoint is in preview.
* **Changed.** [`repository.pushed`](/build/agents-window/api/origin#events) payloads carry a `pusher` that is a since-deleted app with its `id` alone, where they used to omit `pusher`, so the push looked like one Origin performed itself. `pusher` is absent for Origin's own pushes and when Origin couldn't resolve the pusher as it recorded the event, such as a user whose account no longer exists.
* **Changed.** [Create Label](/build/agents-window/api/origin#create-label) and [Update Label](/build/agents-window/api/origin#update-label) return `InvalidArgument` (HTTP 400) for a `name` or `description` that contains a NUL character, where the request used to fail with an internal error (HTTP 500).

## October 3, 2026

* **Breaking.** [Get Repository Collaborator Permission](/build/agents-window/api/origin#get-repository-collaborator-permission) requires [`repository:members:read`](/build/agents-window/api/origin#scopes) instead of `repository:metadata:read`, [Sync Mirror](/build/agents-window/api/origin#sync-mirror) requires [`repository:mirror:sync`](/build/agents-window/api/origin#scopes) instead of `repository:contents:read`, and [Get Mirror Transition Job](/build/agents-window/api/origin/migrations#get-mirror-transition-job) and [Get Active Mirror Transition Job](/build/agents-window/api/origin/migrations#get-active-mirror-transition-job) require [`repository:mirror:read`](/build/agents-window/api/origin/migrations#scopes) instead of `repository:metadata:read`. Origin granted each new scope wherever the scope it was split from was already granted, except that installations and apps' default scopes didn't receive `repository:mirror:sync` or `repository:mirror:read`. Existing integrations keep access to Get Repository Collaborator Permission, and an app can call Sync Mirror once a workspace admin approves `repository:mirror:sync` for its installation. Migration: request `repository:members:read` instead of relying on `repository:metadata:read` to call Get Repository Collaborator Permission, and request `repository:mirror:sync` alongside `repository:contents:read` to call Sync Mirror.
* **Breaking.** [Create Ruleset](/build/agents-window/api/origin#create-ruleset) and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) reject a `bypassActors[].user.id` that isn't a public user ID (`user_…`) with `InvalidArgument` (HTTP 400), including the numeric Grok Build user ID they still accepted after the [October 2](/build/agents-window/api/origin/changelog#oct-2-2026) move to public IDs. Migration: send the `user_…` ID that actor payloads and ruleset reads return in `bypassActors[].user.id`, in place of the numeric Grok Build user ID.
* **Breaking.** [Update Pull Request](/build/agents-window/api/origin#update-pull-request) returns `FailedPrecondition` (HTTP 400) when it reopens a closed pull request whose base branch no longer exists, even when the same request also sets `base`, and the pull request stays closed. Origin used to reopen it onto the missing branch. Migration: restore or push the base branch before you reopen the pull request, then send `base` in a later request if it should merge into another branch.
* **Breaking.** [Detach Repo Mirror](/build/agents-window/api/origin/migrations#detach-repo-mirror) waits up to 2 minutes for an `inbound` repository's last fetch from GitHub before it detaches, so a fetch already underway can't overwrite pushes made after the detach; it used to detach at once. If that fetch fails or Origin can't resolve the repository's GitHub remote, the request returns `FailedPrecondition` (HTTP 400), and other failures, such as a timeout, return an error such as `Unavailable` (HTTP 503) or `DeadlineExceeded` (HTTP 408). In each case the repository stays mirrored. Migration: allow up to 2 minutes for Detach Repo Mirror on an `inbound` repository, and when it fails, fix the cause it names and retry.
* **Added.** [Prepare Pull Request Merge Ref](/build/agents-window/api/origin#prepare-pull-request-merge-ref) brings a pull request's test merge at `refs/pull/{pullNumber}/merge` up to date with the current tip of its base branch, which Origin doesn't do on its own when only the base moves: `POST /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/merge_ref`. It returns a `state` of `mergeable` with the refreshed `mergeCommitSha`, `conflicted`, or `pending`, which means call again, and accepts an optional `expectedHeadSha` that rejects the call if the head moved. The endpoint is in preview, requires [`repository:pull_requests:read`](/build/agents-window/api/origin#scopes), and costs 10 points.
* **Added.** Service account actors carry `type`, the product the account acts for (`bugbot`, `automations`, `agent_serve`, `agent`, `grok_bot`, or `env_builds`), and `displayName`, the name Grok Build shows for it, such as `Cursor` for Grok Build's own accounts or a Grok bot's name. `type` is absent when the account no longer exists or Grok Build can't describe it, and `displayName` when the account has no product name. Both appear wherever a response or webhook payload carries a `serviceAccount` actor, including `performedVia.serviceAccount`, such as `author.serviceAccount` on [Get Pull Request](/build/agents-window/api/origin#get-pull-request) and `actor.serviceAccount` on [Get Check Run](/build/agents-window/api/origin#get-check-run). See [Resource references](/build/agents-window/api/origin#resource-references).

## October 2, 2026

* **Breaking.** [List Rulesets](/build/agents-window/api/origin#list-rulesets), [Get Ruleset](/build/agents-window/api/origin#get-ruleset), [Create Ruleset](/build/agents-window/api/origin#create-ruleset), and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) return `bypassActors[].user.id` as the user's public ID (`user_…`), where they used to return the numeric Grok Build user ID encoded as a decimal string. Create Ruleset and Update Ruleset accept the public ID in `bypassActors[].user.id`. Migration: read and store `bypassActors[].user.id` as a `user_…` ID, and send `user_…` IDs when you create or update a ruleset.
* **Breaking.** [Dismiss Pull Request Review](/build/agents-window/api/origin#dismiss-pull-request-review) also requires [`repository:contents:write`](/build/agents-window/api/origin#scopes) to dismiss another reviewer's `request_changes` review, because a change request can block merge; without it, the request returns `PermissionDenied` (HTTP 403). Migration: add `repository:contents:write` alongside `repository:pull_requests:reviews:write` to the scopes your app requests if it dismisses `request_changes` reviews it didn't submit.
* **Added.** [Add Pull Request Comment Reaction](/build/agents-window/api/origin#add-pull-request-comment-reaction) adds the caller's reaction to a pull request comment: `POST /v1/origin/repos/{ownerSlug}/{repoName}/pulls/comments/{commentId}/reactions`. The body's `emoji` can be any emoji of up to 32 Unicode code points and is stored exactly as sent. Adding a reaction the caller already holds succeeds without change, and with an installation access token the reactor is the installation's app. Requires [`repository:pull_requests:reviews:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** [Remove Pull Request Comment Reaction](/build/agents-window/api/origin#remove-pull-request-comment-reaction) removes the caller's reaction, named by its percent-encoded emoji: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/pulls/comments/{commentId}/reactions/{emoji}`. Removing a reaction the caller doesn't hold succeeds without change, and other principals' reactions are never affected. Requires [`repository:pull_requests:reviews:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** Pull request comments carry `reactions`, every reaction on the comment, oldest first, each with its `emoji`, `content`, and `reactor`. Returned by [List Pull Request Comments](/build/agents-window/api/origin#list-pull-request-comments), [Get Pull Request Comment](/build/agents-window/api/origin#get-pull-request-comment), [Create Pull Request Comment](/build/agents-window/api/origin#create-pull-request-comment), and [Update Pull Request Comment](/build/agents-window/api/origin#update-pull-request-comment), and carried, empty, by the [`pull_request.comment.created` payload](/build/agents-window/api/origin#pull-request-comment). The `reaction` in the [reaction payloads](/build/agents-window/api/origin#pull-request-comment-reaction-events) also carries `emoji`.
* **Added.** Repository, pull request, and commit responses carry `webUrl`, the resource's web URL on Grok Build, absent when Origin can't form a link. Returned for repositories by [List Repos](/build/agents-window/api/origin#list-repos), [Get Repo](/build/agents-window/api/origin#get-repo), [Create Repo](/build/agents-window/api/origin#create-repo), [Update Repo](/build/agents-window/api/origin#update-repo), [List App Installation Repositories](/build/agents-window/api/origin#list-app-installation-repositories), and [Transition Repo Mirror](/build/agents-window/api/origin/migrations#transition-repo-mirror); for pull requests by [List Pull Requests](/build/agents-window/api/origin#list-pull-requests), [Get Pull Request](/build/agents-window/api/origin#get-pull-request), [Create Pull Request](/build/agents-window/api/origin#create-pull-request), [Update Pull Request](/build/agents-window/api/origin#update-pull-request), and [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request); and for commits by [Get Commit](/build/agents-window/api/origin#get-commit), [List Commits](/build/agents-window/api/origin#list-commits), [List Pull Request Commits](/build/agents-window/api/origin#list-pull-request-commits), and [Compare Commits](/build/agents-window/api/origin#compare-commits). The [`repository.created`](/build/agents-window/api/origin#repository-created) and [`repository.metadata.updated`](/build/agents-window/api/origin#repository-metadata-updated) payloads and the [`pull_request.*` lifecycle payloads](/build/agents-window/api/origin#pull-request-events) carry it too.
* **Added.** User actors in responses and webhook payloads can carry `performedVia.serviceAccount`, naming the service account the user acted through, such as their personal Grok bot. As with `performedVia.app`, the user is still the actor. See [Resource references](/build/agents-window/api/origin#resource-references).
* **Changed.** [`pull_request.comment.reaction.added`](/build/agents-window/api/origin#events) is delivered only when the reaction is new: re-placing a reaction the reactor already holds delivers nothing, where it used to deliver the event again.
* **Changed.** A comment reaction can be any emoji, so a reaction's `content` carries `CONTENT_UNSPECIFIED` for an emoji outside the eight that have a name, where every reaction used to have one of those names. Read `emoji` instead. Carried by the [reaction payloads](/build/agents-window/api/origin#pull-request-comment-reaction-events) and returned in `reactions[].content` on pull request comment responses.

## October 1, 2026

* **Added.** [Replace Inbound IP Allowlist Entries](/build/agents-window/api/origin#replace-inbound-ip-allowlist-entries) replaces a namespace's allowlist entries with a complete set in one call: `POST /v1/origin/namespaces/{namespaceSlug}/inbound-ip-allowlist/entries:replace`. The body takes `entries[]`, up to 1,000, each with a required `cidr` and optional `description` and `enabled`. Entries are matched by `cidr` as typed after trimming, with no normalization: a matched entry keeps its `id`, a new CIDR is added, and an omitted one is deleted. The call doesn't change whether the list is enforced. An optional `etag` rejects the call with `Aborted` (HTTP 409 Conflict) if the entries changed since that read, and an empty `entries` requires `allowEmpty`. The response carries the `allowlist` plus `addedCount`, `updatedCount`, `removedCount`, and `unchangedCount`. Requires a Grok Build user credential holding [`namespace:settings:write`](/build/agents-window/api/origin#scopes) and costs 10 points per call.
* **Added.** [Get Inbound IP Allowlist](/build/agents-window/api/origin#get-inbound-ip-allowlist) and [Update Inbound IP Allowlist](/build/agents-window/api/origin#update-inbound-ip-allowlist) responses carry `etag`, a version of the entry set that changes whenever an entry is added, updated, or removed.
* **Changed.** The reference and the [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) describe the `parameters` of every ruleset rule type, where they used to say only that the shape depends on `ruleType`. The specification adds one schema per shape, such as `RulesetPullRequestParameters` and `RulesetRequireStatusChecksParameters`, linked from `parameters` on rules in the requests and responses of [Create Ruleset](/build/agents-window/api/origin#create-ruleset), [Update Ruleset](/build/agents-window/api/origin#update-ruleset), [Get Ruleset](/build/agents-window/api/origin#get-ruleset), and [List Rulesets](/build/agents-window/api/origin#list-rulesets). `ruleType` lists all nine rule types: `pull_request`, `require_status_checks`, and `require_branch_up_to_date` for `merge_branch` rulesets, and `deletion`, `non_fast_forward`, `block_direct_updates`, `block_merges`, `ref_name_pattern`, and `required_linear_history` for push rulesets. The wire format and validation are unchanged.

## September 30, 2026

* **Breaking.** [Create Ruleset](/build/agents-window/api/origin#create-ruleset) and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) reject a rule whose `ruleType` never runs in the ruleset's `kind` with `InvalidArgument` (HTTP 400), where Origin used to store the rule and never run it. A `merge_branch` ruleset accepts only the merge rule types `pull_request`, `require_status_checks`, and `require_branch_up_to_date`, and a `push_branch`, `push_tag`, or `push_repository` ruleset accepts only push-time rule types, such as `deletion` and `non_fast_forward`. An update that sends back a mismatched rule the ruleset already stores fails the same way. Migration: move each rule into a ruleset of the kind it runs in before you call Create Ruleset or Update Ruleset.
* **Added.** [Get Repository Collaborator Permission](/build/agents-window/api/origin#get-repository-collaborator-permission) returns a user's permission on a repository, combined from their direct and inherited grants: `GET /v1/origin/repos/{ownerSlug}/{repoName}/collaborators/{userId}/permission`. The response carries the `user` and a `permission` of `read`, `write`, `admin`, or `custom`, which can differ from the permission of any single grant. A user whose grants give no access, an ID that names no active account, a mirrored repository, and a repository you can't see all return `404`. Requires [`repository:metadata:read`](/build/agents-window/api/origin#scopes) and costs 1 point.
* **Added.** [Post Check Run](/build/agents-window/api/origin#post-check-run) and [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs) accept an optional `baseSha` naming the base a check run was evaluated against: a pull request version's `baseSha`, as a 40- or 64-character hex SHA. It is part of the check suite and check run identity, so the same `externalId` and `key` posted against another base creates a separate attempt instead of overwriting the first, and a later post must repeat the value to address the same attempt. An empty string returns `InvalidArgument` (HTTP 400); omit the field for a base-agnostic run.
* **Added.** Check suite and check run responses carry `baseSha`, in lowercase, when the reporting app supplied one, and omit it for a base-agnostic attempt. Returned by [Post Check Run](/build/agents-window/api/origin#post-check-run), [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs), [Get Check Run](/build/agents-window/api/origin#get-check-run), [Rerequest Check Run](/build/agents-window/api/origin#rerequest-check-run), [Get Check Suite](/build/agents-window/api/origin#get-check-suite), [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite), [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit), and [List Check Suites For Commit](/build/agents-window/api/origin#list-check-suites-for-commit), and carried by the [check run payloads](/build/agents-window/api/origin#check-run-events), the [check run rerequested payload](/build/agents-window/api/origin#check-run-rerequested), and the [check run annotations payload](/build/agents-window/api/origin#check-run-annotations).
* **Changed.** Every team namespace can use and enforce an [inbound IP allowlist](/build/agents-window/api/origin#inbound-ip-allowlist), superseding the [September 29](/build/agents-window/api/origin/changelog#sep-29-2026) note that allowlists are available only on team namespaces with the feature enabled. The allowlist endpoints still return `FailedPrecondition` (HTTP 400) for a namespace that no team owns.
* **Changed.** A namespace's inbound IP allowlist holds up to 1,000 entries, up from the 100 announced on [September 29](/build/agents-window/api/origin/changelog#sep-29-2026). [Get Inbound IP Allowlist](/build/agents-window/api/origin#get-inbound-ip-allowlist) returns at most 1,000 entries, and [Add Inbound IP Allowlist Entry](/build/agents-window/api/origin#add-inbound-ip-allowlist-entry) returns `InvalidArgument` (HTTP 400) once the list already holds 1,000.
* **Changed.** [Create Commit From Files](/build/agents-window/api/origin#create-commit-from-files) drops `<`, `>`, and newline characters from the `name` and `email` of `author` and `committer`, as `git commit` does, where a value containing them used to fail the request with an internal error (HTTP 500). A `name` or `email` made only of those characters returns `InvalidArgument` (HTTP 400).

## September 29, 2026

### Pull requests

* **Breaking.** [Update Pull Request](/build/agents-window/api/origin#update-pull-request) no longer reopens a pull request whose head branch was deleted. Setting `state` to `"open"` or `draft` to `false` on such a closed pull request returns `FailedPrecondition` (HTTP 400) and leaves it closed, where Origin used to reopen it with no head to read. Migration: push the head branch again before you reopen the pull request.
* **Changed.** `potentialMergeCommit.baseSha` is also set when `state` is `merge_conflict`, naming the base branch tip the merge conflicted with; it used to be set only when `state` is `prepared`. A conflict recorded before this change can still omit it. Returned in `version` by [List Pull Requests](/build/agents-window/api/origin#list-pull-requests), [Get Pull Request](/build/agents-window/api/origin#get-pull-request), [Create Pull Request](/build/agents-window/api/origin#create-pull-request), [Update Pull Request](/build/agents-window/api/origin#update-pull-request), and [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request), and carried by the [`pull_request.*` lifecycle payloads](/build/agents-window/api/origin#pull-request-events).

### Grants and SSH certificate authorities

* **Breaking.** The namespace grant and SSH certificate authority endpoints moved from `/v1/origin/owners/{ownerSlug}` to `/v1/origin/namespaces/{namespaceSlug}`, and the old paths were removed: [List Namespace Grants](/build/agents-window/api/origin#list-namespace-grants), [Upsert Namespace Grant](/build/agents-window/api/origin#upsert-namespace-grant), [Delete Namespace Grant](/build/agents-window/api/origin#delete-namespace-grant), [List SSH Certificate Authorities](/build/agents-window/api/origin#list-ssh-certificate-authorities), [Add SSH Certificate Authority](/build/agents-window/api/origin#add-ssh-certificate-authority), [Delete SSH Certificate Authority](/build/agents-window/api/origin#delete-ssh-certificate-authority), and [Set SSH Certificate Requirement](/build/agents-window/api/origin#set-ssh-certificate-requirement). Migration: replace `/v1/origin/owners/{ownerSlug}` with `/v1/origin/namespaces/{namespaceSlug}` in those requests, keeping the same slug and the rest of the path.

### Check runs

* **Added.** Check runs can report the status `failing` for a run that keeps going after a step failed. Post it with [Post Check Run](/build/agents-window/api/origin#post-check-run) or [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs) without a `conclusion`, then post `completed` with the verdict when the run ends. A `failing` run counts as pending for required checks and expires at its `deadlineAt` like an `in_progress` run. [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit) accepts `failing` as a `status` filter, and check run responses and webhook payloads can carry it.
* **Added.** [`repository.check_run.updated`](/build/agents-window/api/origin#events) is delivered when a post updates a check run without completing it, leaving it `queued`, `in_progress`, or `failing`, including a post that reopens a completed run. It carries the [check run payload](/build/agents-window/api/origin#check-run-events) and requires [`repository:checks:read`](/build/agents-window/api/origin#scopes).
* **Added.** [`repository.check_run.annotations.created`](/build/agents-window/api/origin#events) is delivered once for each [Create Check Run Annotations](/build/agents-window/api/origin#create-check-run-annotations) request, with the annotations it added. It carries the [check run annotations payload](/build/agents-window/api/origin#check-run-annotations) and requires [`repository:checks:read`](/build/agents-window/api/origin#scopes).
* **Changed.** A post that reopens a timed-out check run as `in_progress` or `failing` without its own `deadlineAt` gets the expired deadline back, so the next sweep times the run out again and delivers another [`repository.check_run.completed`](/build/agents-window/api/origin#events). Before, the reopened run kept no deadline and never expired. To keep the run open, send a new `deadlineAt` with that post; see [Timestamps and deadlines](/build/agents-window/api/origin#timestamps-and-deadlines).

### Commits and contents

* **Added.** [List Commits](/build/agents-window/api/origin#list-commits) accepts `since` and `until`, RFC 3339 timestamps that bound the listing by committer time, inclusive and in whole seconds. A malformed timestamp, or a `since` later than `until`, returns `InvalidArgument` (HTTP 400). The listing ends once it reads 100 consecutive commits older than `since`, as `git log --since` does, and page tokens carry both bounds.

### Inbound IP allowlist

* **Added.** [Get Inbound IP Allowlist](/build/agents-window/api/origin#get-inbound-ip-allowlist) returns a namespace's inbound IP allowlist: `GET /v1/origin/namespaces/{namespaceSlug}/inbound-ip-allowlist`. The response carries `enabled`, whether the list is enforced, and `entries[]`, every entry oldest first, each with `id`, `cidr`, `description`, `enabled`, and `createdAt`. It is not paginated, since a namespace lists at most 100 entries. Allowlists are available on team namespaces that have the feature enabled, and any other namespace returns `FailedPrecondition` (HTTP 400). Requires [`namespace:settings:read`](/build/agents-window/api/origin#scopes).
* **Added.** [Update Inbound IP Allowlist](/build/agents-window/api/origin#update-inbound-ip-allowlist) turns enforcement of a namespace's allowlist on or off and returns the allowlist: `PATCH /v1/origin/namespaces/{namespaceSlug}/inbound-ip-allowlist`. The body takes a required `enabled` boolean. While the list is enforced and at least one entry is enabled, git over SSH and HTTPS, the API, and file downloads on the namespace's repositories accept a Grok Build user's requests only from listed addresses; app JWTs, installation access tokens, installation user tokens, and service accounts are not restricted. Enabling a list that excludes the caller's own address returns `InvalidArgument` (HTTP 400), and setting the current value succeeds without change. Every allowlist write from a caller the enforced list already excludes returns `PermissionDenied` (HTTP 403). Requires a Grok Build user credential holding [`namespace:settings:write`](/build/agents-window/api/origin#scopes).
* **Added.** [Add Inbound IP Allowlist Entry](/build/agents-window/api/origin#add-inbound-ip-allowlist-entry) adds an IPv4 or IPv6 address or CIDR range to a namespace's allowlist and returns the entry with its `id`: `POST /v1/origin/namespaces/{namespaceSlug}/inbound-ip-allowlist/entries`. The body takes a required `cidr`, stored as spelled after trimming surrounding whitespace, an optional `description` of at most 255 characters, and an optional `enabled` that defaults to `true`. A `cidr` the namespace already lists with the same spelling returns `AlreadyExists` (HTTP 409 Conflict). A `cidr` that does not parse, a `/0` range, or an add to a list already holding 100 entries returns `InvalidArgument` (HTTP 400). Requires a Grok Build user credential holding [`namespace:settings:write`](/build/agents-window/api/origin#scopes).
* **Added.** [Get Inbound IP Allowlist Entry](/build/agents-window/api/origin#get-inbound-ip-allowlist-entry) returns one entry by its `id`: `GET /v1/origin/namespaces/{namespaceSlug}/inbound-ip-allowlist/entries/{entryId}`. An ID the namespace does not list returns `404`. Requires [`namespace:settings:read`](/build/agents-window/api/origin#scopes).
* **Added.** [Delete Inbound IP Allowlist Entry](/build/agents-window/api/origin#delete-inbound-ip-allowlist-entry) removes an entry by its `id` and answers `204 No Content`: `DELETE /v1/origin/namespaces/{namespaceSlug}/inbound-ip-allowlist/entries/{entryId}`. Removing the entry that admits the caller's own address from an enforced list returns `InvalidArgument` (HTTP 400). Requires a Grok Build user credential holding [`namespace:settings:write`](/build/agents-window/api/origin#scopes).
* **Added.** [Update Inbound IP Allowlist Entry](/build/agents-window/api/origin#update-inbound-ip-allowlist-entry) changes an entry's `cidr`, `description`, or `enabled` by its `id`: `PATCH /v1/origin/namespaces/{namespaceSlug}/inbound-ip-allowlist/entries/{entryId}`. Omitted fields keep their stored values, and a new `cidr` keeps the entry's `id`. A `cidr` another entry already uses returns `AlreadyExists` (HTTP 409 Conflict), and a change that would exclude the caller's own address from an enforced list returns `InvalidArgument` (HTTP 400). Requires a Grok Build user credential holding [`namespace:settings:write`](/build/agents-window/api/origin#scopes).

## September 27, 2026

* **Changed.** A `pageSize` sent with a `pageToken` applies to that page, and a follow-up request that omits `pageSize` keeps the previous page size, on [List App Installation Repositories](/build/agents-window/api/origin#list-app-installation-repositories), [List Branches](/build/agents-window/api/origin#list-branches), [List Check Run Annotations](/build/agents-window/api/origin#list-check-run-annotations), [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit), [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite), [List Check Suites For Commit](/build/agents-window/api/origin#list-check-suites-for-commit), [List Commit Files](/build/agents-window/api/origin#list-commit-files), [List Comparison Files](/build/agents-window/api/origin#list-comparison-files), [List Namespace Grants](/build/agents-window/api/origin#list-namespace-grants), [List Namespaces](/build/agents-window/api/origin#list-namespaces), [List Pull Request Files](/build/agents-window/api/origin#list-pull-request-files), [List Pull Requests](/build/agents-window/api/origin#list-pull-requests), [List Repos](/build/agents-window/api/origin#list-repos), and [List Repository Grants](/build/agents-window/api/origin#list-repository-grants). List Commit Files and List Comparison Files no longer reject a follow-up `pageSize` that differs from the first request's with `InvalidArgument` (HTTP 400), and the other endpoints no longer ignore it. Everything else a page token is bound to, such as the repository, filters, and pull request version, still has to match.

## September 26, 2026

* **Changed.** [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) returns `Aborted` (HTTP 409 Conflict) instead of `InvalidArgument` (HTTP 400) when the pull request's head branch has moved past the head of its latest `version`, for example because a push landed that Origin had not yet recorded as a new version. That is the same answer as a stale `expectedHeadSha`. Nothing merges in either case; retry after [Get Pull Request](/build/agents-window/api/origin#get-pull-request) reports the new head in `version.headSha`.

## September 25, 2026

* **Breaking.** Comment thread and review version references no longer carry `createdAt`; they hold only the version's `number`, `headSha`, and `baseSha`. This covers `thread.version` on [List Pull Request Comments](/build/agents-window/api/origin#list-pull-request-comments), [Get Pull Request Comment](/build/agents-window/api/origin#get-pull-request-comment), [Create Pull Request Comment](/build/agents-window/api/origin#create-pull-request-comment), and [Update Pull Request Comment](/build/agents-window/api/origin#update-pull-request-comment), `version` on [Update Pull Request Thread](/build/agents-window/api/origin#update-pull-request-thread), `pullRequestVersion` on [List Pull Request Reviews](/build/agents-window/api/origin#list-pull-request-reviews), [Create Pull Request Review](/build/agents-window/api/origin#create-pull-request-review), [Update Pull Request Review](/build/agents-window/api/origin#update-pull-request-review), and [Dismiss Pull Request Review](/build/agents-window/api/origin#dismiss-pull-request-review), and the same fields in the [`pull_request.comment.created`](/build/agents-window/api/origin#pull-request-comment) and [`pull_request.review.*`](/build/agents-window/api/origin#pull-request-review-events) payloads. Migration: wherever your integration read `createdAt` from a thread or review version, read it from `version` on [Get Pull Request](/build/agents-window/api/origin#get-pull-request) or on the [`pull_request.*` lifecycle payload](/build/agents-window/api/origin#pull-request-events) that recorded that version, matching on `number`.
* **Added.** Pull request versions carry `potentialMergeCommit`, Origin's test merge of that version: `state` is `prepared`, `merge_conflict`, or `unknown`, and a `prepared` merge adds the merge commit's `sha` and the base branch tip `baseSha` it was built on. Returned in `version` by [List Pull Requests](/build/agents-window/api/origin#list-pull-requests), [Get Pull Request](/build/agents-window/api/origin#get-pull-request), [Create Pull Request](/build/agents-window/api/origin#create-pull-request), [Update Pull Request](/build/agents-window/api/origin#update-pull-request), and [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request), and carried by the [`pull_request.*` lifecycle payloads](/build/agents-window/api/origin#pull-request-events), so a webhook receiver learns the merge preview without calling [Get Git Ref](/build/agents-window/api/origin#get-git-ref). An event carries the value as of its emission, so treat `unknown` as not yet known and re-read the pull request.
* **Added.** [Create Installation User Token](/build/agents-window/api/origin#create-installation-user-token) mints an installation user token that acts on behalf of an eligible namespace member: `POST /v1/origin/app/installations/{installationId}/user_access_tokens`. Requires an app JWT and an installation granted [`namespace:user_tokens:write`](/build/agents-window/api/origin#scopes). Name the user with `userId` or `userEmail`; optional `scopes` and `repositoryIds` narrow access. The token expires within 15 minutes and never outlives the app JWT.
* **Added.** User actors can include `performedVia.app` with the app's `id` and optional `displayName` when an app acted on the user's behalf. The field is absent for direct user actions and can be absent when delegation data is unavailable. See [Acting on behalf of users](/build/agents-window/api/origin/acting-as-users).
* **Added.** [List Commits](/build/agents-window/api/origin#list-commits) accepts `authorEmails` and `committerEmails` filters, with up to 100 distinct emails each. Matching ignores case and surrounding whitespace; a commit must match both lists when both are set. A filtered page can be empty and still have a `nextPageToken`, so keep paging until the token is empty.
* **Changed.** A cancelled check run no longer displaces a passing result. A `completed` post with the conclusion `cancelled` to a run that is `completed` with `success`, `neutral`, or `skipped` is ignored as stale whatever its `externalUpdatedAt`, so [Post Check Run](/build/agents-window/api/origin#post-check-run) and [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs) answer `200` with the stored run and the `outcome` `ignored_stale`. A cancellation posted as a new run attempt or suite attempt ranks below the passing attempt instead, so [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit), [List Check Suites For Commit](/build/agents-window/api/origin#list-check-suites-for-commit), [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite), and [Get Pull Request Mergeability](/build/agents-window/api/origin#get-pull-request-mergeability) keep reporting the pass. A newer failure still replaces a pass, and a cancellation still applies over a failing or pending run; [Attempts and the current attempt](/build/agents-window/api/origin#attempts-and-the-current-attempt) has the full rule.

## September 24, 2026

* **Added.** [List Namespaces](/build/agents-window/api/origin#list-namespaces) lists the namespaces you can list repositories in, ordered by slug: `GET /v1/origin/namespaces`. The candidates are your teams' namespaces, your personal namespace, and the namespaces holding repositories you were granted, and only those on which you hold [`namespace:repositories:read`](/build/agents-window/api/origin#scopes) are returned, so each `namespace.slug` is a valid `ownerSlug` for [List Repos](/build/agents-window/api/origin#list-repos). Each entry's `viewerCanCreateRepositories` says whether [Create Repo](/build/agents-window/api/origin#create-repo) in that namespace would pass authorization and the owner's plan and settings checks for you. Pages hold 30 namespaces by default and at most 100. Requires a Grok Build user credential and no scope, and costs 1 point; app tokens, installation tokens, and service accounts receive `PermissionDenied` (HTTP 403).

## September 23, 2026

* **Changed.** Reopening a pull request through [Update Pull Request](/build/agents-window/api/origin#update-pull-request) records a new `version` when the head moved while the pull request was closed, and sends [`pull_request.head_ref.pushed`](/build/agents-window/api/origin#events). The pull request previously kept the head it had when it was closed until the branch was pushed again. The recorded version carries its own `headSha`, `baseSha`, and diff stats, the same shape a push records. Merged pull requests are unaffected.
* **Changed.** An abbreviated commit SHA sent to [Get Commit](/build/agents-window/api/origin#get-commit) or [List Commit Files](/build/agents-window/api/origin#list-commit-files) resolves the same way as on [Get Git Commit](/build/agents-window/api/origin#get-git-commit): among commit objects only, so a prefix that names exactly one commit resolves even when a blob or tree in the repository shares it. The [September 22](/build/agents-window/api/origin/changelog#sep-22-2026) entry named Get Git Commit only. [Get Blob](/build/agents-window/api/origin#get-blob) and [Get Tag](/build/agents-window/api/origin#get-tag) are unchanged.

## September 22, 2026

### Apps and installations

* **Changed.** [Create Installation Access Token](/build/agents-window/api/origin#create-installation-access-token) states that a token expires after at most 15 minutes and never later than the app JWT that requested it. Read `expiresAt` on the response and mint a new token when it passes rather than assuming a duration.

### Pull requests

* **Breaking.** [Create Pull Request](/build/agents-window/api/origin#create-pull-request) no longer accepts `parentPullNumber`. A request that carries it returns `InvalidArgument` (HTTP 400) naming `parent_pull_number` rather than creating the pull request, so a client that kept sending it fails loudly instead of silently losing the stack parent. Migration: send `parentPullRequest` with a `number` member wherever your integration sent `parentPullNumber`.
* **Added.** [Delete Pull Request Comment](/build/agents-window/api/origin#delete-pull-request-comment) deletes a pull request comment by its Origin id: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/pulls/comments/{commentId}`. The comment's author can always delete it, and any other caller must hold write access to the repository through [`repository:contents:write`](/build/agents-window/api/origin#scopes) or receives `PermissionDenied` (HTTP 403). Deleting the last comment of a thread removes the thread, deleting any other comment leaves the thread in place, and the comment's reactions and edit history go with it. An unknown or already-deleted id returns `404`. Requires [`repository:pull_requests:reviews:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** Pull request responses carry a `stack` object holding the stack's `id` and the `parentPullRequest` this pull request is stacked on, absent when the pull request is not part of a stack and carrying no `parentPullRequest` on the root. Returned by [List Pull Requests](/build/agents-window/api/origin#list-pull-requests), [Get Pull Request](/build/agents-window/api/origin#get-pull-request), [Create Pull Request](/build/agents-window/api/origin#create-pull-request), [Update Pull Request](/build/agents-window/api/origin#update-pull-request), and [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request), and carried by every [`pull_request.*` payload](/build/agents-window/api/origin#pull-request-events). A delivered `stack` reflects the topology as of the event that carried it.
* **Added.** [Create Pull Request](/build/agents-window/api/origin#create-pull-request) and [Update Pull Request](/build/agents-window/api/origin#update-pull-request) accept `parentPullRequest`, a selector that names the stack parent by `number` or `id`, or removes it with `clear` on update. Exactly one member must be set; an empty selector, `clear: false`, more than one member, and `clear` on create each return `InvalidArgument` (HTTP 400). The edit is an association only: no branch is rewritten, and `base` is retargeted only when it is sent too. Update applies it after `base`, so an explicit parent wins over the one a base change derives.
* **Added.** [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) accepts `stackId`, a stack id as returned in `stack.id`. It returns that stack's members in the requested sort order rather than stack order, so rebuild the stack from each member's `stack.parentPullRequest`. `state` still defaults to `open`, so pass `state=all` for the whole stack. A well-formed id that names no stack in the repository returns an empty list, and any other value returns `InvalidArgument` (HTTP 400).
* **Added.** [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) accepts `headSha`, the full 40- or 64-character hex SHA of a pull request head. It selects a pull request when any of its recorded versions has that head commit, current or superseded, so compare `head.sha` on each result to tell the two apart. Malformed, abbreviated, and unknown SHAs match nothing.

### Check runs

* **Deprecated.** `checkRuns` on the [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs) response is deprecated in favor of `results[].checkRun` and will be removed in a future release. It is still populated with the same runs in the same order. Migration: read `results[].checkRun`, which pairs each stored run with the `outcome` of its write.
* **Added.** [Post Check Run](/build/agents-window/api/origin#post-check-run) returns `outcome` and [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs) returns `results[]`, one per posted run in request order, each pairing `checkRun` with its own `outcome`. The value is `created`, `updated`, `unchanged`, or `ignored_stale`. A post whose `externalUpdatedAt` is older than the stored stamp is ignored, and a post that repeats the stored values changes nothing; both answer `200` with the stored run and leave `updatedAt` where it was, so `outcome` is the only way to tell them apart.
* **Changed.** A check run annotation `message` can contain Markdown, which Origin renders on the pull request page in both the Checks tab and the inline card on Changes. Accepted on [Post Check Run](/build/agents-window/api/origin#post-check-run) and [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs), and returned by [Get Check Run](/build/agents-window/api/origin#get-check-run). `rawDetails` stays plain text.

### Git data

* **Changed.** [Get Git Commit](/build/agents-window/api/origin#get-git-commit) resolves an abbreviated `sha` only when it has at least 5 hex characters, and only among commit objects; the request fails when no commit or more than one commit carries the abbreviation. Full SHAs, branches, tags, and `HEAD` resolve as before.

### SSH certificate authorities

* **Added.** [List SSH Certificate Authorities](/build/agents-window/api/origin#list-ssh-certificate-authorities) lists the SSH certificate authorities an owner trusts for git over SSH, newest first, together with `requireCertificates`, whether the owner requires certificates: `GET /v1/origin/owners/{ownerSlug}/ssh-certificate-authorities`. The response is not paginated, and each `certificateAuthorities[]` entry carries `id`, `name`, `keyType`, `fingerprint`, `publicKey`, and `createdAt`. Requires [`namespace:settings:read`](/build/agents-window/api/origin#scopes).
* **Added.** [Add SSH Certificate Authority](/build/agents-window/api/origin#add-ssh-certificate-authority) adds an authority the owner trusts and returns it: `POST /v1/origin/owners/{ownerSlug}/ssh-certificate-authorities`. The body takes a required `publicKey`, one OpenSSH `authorized_keys` line whose key type is `ssh-ed25519`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, `ecdsa-sha2-nistp521`, or `ssh-rsa` with a modulus of at least 2048 bits, and a required `name` of at most 255 characters. A certificate, an unsupported key type, or a shorter RSA key returns `InvalidArgument` (HTTP 400); a key the owner already lists returns `AlreadyExists` (HTTP 409 Conflict), with the check scoped to the owner rather than to Origin as a whole; and an owner that is not team-owned returns `FailedPrecondition` (HTTP 400). Requires a Grok Build user credential holding [`namespace:settings:write`](/build/agents-window/api/origin#scopes).
* **Added.** [Delete SSH Certificate Authority](/build/agents-window/api/origin#delete-ssh-certificate-authority) removes an authority from the owner and answers `204 No Content`: `DELETE /v1/origin/owners/{ownerSlug}/ssh-certificate-authorities/{certificateAuthorityId}`. Every certificate the authority signed stops working, and while the owner requires certificates its last authority cannot be removed, which returns `FailedPrecondition` (HTTP 400). Requires a Grok Build user credential holding [`namespace:settings:write`](/build/agents-window/api/origin#scopes).
* **Added.** [Set SSH Certificate Requirement](/build/agents-window/api/origin#set-ssh-certificate-requirement) sets whether the owner requires SSH certificates: `POST /v1/origin/owners/{ownerSlug}/ssh-certificate-authorities:setRequirement`. The body takes a required `requireCertificates` boolean, and the response carries the owner's `requireCertificates` setting. While required, git over SSH on the owner's repositories accepts only certificates from the owner's authorities, so SSH keys registered by users and user API keys over HTTPS are refused. Requiring certificates with no listed authority returns `FailedPrecondition` (HTTP 400), and setting the current value succeeds without change. Requires a Grok Build user credential holding [`namespace:settings:write`](/build/agents-window/api/origin#scopes).

### Webhooks

* **Added.** [`pull_request.comment.reaction.added`](/build/agents-window/api/origin#events) and [`pull_request.comment.reaction.removed`](/build/agents-window/api/origin#events) are subscribable webhook events, delivered when a reaction is placed on or removed from a pull request comment. Their shared [payload](/build/agents-window/api/origin#pull-request-comment-reaction-events) carries the `pullRequest` reference, a `comment` reference with its `thread`, and the `reaction` with its `content` and `reactor`. An add is delivered at least once: re-placing a reaction the reactor already holds delivers the event again for the same comment, reactor, and content, so fold on that triple. Removing a reaction the reactor does not hold delivers nothing.
* **Changed.** The [`pull_request.label.removed`](/build/agents-window/api/origin#events) [payload](/build/agents-window/api/origin#pull-request-label-events) carries `actor`, the principal that removed the label, when known. The [September 19](/build/agents-window/api/origin/changelog#sep-19-2026) entry described `actor` as set on `pull_request.label.added` only; it is set on both events when the principal is known.

## September 19, 2026

* **Added.** [Delete Git Ref](/build/agents-window/api/origin#delete-git-ref) deletes a branch reference: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/git/refs/{ref}`. The path names the branch as `refs/heads/<branch>` or `heads/<branch>`, and only branch references can be deleted. A branch that does not exist returns `404`; the repository default branch, a branch a deletion rule protects, and a repository whose contents are mirrored from another host each return `FailedPrecondition` (HTTP 400); and a branch whose tip moves while the delete is in flight returns `FailedPrecondition` (HTTP 400) or `Aborted` (HTTP 409 Conflict), so retry to delete the new tip. Pull requests whose head is the deleted branch are closed, as after a pushed deletion. Requires [`repository:contents:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** [`pull_request.label.added`](/build/agents-window/api/origin#events) and [`pull_request.label.removed`](/build/agents-window/api/origin#events) are subscribable webhook events, delivered when a label is assigned to or unassigned from a pull request. Their shared [payload](/build/agents-window/api/origin#pull-request-label-events) carries the `pullRequest` reference and the `label` snapshot, plus an `actor` naming the principal that assigned the label on `pull_request.label.added` only. Deleting a label definition delivers one `pull_request.label.removed` for every pull request that carried the label.

## September 18, 2026

* **Breaking.** [Create App](/build/agents-window/api/origin#create-app) enforces the namespace owner's eligibility to write to Origin, the same precondition [Create Repo](/build/agents-window/api/origin#create-repo) has always carried. A request against a namespace whose user owner is not on a Pro, Pro Student, Pro+, Ultra, or Start plan, or whose team owner lacks an active paid team plan, sits on Privacy Mode (Legacy), or has Origin turned off by a team admin, returns `FailedPrecondition` (HTTP 400) where it previously created the app. The check reads the namespace owner's eligibility, not the calling user's. Migration: create apps only under namespaces whose owner can write to Origin, and handle `FailedPrecondition` wherever your integration assumed the app was created.
* **Changed.** Origin allows a webhook receiver 10 seconds to answer a delivery, up from five seconds. The deadline covers DNS resolution, the connection, the TLS handshake, and the time to the response, and it applies to every attempt; an attempt that passes it counts as a transport error and is retried on the schedule [Retries](/build/agents-window/api/origin#retries) documents.

## September 17, 2026

* **Breaking.** [Get Repo Tarball](/build/agents-window/api/origin#get-repo-tarball) archives wrap the repository tree in a single top-level directory named `{ownerSlug}-{repoName}-{shortSha}/`, where `shortSha` is the first 7 hex characters of the resolved commit, matching the layout of GitHub's tarball endpoint. Archive entries previously sat at the root of the tar with no wrapping directory. Migration: strip one leading path component when extracting, for example `tar --strip-components=1`, wherever your integration read entries from the tar root.
* **Breaking.** [Get App](/build/agents-window/api/origin#get-app) requires [`namespace:apps:read`](/build/agents-window/api/origin#scopes) on the app's owning namespace in place of `app:settings:read`, the scope announced with the endpoint in the [September 12](/build/agents-window/api/origin/changelog#sep-12-2026) entry. `app:settings:read` no longer authorizes anything and has been removed from the scope catalog; `app:settings:write` is unchanged and still covers [Update App](/build/agents-window/api/origin#update-app), [Add App Signing Key](/build/agents-window/api/origin#add-app-signing-key), and [Revoke App Signing Key](/build/agents-window/api/origin#revoke-app-signing-key). Migration: hold `namespace:apps:read` on the app's owning namespace wherever your integration held `app:settings:read`.
* **Added.** [List App Installation Repositories](/build/agents-window/api/origin#list-app-installation-repositories) accepts `filter`, a case-insensitive substring match applied to repository names and owner namespaces. A single-slash `owner/repo` value matches each half against its corresponding field, leading and trailing whitespace is ignored, and an empty value applies no filter. A page token carries the filter it was minted under, so send the same filter when requesting subsequent pages.
* **Changed.** The [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) no longer stamps `format: enum` on string enum schemas. The key is not a registered OpenAPI or JSON Schema format, it duplicated the `enum` list beside it, and generators that mapped it to a named type emitted code that does not compile. Schema names, enum values, and the JSON on the wire are unchanged; regenerate any client built from the specification to pick up the corrected types.

## September 16, 2026

* **Breaking.** The [`repository.check_run.created`](/build/agents-window/api/origin#events) and [`repository.check_run.completed`](/build/agents-window/api/origin#events) [payloads](/build/agents-window/api/origin#check-run-events) no longer carry a payload-level `actor`. It repeated the owning check suite's principal, which the same payload already delivers as `checkSuite.actor` and `checkRun.actor`. Migration: read `checkRun.actor`, which always equals the owning suite's `actor`, wherever your integration read the payload's top-level `actor`.
* **Breaking.** `caseInsensitive` and `wholeWord` on [Grep Contents](/build/agents-window/api/origin#grep-contents) apply only when `literal` is true. A regular-expression search ignores both booleans where it previously honored them, and a `query` of only `(?i)` returns `InvalidArgument` (HTTP 400). Migration: set `literal` to keep using the booleans, or for a regular-expression search write a leading `(?i)` and `\b` word bounds into `query` instead.
* **Breaking.** The [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) renames the `Thread` component schema to `CommentThread`. It is the response schema of [Update Pull Request Thread](/build/agents-window/api/origin#update-pull-request-thread) and the type of the `thread` object on a pull request comment. Field names, paths, operation IDs, and the JSON on the wire are unchanged, so an integration that reads the responses directly needs no change. Migration: regenerate any client built from the specification, and rename the type wherever generated code named `Thread`.
* **Added.** [Add App Installation Repositories](/build/agents-window/api/origin#add-app-installation-repositories) adds repositories to an existing installation's selection and returns the updated installation: `POST /v1/origin/namespaces/{namespaceSlug}/installations/{installationId}/repos`. The body takes a required `repoIds` array, which is unioned with the current selection; the write never changes the installation's scopes, and a request whose repositories are all already granted succeeds without changing anything. A repository outside the namespace, an installation that already covers every repository in the namespace, a suspended installation, and one that predates per-installation scopes each return `FailedPrecondition` (HTTP 400) and grant nothing. Requires a Grok Build user credential holding [`namespace:installations:write`](/build/agents-window/api/origin#scopes) and costs 5 points. A first install still needs a namespace admin's consent in the browser.
* **Added.** Charged [Git over HTTPS](/build/agents-window/api/origin#git-https-authentication) responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Used`, with `X-RateLimit-Resource` set to `git`. Git meters a budget of its own, separate from the REST budget that [Rate limits](/build/agents-window/api/origin#rate-limits) documents as `core`. An over-budget Git request returns `429` with `Retry-After` and `X-RateLimit-Reset`, and an unmetered request carries no rate-limit headers.
* **Changed.** [Upsert Repository Grant](/build/agents-window/api/origin#upsert-repository-grant) and [Upsert Namespace Grant](/build/agents-window/api/origin#upsert-namespace-grant) accept a `group` principal owned by the resource owner's own team, alongside the organization groups they already took. A team's own groups are grantable even when that team is not linked to an organization, while a group owned by another team still returns `FailedPrecondition` (HTTP 400). The [Grants](/build/agents-window/api/origin/grants-api) page covers the principal kinds.

## September 15, 2026

* **Breaking.** [Create Repo](/build/agents-window/api/origin#create-repo) requires [`namespace:repositories:create`](/build/agents-window/api/origin#scopes) in place of `namespace:new_repository:write`, which no longer authorizes anything and has been removed from the scope catalog. Migration: request `namespace:repositories:create` on the Grok Build user credential wherever your integration requested `namespace:new_repository:write`.
* **Added.** [Get Pull Request Mergeability](/build/agents-window/api/origin#get-pull-request-mergeability) returns whether a pull request can be merged and, when it cannot, the typed conditions blocking it: `GET /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/mergeability`. `verdict` is `mergeable` or `blocked`, and each entry in `blockers` carries a `kind`, a human-readable `message`, and the pull request in `evaluatedPullRequests` it belongs to, so a stacked pull request's verdict covers every pull request from the stack root through it. An optional `expectedHeadSha` guard returns `Aborted` (HTTP 409 Conflict) when the head has moved, and a mirrored repository or a stack of more than 200 pull requests returns `FailedPrecondition` (HTTP 400). The operation is published in preview, marked `x-cursor-visibility: PREVIEW` in the [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml), so decode its responses with unknown fields and unknown enum values tolerated and treat an unrecognized `verdict` as `blocked`. Requires [`repository:pull_requests:read`](/build/agents-window/api/origin#scopes) and costs 10 points.
* **Added.** [Grep Contents](/build/agents-window/api/origin#grep-contents) searches the text of a repository's files at a ref and returns the lines that match: `POST /v1/origin/repos/{ownerSlug}/{repoName}:grep`. The body takes a required `query`, read as a regular expression unless `literal` is set, plus `ref`, `caseInsensitive`, `wholeWord`, `contextBefore` and `contextAfter` (values above 10 are reduced to 10), `filterPath`, the `includes` and `excludes` glob lists (at most 20 entries each), and `maxResults` (default and maximum 1000). Each returned entry is one line, and the response is complete only when `limitHit` is false; there is no pagination. Requires [`repository:contents:read`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** Check-run `status` has a fourth value, `rerequested`, and [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit) accepts it as a `status` filter. It marks a completed run whose re-run was asked for and the owning app has not answered yet, so treat it as pending and render it like `queued`. It appears on [Get Check Run](/build/agents-window/api/origin#get-check-run), [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite), [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit), and [Rerequest Check Run](/build/agents-window/api/origin#rerequest-check-run). Only Origin sets it: a [Post Check Run](/build/agents-window/api/origin#post-check-run) or [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs) request carrying it returns `InvalidArgument` (HTTP 400).
* **Added.** [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) accepts `sortBy`, either `created` (creation order, the default) or `updated` (time of last update). `direction` sorts along `sortBy` and still defaults to `desc`, and a page token carries the sort it was minted under, so a token replayed under the other sort is rejected.
* **Added.** [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) accepts `state=merged`, which lists merged pull requests only. `closed` keeps covering every pull request that is no longer open, merged ones included, so existing callers see the same results.
* **Changed.** [Rerequest Check Run](/build/agents-window/api/origin#rerequest-check-run) sets the run's `status` to `rerequested`, superseding the [September 11](/build/agents-window/api/origin/changelog#sep-11-2026) note that the call never changes the run's own `status` or `conclusion`. The run's `conclusion` and timings keep describing the superseded attempt, so read `conclusion` only when `status` is `completed`. The run still reads as pending in [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite) and [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit) until the owning app answers, which also clears `rerequestedAt` and stores the posted status.
* **Changed.** The [`repository.check_run.rerequested`](/build/agents-window/api/origin#events) [payload](/build/agents-window/api/origin#check-run-rerequested) carries `checkRun.status` as `rerequested` rather than `completed`, with `checkRun.conclusion` and the timings still describing the superseded attempt. Migration is the same as for the endpoint: branch on `checkRun.status` and read `checkRun.conclusion` only when it is `completed`.

## September 12, 2026

### Pull requests

* **Breaking.** [Create Pull Request](/build/agents-window/api/origin#create-pull-request) and [Update Pull Request](/build/agents-window/api/origin#update-pull-request) reject a `base` that does not name an existing branch. A commit SHA, a tag name, or a branch that does not exist returns `InvalidArgument` (HTTP 400) and names the fully qualified ref Origin looked for, where the same request previously created or retargeted the pull request. Such a pull request could never have its merge ref prepared, so CI never received one and the pull request could not be merged. Migration: pass a branch name, short as `main` or fully qualified as `refs/heads/main`, and retarget any existing pull request whose base is a commit SHA or a tag.

### Apps

* **Added.** [Create App](/build/agents-window/api/origin#create-app) registers an app owned by a namespace: `POST /v1/origin/namespaces/{namespaceSlug}/apps`. The body takes a required `displayName` and `publicKey`, the PEM SPKI Ed25519 public key the app signs its JWTs with, plus optional `webhookUrl`, `events`, `description`, `websiteUrl`, `installationRedirectUris`, and `defaultScopes`. Apps are created private, and an invalid webhook URL, event type, redirect URI, or scope returns `InvalidArgument` (HTTP 400). Requires [`namespace:apps:create`](/build/agents-window/api/origin#scopes) on a Grok Build user credential and costs 10 points.
* **Added.** [List Namespace Apps](/build/agents-window/api/origin#list-namespace-apps) lists the apps a namespace owns, newest first: `GET /v1/origin/namespaces/{namespaceSlug}/apps`. Entries carry display metadata only, `id`, `displayName`, and `description`; read one app's webhook configuration with [Get App](/build/agents-window/api/origin#get-app). Requires [`namespace:apps:read`](/build/agents-window/api/origin#scopes) and costs 1 point.
* **Added.** [Get App](/build/agents-window/api/origin#get-app) returns one app's full configuration by id: `GET /v1/origin/apps/{appId}`. This is the publisher's management read; [Get Authenticated App](/build/agents-window/api/origin#get-authenticated-app) remains the self-read an app makes with its own JWT. Requires [`app:settings:read`](/build/agents-window/api/origin#scopes) and costs 1 point.
* **Added.** [Update App](/build/agents-window/api/origin#update-app) writes an app's settings: `PATCH /v1/origin/apps/{appId}`. `displayName`, `webhookUrl`, `description`, and `websiteUrl` are plain fields, while `events`, `installationRedirectUris`, and `defaultScopes` are clean-replace wrappers that swap the whole list. Omitted fields are left unchanged, a request that sets nothing returns `InvalidArgument` (HTTP 400), and sending `webhookUrl` as an empty string disables delivery and cancels the app's pending deliveries for good. Requires [`app:settings:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** [Add App Signing Key](/build/agents-window/api/origin#add-app-signing-key) registers another Ed25519 public key for an app: `POST /v1/origin/apps/{appId}/signing_keys`. The response carries the `kid` to use as the JWT key ID, the base64url-encoded SHA-256 digest of the key's SPKI DER encoding. A key that is already registered returns `AlreadyExists` (HTTP 409 Conflict), and a key beyond the app's active-key limit returns `FailedPrecondition` (HTTP 400). Requires [`app:settings:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** [Revoke App Signing Key](/build/agents-window/api/origin#revoke-app-signing-key) retires a signing key and answers `204 No Content`: `DELETE /v1/origin/apps/{appId}/signing_keys/{kid}`. App JWTs signed with the revoked key stop authenticating, and revoking the last active key returns `FailedPrecondition` (HTTP 400). Requires [`app:settings:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** App responses carry `namespaceSlug`, the slug of the namespace that owns the app, along with `description`, `websiteUrl`, and `defaultScopes`. Returned by [Get Authenticated App](/build/agents-window/api/origin#get-authenticated-app), [Get App](/build/agents-window/api/origin#get-app), [Create App](/build/agents-window/api/origin#create-app), and [Update App](/build/agents-window/api/origin#update-app).

### Grants

* **Added.** [List Repository Grants](/build/agents-window/api/origin#list-repository-grants) lists the users, groups, and owning-team groups holding a permission granted directly on a repository: `GET /v1/origin/repos/{ownerSlug}/{repoName}/grants`. Permissions inherited from the repository's owner are not included, and a principal that no longer resolves is omitted, so a page can hold fewer grants than `pageSize`. Requires [`repository:settings:read`](/build/agents-window/api/origin#scopes) and costs 1 point.
* **Added.** [Upsert Repository Grant](/build/agents-window/api/origin#upsert-repository-grant) sets the permission one principal holds directly on a repository: `POST /v1/origin/repos/{ownerSlug}/{repoName}/grants`. The body names exactly one of `user`, `group`, or `teamGroup` and a `permission` of `read`, `write`, or `admin`; `custom` returns `InvalidArgument` (HTTP 400), and a principal outside the owner's team or organization returns `FailedPrecondition` (HTTP 400). Repeating a grant the principal already holds succeeds without change. Requires [`repository:settings:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** [Delete Repository Grant](/build/agents-window/api/origin#delete-repository-grant) removes the permission one principal holds directly on a repository and answers `204 No Content`: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/grants`. Permissions inherited from the owner are unaffected, so an owning-team group falls back to its owner-level default, and removing a permission the principal does not hold directly succeeds without change. Requires [`repository:settings:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** [List Namespace Grants](/build/agents-window/api/origin#list-namespace-grants) lists who has been granted access to an owner: `GET /v1/origin/owners/{ownerSlug}/grants`. Each grant carries the permission it confers on every repository under the owner, admin grants are listed first, and grants made on individual repositories are excluded. Requires [`namespace:settings:read`](/build/agents-window/api/origin#scopes) and costs 1 point.
* **Added.** [Upsert Namespace Grant](/build/agents-window/api/origin#upsert-namespace-grant) sets the permission one principal holds directly on an owner: `POST /v1/origin/owners/{ownerSlug}/grants`. `permission` takes `PERMISSION_READ`, `PERMISSION_CONTRIBUTOR`, `PERMISSION_WRITE`, or `PERMISSION_ADMIN`, and `PERMISSION_CUSTOM` returns `InvalidArgument` (HTTP 400). A principal outside the owning team or its organization, or a write that would leave the owner without an admin, returns `FailedPrecondition` (HTTP 400). Requires [`namespace:settings:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** [Delete Namespace Grant](/build/agents-window/api/origin#delete-namespace-grant) removes the permission one principal holds directly on an owner and answers `204 No Content`: `DELETE /v1/origin/owners/{ownerSlug}/grants`. Per-repository grants are unaffected, and a removal that would leave the owner without an admin returns `FailedPrecondition` (HTTP 400). Requires [`namespace:settings:write`](/build/agents-window/api/origin#scopes) and costs 5 points.

### Installations

* **Added.** Installations carry `suspendedAt`, set while the installation is suspended and omitted while it is active, and `deletedAt`, carried only on the [`installation.deleted`](/build/agents-window/api/origin#events) webhook snapshot. Returned by [Get App Installation](/build/agents-window/api/origin#get-app-installation) and [List App Installations](/build/agents-window/api/origin#list-app-installations).
* **Added.** The five [`installation.*`](/build/agents-window/api/origin#events) payloads carry `installation.appId`, the same value as the payload's own `app.id`, and `installation.updatedAt` on [`installation.created`](/build/agents-window/api/origin#installation-created) and [`installation.updated`](/build/agents-window/api/origin#installation-updated). Every field of an installation as [Get App Installation](/build/agents-window/api/origin#get-app-installation) returns it is present on the snapshot under the same name and type, so one decoder reads both.

## September 11, 2026

### Check runs

* **Breaking.** The [`repository.check_run.rerequested`](/build/agents-window/api/origin#events) [payload](/build/agents-window/api/origin#check-run-rerequested) no longer carries a top-level `rerequestedBy`. The principal that asked for the re-run sits on the embedded check run as `checkRun.rerequestedBy` instead, superseding the [September 10](/build/agents-window/api/origin/changelog#sep-10-2026) note that the payload carries the requester beside the repository, suite, and run. Migration: read `checkRun.rerequestedBy` wherever your receiver read the payload's own `rerequestedBy`.
* **Added.** [Rerequest Check Run](/build/agents-window/api/origin#rerequest-check-run) asks the app that reported a check run to run it again: `POST /v1/origin/repos/{ownerSlug}/{repoName}/check-runs/{checkRunId}/rerequest` with an empty body. The run must be `completed`, must carry `isRerequestable`, must be the current attempt for its `key`, and must sit on the current head of an open pull request; anything else returns `FailedPrecondition` (HTTP 400), and a second request while one is outstanding returns `AlreadyExists` (HTTP 409 Conflict). The call never changes the run's own `status` or `conclusion`. Any principal holding [`repository:contents:write`](/build/agents-window/api/origin#scopes) can re-request any re-requestable run, whichever app reported it, and the call costs 5 points.
* **Added.** Check runs carry `rerequestedBy`, the principal that asked for the re-run, present whenever `rerequestedAt` is set and cleared together with it. Returned by [Get Check Run](/build/agents-window/api/origin#get-check-run), [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite), [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit), [Post Check Run](/build/agents-window/api/origin#post-check-run), [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs), and [Rerequest Check Run](/build/agents-window/api/origin#rerequest-check-run).
* **Changed.** `rerequestedAt` marks an outstanding re-request rather than a one-time stamp. Origin clears it when the owning app answers by posting a fresh run for the same head SHA and `key`, either a new run under a new `externalId` or an update of the re-requested run under the same one, after which the run can be re-requested again. This supersedes the [September 10](/build/agents-window/api/origin/changelog#sep-10-2026) note that a check run is re-requested at most once, so a receiver can see more than one [`repository.check_run.rerequested`](/build/agents-window/api/origin#events) event for the same run; keep deduplicating redeliveries on the event id.
* **Changed.** A re-requested check run stays in [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite) and [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit) and reads as pending, with `rerequestedAt` set and its superseded `status` and `conclusion` unchanged, instead of dropping out of both listings until the app answers. A required check blocks merging as a pending check rather than as a missing one. This supersedes the [September 10](/build/agents-window/api/origin/changelog#sep-10-2026) note that the run drops out until a new attempt arrives.

### Repositories

* **Added.** [Update Repo](/build/agents-window/api/origin#update-repo) writes repository settings: `PATCH /v1/origin/repos/{ownerSlug}/{repoName}`. The body takes optional `defaultBranch`, `allowMergeCommit`, `allowSquashMerge`, `deleteBranchOnMerge`, and `visibility` fields, and omitted fields are left unchanged. `allowMergeCommit` and `allowSquashMerge` must be sent together with at least one of them `true`; `defaultBranch` and `deleteBranchOnMerge` return `FailedPrecondition` (HTTP 400) on a repository that pulls from an upstream source; and a request that sets nothing returns `InvalidArgument` (HTTP 400). The groups apply in a fixed order rather than atomically, so a rejected group leaves the groups before it applied. Requires [`repository:settings:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** [Transition Repo Mirror](/build/agents-window/api/origin/migrations#transition-repo-mirror) starts a mirror-state change and returns the job tracking it: `POST /v1/origin/repos/{ownerSlug}/{repoName}/mirror:transition`. The body takes a required `transition` of `initial_to_inbound`, which retries a mirror whose initial sync failed, and the repository holds a transitioning mirror status while the job runs. A repository that is not in the transition's expected start state, or that already has an active job, returns `FailedPrecondition` (HTTP 400). Requires [`repository:mirror:write`](/build/agents-window/api/origin#scopes) on a Grok Build user credential that also administers the repository on the mirror's upstream source, and costs 10 points.
* **Added.** [Detach Repo Mirror](/build/agents-window/api/origin/migrations#detach-repo-mirror) permanently disconnects a mirrored repository from its upstream source and answers `204 No Content`: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/mirror`. The repository keeps its contents and becomes a native repository, syncing stops in both directions, and the mirror's deploy credential is deleted. Detaching an already-detached repository succeeds without effect, while a repository that never had a mirror returns `FailedPrecondition` (HTTP 400). Requires [`repository:mirror:delete`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** [Get Mirror Transition Job](/build/agents-window/api/origin/migrations#get-mirror-transition-job) returns one transition job by id: `GET /v1/origin/repos/{ownerSlug}/{repoName}/mirror/transition-jobs/{jobId}`. A job reports its `transition`, a `status` of `queued`, `running`, `succeeded`, `failed_rolled_back`, `requires_attention`, or `superseded`, an `attemptCount`, and `lastErrorCode` and `lastErrorMessage` once it has failed. Its `phase` string is display detail that gains new values as the transition process evolves, so poll `status` for completion instead of matching on `phase`. Requires [`repository:metadata:read`](/build/agents-window/api/origin/migrations#scopes) and costs 1 point.
* **Added.** [Get Active Mirror Transition Job](/build/agents-window/api/origin/migrations#get-active-mirror-transition-job) returns the repository's in-progress transition job and its most recent terminal one: `GET /v1/origin/repos/{ownerSlug}/{repoName}/mirror/transition-jobs:active`. Both `activeJob` and `lastJob` are optional, so a repository that has never transitioned returns an empty object, and polling until `activeJob` disappears and then reading `lastJob` is what distinguishes a transition that finished from one that never ran. Requires [`repository:metadata:read`](/build/agents-window/api/origin/migrations#scopes) and costs 1 point.
* **Changed.** The mirror-state endpoint references moved to the [Origin Migration API](/build/agents-window/api/origin/migrations). Their HTTP contracts are unchanged, and the previous Origin API anchors link to the new reference.

## September 10, 2026

* **Added.** [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) accepts an optional `mergeMethod` of `merge` or `squash`, choosing whether the pull request lands as a merge commit or as a single squash commit. A method the repository does not allow is rejected with `FailedPrecondition` (HTTP 400), and any other value, `rebase` included, with `InvalidArgument` (HTTP 400). Omit it to keep the previous behavior: a merge commit when the repository allows one, otherwise a squash, and a squash when the base branch requires linear history.
* **Added.** Repository payloads carry `visibility`, which is `internal` or `private`, along with the `allowMergeCommit`, `allowSquashMerge`, and `deleteBranchOnMerge` booleans. All four are read-only and are returned by [Get Repo](/build/agents-window/api/origin#get-repo), [Create Repo](/build/agents-window/api/origin#create-repo), [List Repos](/build/agents-window/api/origin#list-repos), and [List App Installation Repositories](/build/agents-window/api/origin#list-app-installation-repositories).
* **Added.** Check runs carry `isRerequestable`, the reporting app's declaration that the run can be run again, and `rerequestedAt`, the timestamp of the re-request. Send `isRerequestable` on [Post Check Run](/build/agents-window/api/origin#post-check-run) and [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs); both fields come back there and on [Get Check Run](/build/agents-window/api/origin#get-check-run), [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite), and [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit). Declaring a run re-requestable commits your app to answering each re-request by posting a new run for the same head SHA and `key`.
* **Added.** [`repository.check_run.rerequested`](/build/agents-window/api/origin#events) is delivered when a completed check run is re-requested, and it reaches only the app that owns the run rather than every subscriber to the repository. Its [payload](/build/agents-window/api/origin#check-run-rerequested) carries the repository, the check suite, the stamped check run, and `rerequestedBy`, and it carries no pull request context, so resolve the pull request from `checkRun.sha`. Subscribing takes [`repository:checks:read`](/build/agents-window/api/origin#scopes). A check run is re-requested at most once, so deduplicate redeliveries on the event id.
* **Added.** Every webhook payload schema in the [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) carries an `x-origin-webhook-events` extension naming the [events](/build/agents-window/api/origin#events) it is delivered with, plus a curated sample payload as its schema `example`, and the new [Event payloads](/build/agents-window/api/origin#event-payloads) reference documents each payload's fields and sample payload, generated from those schemas in the same layout as the endpoint reference.
* **Changed.** A re-requested check run drops out of [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite) and [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit) until the app that owns it posts a new attempt or refreshes the existing one with a newer `externalUpdatedAt`. A required check therefore reads as missing and blocks merging while the re-request is outstanding. Read the excluded run by its own id with [Get Check Run](/build/agents-window/api/origin#get-check-run).

## September 9, 2026

* **Breaking.** An `inline` anchor whose line range runs past the end of the file is rejected with `InvalidArgument` (HTTP 400) on [Create Pull Request Comment](/build/agents-window/api/origin#create-pull-request-comment) and [Create Pull Request Review](/build/agents-window/api/origin#create-pull-request-review). The range is still not restricted to the diff's hunks, and it is checked against the file as it exists on the anchored side, which `left` reads at the base commit and `right` at the head; the error names the file's line count. On a review, one out-of-range anchor fails the whole request and publishes nothing. Migration: bound `inline.startLine` and `inline.endLine` to the anchored side's line count before writing, reading it from [Get Contents](/build/agents-window/api/origin#get-contents) when the anchor sits outside the diff's hunks.

## September 5, 2026

* **Added.** [Create Git Ref](/build/agents-window/api/origin#create-git-ref) creates a branch at an existing commit: `POST /v1/origin/repos/{ownerSlug}/{repoName}/git/refs`. It takes `ref` as `refs/heads/<branch>` or `heads/<branch>` and `sha` as the full hex SHA of a commit in the repository; tags and other reference namespaces return `InvalidArgument` (HTTP 400). Creating a branch that already points at `sha` returns the existing reference, and a branch that exists at another commit returns `AlreadyExists` (HTTP 409 Conflict). Requires [`repository:contents:write`](/build/agents-window/api/origin#scopes) and costs 5 points.
* **Added.** [Create Commit From Files](/build/agents-window/api/origin#create-commit-from-files) commits inline file changes to a branch and advances it: `POST /v1/origin/repos/{ownerSlug}/{repoName}/git/commits:createFromFiles`. Each `files[]` entry sets exactly one of `content` (with `encoding` `utf-8` or `base64` and `mode` `file`, `executable`, or `symlink`) and `delete`, and `expectedHeadSha` must match the branch tip, which becomes the new commit's parent. The response returns `sha`, `treeSha`, and `previousHeadSha`. One request carries at most 1,000 file changes, 8 MiB per file, and 32 MiB of content in total. Requires [`repository:contents:write`](/build/agents-window/api/origin#scopes) and costs 10 points.
* **Changed.** Webhook delivery retries a failed send seven times instead of six, and the first retry lands 5 seconds after the failure rather than 30 seconds. The full ladder is 5 seconds, 30 seconds, 1 minute, 2 minutes, 4 minutes, and 8 minutes, so a receiver that is down the whole time sees one more `POST` over roughly the same 16-minute window. Deduplicate the extra attempt on `webhook-id` the same way you deduplicate the rest.

## September 4, 2026

* **Breaking.** App metadata no longer carries `slug`. It is gone from the [Get Authenticated App](/build/agents-window/api/origin#get-authenticated-app) response, from every app actor that check, pull request, review, and comment operations return (`actor.app`, `author.app`, and `dismissal.dismissedBy.app`), from the `app` object on the five [`installation.*`](/build/agents-window/api/origin#events) webhook payloads, and from the [Ping Webhook](/build/agents-window/api/origin#ping-webhook) payload, superseding the [September 2](/build/agents-window/api/origin/changelog#sep-2-2026) note that app actors carry `displayName` alongside `id` and `slug`. An app actor was previously guaranteed to carry `slug`; it now carries `id` and the optional `displayName`. Migration: address apps by `id` and label them with `displayName` wherever your integration read `slug`.
* **Added.** [List Pull Request Comments](/build/agents-window/api/origin#list-pull-request-comments) accepts an optional `threadIds` query parameter that restricts the listing to comments in those threads, which is how you read one thread without paging a pull request's whole comment history. Duplicates are ignored, so the limit of 20 applies to distinct IDs, and a longer list or an empty ID returns `InvalidArgument` (HTTP 400). Page tokens embed the set they were minted under, so restart pagination when the filter changes.
* **Changed.** The `author` filter on [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) also accepts the exact email address of a user, matched case-insensitively, alongside the `user_…`, `app_…`, and `sa_…` actor IDs it already took. An email that resolves to no single user returns an empty list rather than an error, and an email previously returned `InvalidArgument` (HTTP 400). Apps and service accounts have no email identity, so only user authors can be selected that way, and actor IDs remain the identity these responses return.

## September 3, 2026

* **Added.** [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit) accepts optional `checkName` and `status` query parameters. `checkName` matches a check run's `name` exactly, and `status` takes `queued`, `in_progress`, or `completed`; any other value returns `InvalidArgument` (HTTP 400). Both filters apply after the latest-attempt collapse, so a run matches on its latest attempt's status and a filter never resurfaces a superseded attempt. Page tokens embed the filters they were minted under, so restart pagination when a filter changes.
* **Added.** [List Pull Request Comments](/build/agents-window/api/origin#list-pull-request-comments) accepts optional `since` and `until` query parameters, inclusive bounds on comment creation time as RFC 3339 timestamps such as `2026-08-01T00:00:00Z`. A malformed timestamp returns `InvalidArgument` (HTTP 400). Page tokens embed the bounds they were minted under, so restart pagination when a bound changes. Track new comments with `since` instead of re-paging a pull request's whole comment history.
* **Changed.** An operation whose required scopes come with the credential rather than from an installation grant marks its `x-origin-scopes` extension `ambient: true` in the published [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml). Nine operations carry the flag, among them [Get Authenticated App](/build/agents-window/api/origin#get-authenticated-app), [Create Installation Access Token](/build/agents-window/api/origin#create-installation-access-token), and [List App Installation Repositories](/build/agents-window/api/origin#list-app-installation-repositories). The scope strings stay in the extension so `403` responses still name them, and request handling is unchanged; read the flag to tell an operation you only have to authenticate for from one that needs a [scope](/build/agents-window/api/origin#scopes) approved at installation.

## September 2, 2026

* **Breaking.** [List Check Suites For Commit](/build/agents-window/api/origin#list-check-suites-for-commit), [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit), and [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite) return only the latest attempt of each check and omit superseded attempts, matching what the merge gate and the product CI views already showed. A suite collapses to its latest attempt per reporting actor and suite key, and a run to its latest attempt per run key within a suite, so a failed run and its successful retry no longer both appear. `totalSize` and page tokens count the collapsed set. Migration: read a superseded attempt by its own id through [Get Check Run](/build/agents-window/api/origin#get-check-run) or [Get Check Suite](/build/agents-window/api/origin#get-check-suite), which still address every stored attempt.
* **Added.** [Create Pull Request Comment](/build/agents-window/api/origin#create-pull-request-comment) accepts a `file` anchor that opens a comment thread on a whole file in the pull request version's diff. It carries `file.path` alone: Origin derives the side from the file's change kind, the base version for a deleted file and the head version otherwise, and returns it on `thread.side`. Send the deleted path for a deletion and the head path for every other change; a path outside the diff or a renamed file's pre-rename source path returns `InvalidArgument` (HTTP 400). `file`, `inline`, and `threadId` are mutually exclusive. [Create Pull Request Review](/build/agents-window/api/origin#create-pull-request-review) takes the same anchor as `comments[].file`.
* **Added.** Public user actors carry `displayName` and `handle` alongside `id` and `email`. `displayName` is the account's first and last name joined with a space, the same name the product renders, and is omitted when the account has no name. `handle` is the claimed profile handle without the `@` prefix, present only while that profile is publicly visible. Both appear wherever a user actor does, including pull request and comment authors, check run and suite actors, review dismissals, requested reviewers, an installation's `installedBy`, and the matching webhook payloads. The [installation receipt](/build/agents-window/api/origin#installation-receipt) carries `displayName` and never `handle`.
* **Added.** Public app actors carry the app's registered `displayName` alongside `id` and `slug`, and the `app` object on the five [`installation.*`](/build/agents-window/api/origin#events) webhook payloads carries it too. It is omitted when the app cannot be resolved and on Grok Build's first-party managed actor.
* **Changed.** Requesting a `:write` scope also grants the matching `:read` scope, so an installation asking for [`repository:labels:write`](/build/agents-window/api/origin#scopes) is granted `repository:labels:read` with it. This applies when an app is installed, when an installation is previewed, and when an installation access token attenuates its scopes, and an existing write-only credential now permits the matching read. Read scopes still never grant writes.

## September 1, 2026

* **Added.** [`repository.deleted`](/build/agents-window/api/origin#events) delivers when a repository is deleted, whether through a product delete of a native repository or by stopping the sync on an inbound mirror. The payload carries a `repository` reference and `deletedAt` rather than a snapshot, because a deleted repository no longer resolves through the API. Subscribing requires [`repository:metadata:read`](/build/agents-window/api/origin#scopes). Unlike [`repository.pushed`](/build/agents-window/api/origin#events), this event is delivered for repositories mirrored from GitHub, since stopping the sync deletes only the Grok Build-side repository and GitHub sends nothing for it. A repeated delete of an already-deleted repository emits nothing.
* **Added.** [`repository.metadata.updated`](/build/agents-window/api/origin#events) delivers when a repository's default branch changes, covering settings and API writes, an inbound mirror following an upstream rename, and first-push trunk reconciliation. The payload carries the full post-write `repository` snapshot with no delta and no updating actor, so compare successive snapshots or refetch the repository to see what moved. Subscribing requires [`repository:metadata:read`](/build/agents-window/api/origin#scopes).
* **Added.** Requested-reviewer users carry an `email` alongside `id`. It appears on [List Pull Request Requested Reviewers](/build/agents-window/api/origin#list-pull-request-requested-reviewers) and [Request Pull Request Reviewers](/build/agents-window/api/origin#request-pull-request-reviewers), and on the `reviewer.user` entry of the [`pull_request.reviewer.added`](/build/agents-window/api/origin#events), `pull_request.reviewer.removed`, and `pull_request.reviewer.rerequested` webhooks. The value is the account email address, and it is empty when the account has none. These surfaces previously identified a user by id alone.
* **Changed.** REST responses carry fields that sit at their default value instead of dropping them, so a `false` boolean, a `0` number, an empty string, and an empty array are present in every response body. A non-draft pull request from [Get Pull Request](/build/agents-window/api/origin#get-pull-request) reports `draft` as `false` rather than omitting it, and an empty list reports `[]` rather than nothing at all. Fields the contract marks optional, such as `submitted_at` and `dismissal`, stay absent when unset. Read the value itself wherever your integration treated a missing key as the default. This matches how webhook payloads have always serialized.
* **Changed.** Each operation in the published [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) carries a unique `operationId`. Where one operation answers two URL shapes, the second shape takes a `_2` suffix: `OriginService_GetRepoTarball_2` for `GET …/tarball/{ref}` and `OriginService_ListMatchingGitRefs_2` for `GET …/git/matching-refs`. Both URL shapes and their request handling are unchanged, so regenerate any client built from the specification to pick up the renamed methods.
* **Changed.** [`installation.updated`](/build/agents-window/api/origin#events) also delivers when the owner namespace is renamed, once for each installation the namespace still holds. The event carries the new namespace slug along with that installation's current scopes and repository selection.

## August 31, 2026

* **Changed.** Every operation in the published [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) carries an `x-origin-scopes` extension that names the scope the operation requires and the credentials it accepts. `scopes` holds the required scope, and `tokenTypes` holds the accepted credential kinds: `app` for an app JWT, `installation` for an installation access token, and `user` for a user credential. A credential kind the operation rejects is absent from `tokenTypes`, and [Get Rate Limit](/build/agents-window/api/origin#get-rate-limit) is the one operation that requires no scope. The extension also replaced the scope sentences that [Create Label](/build/agents-window/api/origin#create-label), [Update Label](/build/agents-window/api/origin#update-label), and [Delete Label](/build/agents-window/api/origin#delete-label) carried in their descriptions. Authorization is unchanged; the extension publishes the scopes Origin already enforced.

## August 29, 2026

* **Added.** [List Pull Request Requested Reviewers](/build/agents-window/api/origin#list-pull-request-requested-reviewers) returns the users and groups whose review is outstanding on a pull request: `GET /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/requested_reviewers`. A direct request clears when that user submits a review, and a group request clears when any current member of the group submits, while an unsubmitted draft review leaves the request pending. Reviewers come back as ids, and reading them requires [`repository:pull_requests:reviews:read`](/build/agents-window/api/origin#scopes).
* **Added.** [Request Pull Request Reviewers](/build/agents-window/api/origin#request-pull-request-reviewers) requests reviews from users and groups and returns the reviewers it requested: `POST /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/requested_reviewers`. Identify each reviewer by public `user_…` id, email, `grp_…` id, or group slug; display names do not resolve, an unknown or ambiguous identifier returns `InvalidArgument` (HTTP 400), and a reviewer who is not a candidate for the repository returns `PermissionDenied` (HTTP 403). Requesting an already-requested reviewer bumps the request, so a reviewer who had submitted a review reappears as pending. Requires [`repository:pull_requests:reviews:write`](/build/agents-window/api/origin#scopes).
* **Added.** [Remove Pull Request Requested Reviewers](/build/agents-window/api/origin#remove-pull-request-requested-reviewers) drops outstanding review requests and returns `204` with an empty body: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/requested_reviewers`. Removing a reviewer who is not currently requested is a no-op, and a stable public id still resolves after that reviewer leaves the repository's candidate list, so a stale request can be cleared. Requires [`repository:pull_requests:reviews:write`](/build/agents-window/api/origin#scopes).
* **Added.** [Update Pull Request Thread](/build/agents-window/api/origin#update-pull-request-thread) resolves or reopens a pull request comment thread and returns its updated state: `PATCH /v1/origin/repos/{ownerSlug}/{repoName}/pulls/threads/{threadId}`. Send `resolved` as `true` to resolve and `false` to reopen. Both directions are idempotent, replying to a resolved thread does not reopen it, and a thread stored on another repository returns `404`. Requires [`repository:pull_requests:reviews:write`](/build/agents-window/api/origin#scopes).
* **Added.** Pull request comments carry their full thread in place of a bare thread id. `thread` gained the filed-against `version` with its head and base SHAs, the `path`, `side`, `startLine`, and `endLine` of the thread's diff anchor, `resolvedAt`, and the thread's own `createdAt` and `updatedAt`. Returned by [List Pull Request Comments](/build/agents-window/api/origin#list-pull-request-comments), [Get Pull Request Comment](/build/agents-window/api/origin#get-pull-request-comment), and [Update Pull Request Comment](/build/agents-window/api/origin#update-pull-request-comment). `thread.id` is unchanged, so grouping comments by it keeps working.
* **Added.** [Create Pull Request Comment](/build/agents-window/api/origin#create-pull-request-comment) accepts an `inline` anchor, made of `path`, `side`, `startLine`, and an optional `endLine`, that opens a line-anchored thread on a pull request version's diff, plus a `versionNumber` naming the version to file against that defaults to the latest at call time. The `path` must be part of that version's diff on a side the file has content on, any line of a changed file anchors rather than only lines inside a diff hunk, and an invalid anchor returns `InvalidArgument` (HTTP 400) instead of falling back to a general-discussion comment. `inline` and `threadId` are mutually exclusive, as are `threadId` and `versionNumber`.
* **Added.** [Create Pull Request Review](/build/agents-window/api/origin#create-pull-request-review) accepts a `comments` array, at most 50 per request, that publishes a review together with its comments in one atomic call. Each entry carries a `body` plus the same targets as [Create Pull Request Comment](/build/agents-window/api/origin#create-pull-request-comment): an `inline` anchor on the reviewed version's diff, a `threadId` reply, or neither for a new general-discussion thread. Every anchor is validated before anything is written, so a single bad anchor fails the whole request with `InvalidArgument` (HTTP 400) and publishes nothing. The operation carries no idempotency key, so read [List Pull Request Reviews](/build/agents-window/api/origin#list-pull-request-reviews) before retrying an ambiguous failure. A request without `comments` behaves as it did.
* **Added.** [`pull_request.comment.created`](/build/agents-window/api/origin#events) carries the thread's diff anchor on the comment that opened the thread, so a receiver can materialize the thread without a follow-up read. `comment.thread` holds the filed-against `version`, `path`, `side`, `startLine`, and `endLine`; a reply carries `comment.thread.id` alone, and resolution state stays out of the event. Comments filed with a review through [Create Pull Request Review](/build/agents-window/api/origin#create-pull-request-review) emit nothing until the review submits, and then each one emits its own event.

## August 28, 2026

* **Added.** [Get Repo Tarball](/build/agents-window/api/origin#get-repo-tarball) downloads a gzip-compressed tar of a repository tree: `GET /v1/origin/repos/{ownerSlug}/{repoName}/tarball/{ref}`. The first request for a resolved commit streams `application/gzip` as the response body; later requests for the same commit return `302` with a signed download URL in `Location`, valid for 15 minutes. Archive entries sit at the root of the tar with no wrapping directory, an empty repository returns `ABORTED` (HTTP 409 Conflict), and downloading an archive requires [`repository:contents:read`](/build/agents-window/api/origin#scopes).
* **Added.** [List Comparison Files](/build/agents-window/api/origin#list-comparison-files) lists the files a comparison changed, the diff of `head` against the merge base of `base` and `head`: `GET /v1/origin/repos/{ownerSlug}/{repoName}/compare/{basehead}/files`. Results are paginated, 30 files per page by default and at most 100, and each file carries the shape [List Commit Files](/build/agents-window/api/origin#list-commit-files) returns. An `identical` or `behind` comparison returns an empty list, unrelated histories return `404`, and a comparison whose commits move mid-pagination rejects the page token with `InvalidArgument` (HTTP 400) so listing restarts from the first page. Reading comparison files requires [`repository:contents:read`](/build/agents-window/api/origin#scopes).
* **Added.** The [signing key endpoint](/build/agents-window/api/origin#discovery-and-signing-keys) sends `Cache-Control: public, max-age=600, stale-if-error=600`. Reuse a cached JWKS for 10 minutes, then refresh; when a refresh fails, keep the last good keys for at most another 10 minutes before failing verification. Refresh on a signature no active key verifies so a retired key ID drops out.
* **Changed.** A check run still `in_progress` when its `deadlineAt` passes completes with a `timed_out` conclusion and delivers [`repository.check_run.completed`](/build/agents-window/api/origin#events), superseding the [August 27](/build/agents-window/api/origin/changelog#aug-27-2026) note that a deadline does not change a run's status. Expiry runs as a periodic sweep rather than a per-run timer, so a run can sit past its deadline briefly. A `queued` run never expires, nor does a run carrying no `deadlineAt`, and Origin leaves the run's `externalUpdatedAt` in place so a later completion from your provider can overwrite the `timed_out` conclusion.
* **Changed.** [`repository.pushed`](/build/agents-window/api/origin#events) is not delivered for a repository Origin mirrors from GitHub. GitHub owns those pushes and sends its own push webhooks, so the Origin delivery duplicated them. Pushes to native Origin repositories are delivered unchanged, and mirror state affects no other event.
* **Changed.** [Create Pull Request](/build/agents-window/api/origin#create-pull-request) rejects a `head` with no history in common with `base` with `InvalidArgument` (HTTP 400) and creates nothing, in place of the `404` the underlying comparison surfaced.
* **Changed.** A push that leaves an open pull request's head with no history in common with its base closes the pull request and delivers [`pull_request.closed`](/build/agents-window/api/origin#events). A later related push does not reopen it.
* **Changed.** Each operation in the [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) documents the response codes that operation can return, in place of a uniform `400`, `401`, `403`, and `429` on every operation: `404` on every parameterized path, `409` wherever a handler reports a conflict, `202` on [Batch Redeliver Webhook Deliveries](/build/agents-window/api/origin#batch-redeliver-webhook-deliveries) and [Sync Mirror](/build/agents-window/api/origin#sync-mirror), and shorter sets on [Get Rate Limit](/build/agents-window/api/origin#get-rate-limit) and [Get Authenticated App](/build/agents-window/api/origin#get-authenticated-app). The `Status` schema describes the error envelope Origin returns, including that a `404` never distinguishes a missing resource from an unreachable one, and every operation carries a request and response example. Request handling is unchanged; regenerate any client built from the spec to pick up the new response models.

## August 27, 2026

* **Added.** Check runs accept and return an optional `deadlineAt` timestamp. Send it in the run body on [Post Check Run](/build/agents-window/api/origin#post-check-run) or [Batch Upsert Check Runs](/build/agents-window/api/origin#batch-upsert-check-runs), and read it back on [Get Check Run](/build/agents-window/api/origin#get-check-run), [List Check Runs For Suite](/build/agents-window/api/origin#list-check-runs-for-suite), and [List Check Runs For Commit](/build/agents-window/api/origin#list-check-runs-for-commit). Origin clears the deadline once the run reaches `completed`, leaves the stored value unchanged when an update omits the field, and rejects a deadline more than 24 hours in the future with `InvalidArgument` (HTTP 400) rather than clamping it. A deadline does not change the run's status when it passes.
* **Changed.** The published [OpenAPI specification](/build/agents-window/api/origin/openapi.yaml) declares `https://api.cursor.com` as its server and a `bearerAuth` HTTP bearer security scheme, so a client generated from the document picks up the base URL and the `Authorization: Bearer` requirement.
* **Changed.** OpenAPI path parameters carry the names the URLs already use. The generated `identifier.ownerSlug` and `identifier.name` bindings became `ownerSlug` and `repoName` across all 55 repository-scoped operations, which lets standard OpenAPI generators consume the document. Request URLs and request behavior are unchanged; regenerate any client built from the spec to pick up the new parameter names.
* **Changed.** Published enums no longer list their `*_UNSPECIFIED` zero-value entries, such as `RULESET_ENFORCEMENT_UNSPECIFIED` on [Create Ruleset](/build/agents-window/api/origin#create-ruleset) and `PULL_REQUEST_REVIEW_VERDICT_UNSPECIFIED` on [Create Pull Request Review](/build/agents-window/api/origin#create-pull-request-review). Origin never accepted or returned those values, so requests and responses are unchanged.
* **Changed.** Every operation in the spec documents `400`, `401`, `403`, and `429` responses carrying the `google.rpc.Status` body, in place of the catch-all `default` response alone. See [Errors](/build/agents-window/api/origin#errors) for the body and the full status list.

## August 26, 2026

* **Breaking.** Reviewer [webhook payloads](/build/agents-window/api/origin#event-payloads) for `pull_request.reviewer.added`, `pull_request.reviewer.removed`, and `pull_request.reviewer.rerequested` replace the `reviewer.kind` and `reviewer.id` pair with a typed reviewer, where exactly one of `reviewer.user` or `reviewer.group` is present. Migration: read `reviewer.user.id` where you read `reviewer.id` with a `reviewer.kind` of `user`, and `reviewer.group.id` where `reviewer.kind` was `group`.
* **Added.** [List Labels](/build/agents-window/api/origin#list-labels) returns the label definitions a repository owns, ordered by name: `GET /v1/origin/repos/{ownerSlug}/{repoName}/labels`. Reading labels requires the new [`repository:labels:read`](/build/agents-window/api/origin#scopes) scope. Results are paginated, 30 labels per page by default and at most 100.
* **Added.** [Create Label](/build/agents-window/api/origin#create-label) defines a label on a repository and returns it: `POST /v1/origin/repos/{ownerSlug}/{repoName}/labels`. Every label write requires the new [`repository:labels:write`](/build/agents-window/api/origin#scopes) scope. `name` is capped at 50 characters and `description` at 255, `color` must be six hexadecimal characters without a leading `#`, and a name another label on the repository already uses is rejected with `AlreadyExists` (HTTP 409 Conflict).
* **Added.** [Get Label](/build/agents-window/api/origin#get-label) returns one repository label by name: `GET /v1/origin/repos/{ownerSlug}/{repoName}/labels/{labelName}`. An unknown name returns `404`.
* **Added.** [Delete Label](/build/agents-window/api/origin#delete-label) deletes a repository label by name and returns `204`: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/labels/{labelName}`. Deleting a label also removes it from every pull request it was assigned to.
* **Added.** [Update Label](/build/agents-window/api/origin#update-label) changes a label's name, color, or description, addressing it by its current name: `PATCH /v1/origin/repos/{ownerSlug}/{repoName}/labels/{labelName}`. Omitted fields are left unchanged, and renaming to a name another label already uses is rejected with `AlreadyExists` (HTTP 409 Conflict).
* **Added.** [List Check Run Annotations](/build/agents-window/api/origin#list-check-run-annotations) returns a check run's annotations in ascending ID order, which is also creation order: `GET /v1/origin/repos/{ownerSlug}/{repoName}/check-runs/{checkRunId}/annotations`. Reading them requires [`repository:checks:read`](/build/agents-window/api/origin#scopes). Results are paginated, 30 annotations per page by default and at most 100.
* **Added.** [Create Check Run Annotations](/build/agents-window/api/origin#create-check-run-annotations) appends between 1 and 25 annotations to a check run in one atomic batch and returns them: `POST /v1/origin/repos/{ownerSlug}/{repoName}/check-runs/{checkRunId}/annotations`. Appending requires [`repository:checks:write`](/build/agents-window/api/origin#scopes). A check run holds at most 100 annotations, and a batch that would exceed that is rejected with `ResourceExhausted` (HTTP 429) without writing anything. The operation is append-only and not idempotent, so a retry after an ambiguous failure can append duplicates.
* **Added.** [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) takes five more query parameters: `author`, a public actor ID exactly as the response returns it in `pullRequests[].author.user.id`, `pullRequests[].author.app.id`, or `pullRequests[].author.serviceAccount.id`; `base`, an exact base-branch filter that accepts a short name or a fully qualified ref; `direction`, `desc` for newest first (the default) or `asc` for oldest first; and `since` and `until`, inclusive RFC 3339 bounds on creation time. An author with no pull requests returns an empty list, and any other unusable value returns `InvalidArgument` (HTTP 400).
* **Added.** [`pull_request.review.dismissed`](/build/agents-window/api/origin#events) is delivered when a submitted review is dismissed, whether explicitly or by being superseded by a newer decision. It carries the same [payload shape](/build/agents-window/api/origin#event-payloads) as `pull_request.review.submitted` with `review.dismissal` populated, and subscribing to it needs [`repository:pull_requests:reviews:read`](/build/agents-window/api/origin#scopes).
* **Added.** Installations name the user who installed the app. `installedBy`, carrying that user's public `user_…` ID and email, is returned by [Get App Installation](/build/agents-window/api/origin#get-app-installation) and [List App Installations](/build/agents-window/api/origin#list-app-installations) and rides every `installation.*` [webhook snapshot](/build/agents-window/api/origin#event-payloads); there it identifies the original installer and is omitted when that user record can no longer be read. The [installation receipt](/build/agents-window/api/origin#installation-receipt) gains an `installedBy` claim naming the user who performed that install or re-consent, so after a re-consent the two can differ.

## August 25, 2026

* **Added.** [Ping Webhook](/build/agents-window/api/origin#ping-webhook) sends a test delivery to your app's configured webhook URL and reports what the receiver answered: `POST /v1/origin/app/webhook/pings`. The delivery is signed like a production one, carries `webhook-event-type` of `ping`, and belongs to no installation. Origin sends it once with no retries, and it never appears in [List Webhook Deliveries](/build/agents-window/api/origin#list-webhook-deliveries). An app with no webhook URL configured is rejected with `FailedPrecondition` (HTTP 400).
* **Added.** Error responses carry the request ID twice: an `X-Request-ID` response header, and a `google.rpc.RequestInfo` entry in `details`. Origin echoes the `x-request-id` you sent or generates one when you send none, and includes the entry even when the message is an opaque internal error. See [Errors](/build/agents-window/api/origin#errors).
* **Changed.** [Create Pull Request](/build/agents-window/api/origin#create-pull-request) and [Update Pull Request](/build/agents-window/api/origin#update-pull-request) reject a `title` longer than 256 characters, or a `body` longer than 65,536 characters, with `InvalidArgument` (HTTP 400). Values past those lengths previously failed with an internal error. Both limits count Unicode code points, so an astral character such as an emoji counts once.
* **Changed.** [Sync Mirror](/build/agents-window/api/origin#sync-mirror) responses always carry `synced`, `true` or `false`, mirroring the HTTP status: `200` when true, `202` when false. The field was previously omitted when false, so callers had to read an absent field as `false`.
* **Changed.** Unmatched paths under `/v1/origin`, and requests that use the wrong method on a known path, return the documented [error envelope](/build/agents-window/api/origin#errors) rather than a generic router body. The message names the method and path and never echoes the query string.
* **Changed.** Merging a pull request delivers a [`repository.pushed`](/build/agents-window/api/origin#events) webhook for the base ref the merge advances. Origin performs that push itself, so the event names no pusher. Base-ref updates from a merge were previously not delivered.

## August 24, 2026

* **Changed.** [Create Pull Request Comment](/build/agents-window/api/origin#create-pull-request-comment) and [Update Pull Request Comment](/build/agents-window/api/origin#update-pull-request-comment) reject a `body` longer than 65,536 characters with `InvalidArgument` (HTTP 400). A body past that length previously failed with an internal error. The limit counts Unicode code points, so an astral character such as an emoji counts once.

## August 22, 2026

* **Added.** [Delete Ruleset](/build/agents-window/api/origin#delete-ruleset) deletes a repository ruleset by its stable Origin ID and returns `204`: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/rulesets/{rulesetId}`. Requires [`repository:rulesets:write`](/build/agents-window/api/origin#scopes). A ruleset stored on a different repository reads as an unknown ruleset, and an empty `rulesetId` is rejected with `InvalidArgument` (HTTP 400).
* **Added.** Every repository-scoped endpoint addresses a repository by its stable ID as well as by owner and name: send `_` as the owner slug and the ID as the repository name, as in `GET /v1/origin/repos/_/REPO_ID`. Read the ID from `id` on [Get Repo](/build/agents-window/api/origin#get-repo). The ID survives a rename but grants nothing on its own, so your app needs the same scope on the resolved repository, and an ID it cannot reach returns the same `404` as an ID that does not exist. [Create Repo](/build/agents-window/api/origin#create-repo) takes an owner slug alone and rejects `_`.
* **Changed.** Apps reach mirrored repositories. A mirror can be selected into an installation, appears in [List App Installation Repositories](/build/agents-window/api/origin#list-app-installation-repositories) and in the installation [webhook payload](/build/agents-window/api/origin#event-payloads) repository arrays, can be named in `repositoryIds` on [Create Installation Access Token](/build/agents-window/api/origin#create-installation-access-token), and receives webhook deliveries. A mirrored repository stays read-only: only [`repository:metadata:read`](/build/agents-window/api/origin#scopes) and [`repository:contents:read`](/build/agents-window/api/origin#scopes) apply, and every other scope returns `403` on that repository, including `git push`. See [Mirrored repositories](/build/agents-window/api/origin#mirrored-repositories).

## August 21, 2026

* **Breaking.** The `recursive` query parameter on [Get Tree](/build/agents-window/api/origin#get-tree) is a boolean rather than a string, so only `true` and `1` walk the whole tree; every other value, including `false`, `0`, and a bare `?recursive`, lists immediate children only. Migration: send `recursive=true` wherever your integration relied on any non-empty `recursive` value enabling recursion.
* **Breaking.** Pull request lifecycle [webhook payloads](/build/agents-window/api/origin#event-payloads) omit the pull request's assigned `labels`, superseding the field announced on [August 20, 2026](/build/agents-window/api/origin/changelog#aug-20-2026). REST responses still carry it. Migration: read labels from [Get Pull Request](/build/agents-window/api/origin#get-pull-request) or [List Pull Requests](/build/agents-window/api/origin#list-pull-requests) instead of the webhook snapshot.
* **Added.** [List Rulesets](/build/agents-window/api/origin#list-rulesets) returns every ruleset configured on a repository plus one shared `repository` reference: `GET /v1/origin/repos/{ownerSlug}/{repoName}/rulesets`. Rulesets are bounded configuration, so the response is not paginated. Reading rulesets requires [`repository:rulesets:read`](/build/agents-window/api/origin#scopes).
* **Added.** [Create Ruleset](/build/agents-window/api/origin#create-ruleset) stores a new ruleset and returns it with the IDs Origin assigns to each rule and bypass actor: `POST /v1/origin/repos/{ownerSlug}/{repoName}/rulesets`. Both ruleset write endpoints require [`repository:rulesets:write`](/build/agents-window/api/origin#scopes).
* **Added.** [Get Ruleset](/build/agents-window/api/origin#get-ruleset) returns a single ruleset by its stable Origin ID: `GET /v1/origin/repos/{ownerSlug}/{repoName}/rulesets/{rulesetId}`.
* **Added.** [Update Ruleset](/build/agents-window/api/origin#update-ruleset) replaces a ruleset's configuration in full, including its `rules` and `bypassActors`: `PUT /v1/origin/repos/{ownerSlug}/{repoName}/rulesets/{rulesetId}`. Send every rule and bypass actor you want to keep, because the stored entries are replaced rather than merged.
* **Added.** Rulesets carry `id`, `name`, `description`, `enforcement` (`active`, `evaluate`, or `disabled`), `kind` (`merge_branch`, `push_branch`, `push_tag`, or `push_repository`), the `includedRefNames` and `excludedRefNames` patterns that accept globs plus the `~ALL` and `~DEFAULT_BRANCH` tokens, `rules`, and `bypassActors`. [Create Ruleset](/build/agents-window/api/origin#create-ruleset) and [Update Ruleset](/build/agents-window/api/origin#update-ruleset) reject more than 64 patterns per list, 20 rules, or 15 bypass actors with `InvalidArgument` (HTTP 400).
* **Added.** [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request) accepts an optional `expectedHeadSha` request field, the full commit SHA the pull request's head must match. When the head has moved, the merge is rejected with `ABORTED` (HTTP 409 Conflict) and nothing merges; a value that is not a full commit SHA is rejected with `InvalidArgument` (HTTP 400). Omit it to merge whatever the current head is.
* **Added.** Owner references carry a `type` string, `team` or `user`, omitted when Origin cannot resolve it. Returned wherever an `owner` or installation `target` appears, including [Get Repo](/build/agents-window/api/origin#get-repo), [List Repos](/build/agents-window/api/origin#list-repos), [List App Installations](/build/agents-window/api/origin#list-app-installations), and the repository reference on check and pull request responses.

## August 20, 2026

* **Breaking.** [List Pull Request Labels](/build/agents-window/api/origin#list-pull-request-labels) returns every assigned label in one response and no longer paginates: the `pageSize` and `pageToken` query parameters and the `nextPageToken` response field are gone. Migration: drop `pageSize` and `pageToken` from the request and read the full set from `labels`.
* **Breaking.** A pull request holds at most 100 labels, and [Add Pull Request Labels](/build/agents-window/api/origin#add-pull-request-labels) and [Set Pull Request Labels](/build/agents-window/api/origin#set-pull-request-labels) reject a write that would take it past that limit with `FailedPrecondition` (HTTP 400). Migration: keep each pull request at or under 100 labels, removing labels before adding more.
* **Added.** Pull requests carry a `labels` array of the labels assigned to them, sorted by name and empty when none are assigned. Returned by [List Pull Requests](/build/agents-window/api/origin#list-pull-requests), [Get Pull Request](/build/agents-window/api/origin#get-pull-request), [Create Pull Request](/build/agents-window/api/origin#create-pull-request), [Update Pull Request](/build/agents-window/api/origin#update-pull-request), and [Merge Pull Request](/build/agents-window/api/origin#merge-pull-request), and included on pull request lifecycle [webhook payloads](/build/agents-window/api/origin#event-payloads).

## August 19, 2026

* **Added.** [List Pull Request Labels](/build/agents-window/api/origin#list-pull-request-labels) returns the labels assigned to a pull request, ordered by name: `GET /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/labels`. Requires [`repository:pull_requests:read`](/build/agents-window/api/origin#scopes). Results are paginated, 30 labels per page by default, and at most 100 labels per page.
* **Added.** [Add Pull Request Labels](/build/agents-window/api/origin#add-pull-request-labels) assigns existing repository labels to a pull request and leaves the labels already on it in place: `POST /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/labels`. Every label write endpoint requires [`repository:pull_requests:write`](/build/agents-window/api/origin#scopes).
* **Added.** [Set Pull Request Labels](/build/agents-window/api/origin#set-pull-request-labels) replaces every label on a pull request with the names you send, and an empty list clears them: `PUT /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/labels`.
* **Added.** [Remove Pull Request Label](/build/agents-window/api/origin#remove-pull-request-label) removes one label by name and returns the labels left on the pull request: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/labels/{labelName}`.
* **Added.** [Remove All Pull Request Labels](/build/agents-window/api/origin#remove-all-pull-request-labels) clears every label from a pull request and returns `204`: `DELETE /v1/origin/repos/{ownerSlug}/{repoName}/pulls/{pullNumber}/labels`.
* **Added.** Label entries carry `id`, `name`, `color` as a six-character hex value without a leading `#`, and an optional `description`. Returned by every pull request label endpoint.
* **Changed.** The [app JWT rate limit](/build/agents-window/api/origin#rate-limits) budget rose from 600 to 6,000 points per minute, and [Create Installation Access Token](/build/agents-window/api/origin#create-installation-access-token) charges 1 point instead of 5, so an app can mint roughly 100 installation tokens per second.
* **Changed.** Owner eligibility for [Create Repo](/build/agents-window/api/origin#create-repo) and pushes over [Git HTTPS](/build/agents-window/api/origin#git-https-authentication) admits the Pro Student and Start plans alongside Pro, Pro+, and Ultra. Team-owner requirements are unchanged.
* **Changed.** Owner slugs and repository names in [repository paths](/build/agents-window/api/origin#repository-paths) resolve case-insensitively, and responses return the stored casing rather than the casing you sent. [Create Repo](/build/agents-window/api/origin#create-repo) rejects a name that differs only in case from one the owner already has, so compare repository names case-insensitively.

## August 17, 2026

* **Breaking.** [Git over HTTPS](/build/agents-window/api/origin#git-https-authentication) rejects a push with `403` when the repository's owner is not eligible to write to Origin. A user owner must be on a Pro, Pro+, or Ultra plan, and a team owner must have an active paid team plan, must not be on Privacy Mode (Legacy), and must not have Origin turned off by a team admin. Clone, fetch, and pull are unaffected. Migration: handle `403` on push as an owner-eligibility failure that a retry cannot clear, and confirm the owner's plan before pushing on its behalf.
* **Changed.** The first push to a repo created through [Create Repo](/build/agents-window/api/origin#create-repo) retargets `defaultBranch` when that push only creates branches and none of them is the stored default: Origin picks the created branch, or `main` or `master` when the push creates several and one of those names is among them. Read the current value from [Get Repo](/build/agents-window/api/origin#get-repo).

## August 16, 2026

* **Breaking.** [Create Repo](/build/agents-window/api/origin#create-repo) rejects a request whose owner is not eligible to write to Origin, returning `FailedPrecondition` (HTTP 400). A user owner must be on a Pro, Pro+, or Ultra plan, and a team owner must have an active paid team plan, must not be on Privacy Mode (Legacy), and must not have Origin turned off by a team admin. Migration: handle `400` from [Create Repo](/build/agents-window/api/origin#create-repo) as an owner-eligibility failure that a retry cannot clear, and confirm the owner's plan before creating repositories on its behalf.

## August 15, 2026

* **Breaking.** Apps lost access to repositories that Origin mirrors in from GitHub. Those repositories no longer appear in [List App Installation Repositories](/build/agents-window/api/origin#list-app-installation-repositories), [Create Installation Access Token](/build/agents-window/api/origin#create-installation-access-token) rejects them in `repositoryIds`, and a request that names one returns `403` over both the REST API and [Git over HTTPS](/build/agents-window/api/origin#git-https-authentication). Migration: discover repositories from [List App Installation Repositories](/build/agents-window/api/origin#list-app-installation-repositories) instead of a stored repository list, and read a GitHub-sourced repository from GitHub rather than the Origin API.
* **Breaking.** Origin stopped sending webhooks for repositories it mirrors in from GitHub, and installation event payloads dropped those repositories from their selected repository arrays and `repositoriesCount`. Migration: source [events](/build/agents-window/api/origin#events) for a GitHub-sourced repository from GitHub, and treat an installation payload's repository array as the set your app can reach.

## August 14, 2026

* **Changed.** Revision parameters accept the symbolic `HEAD` alongside a SHA, branch, or tag: `sha` on [List Commits](/build/agents-window/api/origin#list-commits), [Get Commit](/build/agents-window/api/origin#get-commit), [List Commit Files](/build/agents-window/api/origin#list-commit-files), [Get Git Commit](/build/agents-window/api/origin#get-git-commit), and [Get Tree](/build/agents-window/api/origin#get-tree); `ref` on [Get Contents](/build/agents-window/api/origin#get-contents) and [Batch Get Contents](/build/agents-window/api/origin#batch-get-contents); and either side of `basehead` on [Compare Commits](/build/agents-window/api/origin#compare-commits).
* **Changed.** [Get Git Ref](/build/agents-window/api/origin#get-git-ref) resolves the symbolic `HEAD` and returns it as `ref: "HEAD"` with the tip commit. [List Matching Git Refs](/build/agents-window/api/origin#list-matching-git-refs) and [List Matching Git Refs by Path](/build/agents-window/api/origin#list-matching-git-refs-by-path) match `HEAD` exactly, because it does not sit under `refs/`.
* **Changed.** Removing an installation, or deleting the app, invalidates that installation's access tokens before `expiresAt`. The REST API and [Git over HTTPS](/build/agents-window/api/origin#git-https-authentication) reject a revoked token with `401`, so an app must be reinstalled before it can mint a working one. See [Installation access token](/build/agents-window/api/origin#installation-access-token).

## August 13, 2026

* **Breaking.** [Get Contents](/build/agents-window/api/origin#get-contents) rejects files larger than 1 MiB (decoded) with `FailedPrecondition` (HTTP 400), and one oversized file fails an entire [Batch Get Contents](/build/agents-window/api/origin#batch-get-contents) request.
* **Added.** Installation access tokens authenticate Git over HTTPS. Use the token as the HTTP Basic password with username `x-access-token` against the repository `cloneUrl`. Clone, fetch, and pull require [`repository:contents:read`](/build/agents-window/api/origin#scopes); push requires [`repository:contents:write`](/build/agents-window/api/origin#scopes). See [Git HTTPS authentication](/build/agents-window/api/origin#git-https-authentication).
* **Changed.** `cloneUrl` carries the GitHub-shaped root path (`https://origin.cursor.com/OWNER_SLUG/REPO_NAME.git`) in place of the legacy `/git/` path, on [List Repos](/build/agents-window/api/origin#list-repos), [Get Repo](/build/agents-window/api/origin#get-repo), [Create Repo](/build/agents-window/api/origin#create-repo), [List App Installation Repositories](/build/agents-window/api/origin#list-app-installation-repositories), and the [`repository.created`](/build/agents-window/api/origin#events) webhook payload. Both forms clone and `cloneUrl` promises no particular path shape, so a stored value keeps working.
* **Changed.** `size` on [Get Contents](/build/agents-window/api/origin#get-contents) and [Batch Get Contents](/build/agents-window/api/origin#batch-get-contents) responses states the decoded content size in bytes, not the length of the base64 `content` string.

## August 11, 2026

* **Breaking.** Reviewer webhook payloads carry a stable external ID in `reviewer.id`: the encoded user ID (`user_…`, the same format as the organization API) when `kind` is `user`, replacing the provider-scoped auth ID; group reviewers keep the group public ID (`grp_…`). Affects [`pull_request.reviewer.added`](/build/agents-window/api/origin#events), [`pull_request.reviewer.removed`](/build/agents-window/api/origin#events), and [`pull_request.reviewer.rerequested`](/build/agents-window/api/origin#events). Migration: match user reviewers by the encoded `user_…` ID wherever your integration compared `reviewer.id` against stored auth IDs.
* **Added.** Apps can hold up to 10 active Ed25519 signing keys, and [app JWT](/build/agents-window/api/origin#app-jwt) verification accepts a token signed with any active key.
* **Added.** [Sync Mirror](/build/agents-window/api/origin#sync-mirror) synchronizes one ref of a mirrored repository from its upstream source: `POST /v1/origin/repos/{ownerSlug}/{repoName}:syncMirror`. Requires [`repository:contents:read`](/build/agents-window/api/origin#scopes) and returns `200` when the sync target is satisfied or `202` while the sync is pending.
* **Added.** Post-install redirects carry an `installation_receipt` query parameter: a five-minute Origin-signed JWT that identifies the installation in its `sub` claim and echoes the publisher's `state` as a claim. Verify it against the published JWKS before trusting the callback. See [Installation receipt](/build/agents-window/api/origin#installation-receipt).
* **Removed.** Origin actor objects no longer include the top-level `kind` and `id` fields, completing the deprecation announced on [August 5, 2026](/build/agents-window/api/origin/changelog#aug-5-2026). Every `actor`, `author`, and `dismissedBy` field across check, commit, and pull request responses is affected. Migration: read the `user`, `app`, or `serviceAccount` variant set on the actor.

## August 10, 2026

* **Added.** [Get Rate Limit](/build/agents-window/api/origin#get-rate-limit) returns the authenticated principal's shared per-minute point budget without consuming points: `GET /v1/origin/rate_limit`. See [Rate limits](/build/agents-window/api/origin#rate-limits).

## August 5, 2026

* **Deprecated.** `OriginActor.kind` and `OriginActor.id`. Actor identity is a discriminated union of `user`, `app`, and `serviceAccount` variants. Migration: read the selected variant's fields instead of top-level `kind` and `id`.
