# Chrome Web Store

> Credentials, staged rollouts, and pulling a submission back.

Canonical: https://docs.extension.dev/publish/chrome
This page as Markdown: https://docs.extension.dev/publish/chrome.md
Section: Publish to stores
Siblings: [Publishing](https://docs.extension.dev/publish/overview.md) · [Firefox Add-ons](https://docs.extension.dev/publish/firefox.md) · [Microsoft Edge Add-ons](https://docs.extension.dev/publish/edge.md) · [Safari](https://docs.extension.dev/publish/safari.md) · [Executables](https://docs.extension.dev/publish/executables.md)
Map of every page: https://docs.extension.dev/llms.txt · Whole corpus: https://docs.extension.dev/llms-full.txt

---

# Chrome Web Store

Chrome submissions go through the Chrome Web Store API v2 at
`chromewebstore.googleapis.com/v2`. Reach for this page when you set up the
Chrome credentials, run a staged rollout, or pull a submission back out of
review.

## Quick start

```bash
curl -s -X POST https://www.extension.dev/api/cli/stores/submit \
  -H "Authorization: Bearer $EXTENSION_DEV_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"browsers":["chrome"],"buildSha":"<sha>","channel":"stable"}'
```

The platform uploads the build with the project's stored credentials and
records the outcome under **Submissions**. The same submission starts from
the console's **Submissions** tab or from an agent with `extension_submit`.


## How it works

### Credentials

The store accepts either a service account key or an OAuth client. A service
account is the better default for a project, because it does not expire with
a person's consent.

The publisher ID is required on top of either. It is the token after
`/devconsole/` in your Chrome Web Store developer dashboard address, not the
extension ID. Add it with the secrets in the console under **Project
settings, Stores**.

An agent can connect Chrome for you with `extension_submit`
`action: "connect"`. The connect page signs you in with **Continue with
Google**, and the agent learns only the account Google names. See
[Connect a store from your agent](/publish/overview#connect-a-store-from-your-agent).

### Staged rollouts

Turn on **Staged publish** in the project's Chrome store settings and set a
**Staged rollout percentage** from 1 to 100. The submission then carries
`publishType: STAGED_PUBLISH`.

Raise a published rollout from the **Submissions** tab with **Raise
rollout**. The raise is review free, and the new percentage must be higher
than the current one. The console also states the store's floor for a staged
rollout: 10,000 weekly users.

::: warning
Without staged publish the submission publishes to everyone at once, and
there is no rollout to raise.
:::

### Pulling a submission back

A submission in review can be pulled back from the **Submissions** tab with
**Pull back from review**. It applies only while the record reads
`submitted`, and the record moves to `draft` once the withdrawal is reported.
A `pending` record has not reached the store yet and cannot be pulled back.

### Safe mode

**Upload draft only** uploads the package and skips the publish call, so
nothing enters review. It is a per-store setting, stored as `skipPublish`,
and an explicit value is always honored.

Agent and API submissions default to it. A submission with `dryRun: false`
through the MCP, the CLI or an API token uploads without publishing unless
the store settings state a mode. An explicit `skipPublish: false` or a staged
publish choice publishes as configured, whoever saved it. Console submissions
follow the store setting.

When the settings state no mode, the store is **Draft until published**: new
versions upload as a draft and are not published until the Chrome Web Store
reports the item as published. From then on, console submissions publish
each update after review, and agent and CLI submissions still stop at the
draft.

**Request expedited review** is a store setting too, stored as
`reviewExemption` and sent to the store as `skipReview`.

### Watching

The **Submissions** tab follows the submission to a terminal state, and
`GET /api/projects/{id}/stores/status` returns the same. The states are the
eight on [Publishing](/publish/overview#watching). Chrome needs no submission
id, unlike Firefox and Edge.

A safe-mode run records `draft`, because the publish call is the only thing
that starts a review round and a safe run never makes it.

## Reference

### Secrets

| Value | Secret | Notes |
| --- | --- | --- |
| Service account JSON | `STORE_CHROME_SERVICE_ACCOUNT_JSON` | Raw JSON, sufficient alone |
| OAuth client ID | `STORE_CHROME_CLIENT_ID` | The alternative to the service account |
| OAuth client secret | `STORE_CHROME_CLIENT_SECRET` | |
| OAuth refresh token | `STORE_CHROME_REFRESH_TOKEN` | |

### Store settings

| Setting | Stored as | Sent to the store as |
| --- | --- | --- |
| Extension ID | `storeId` | The item in `publishers/{publisherId}/items/{itemId}` |
| Publisher ID | `publisherId` | The publisher in that same path |
| Upload draft only | `skipPublish` | No publish call |
| Staged publish | `stagedPublish` | `publishType: STAGED_PUBLISH` |
| Staged rollout percentage | `deployPercentage` | `deployInfos[].deployPercentage`, 1 to 100 |
| Request expedited review | `reviewExemption` | `skipReview` |

### Console actions

| Action | Route | Refusals |
| --- | --- | --- |
| Raise rollout | `POST /api/projects/{id}/stores/chrome/rollout` | `409 ROLLOUT_NOT_HIGHER`, `409 ROLLOUT_NOT_STAGED`, `409 ROLLOUT_PERCENTAGE_OUT_OF_RANGE`, `409 ROLLOUT_PERCENTAGE_INVALID`, `400 ROLLOUT_STORE_NOT_SUPPORTED`, `502 ROLLOUT_DISPATCH_FAILED` |
| Pull back from review | `POST /api/projects/{id}/stores/chrome/submissions/{submissionId}/cancel` | `409 SUBMISSION_NOT_IN_REVIEW`, `409 CANCEL_IN_FLIGHT`, `409 SUBMISSION_NOT_JOINABLE`, `404 SUBMISSION_NOT_FOUND`, `502 CANCEL_DISPATCH_FAILED` |

Both routes are owner only and both answer `429 BUILD_DISPATCH_DISABLED`
while the operator pause holds. A project token calls them with an
`approvalId` a person approved; a refusal decided before the approval is read
carries `refusedBeforeApproval: true`. A cancel on Firefox or Edge is not run
by the platform: it answers `409 STORE_ACT_NOT_ON_LANE` with the store's own
steps.

### Connection routes

| Route | Who can call it | Refusals |
| --- | --- | --- |
| `GET /api/projects/{id}/stores/chrome/health` | A signed-in owner or admin, or a project token an owner minted | `403 OWNER_REQUIRED` for a token a member minted |
| `GET /api/projects/{id}/stores/chrome/connect` | A signed-in owner only | `403 PROJECT_TOKEN_REFUSED` for any project token |
| Google OAuth callback | A signed-in owner only | |

The health route runs Google's token check and answers `healthy`,
`connectedAs` and `source`, which reads `project` or `workspace`. The OAuth
start and its callback never take a project token.

## When it fails

- **A store is blocked.** The preflight, `dryRun` on the submit call, names
  the reason and the console page that fixes it in `consoleUrl`.
- **The readiness checklist fails on the publisher ID.** A missing publisher
  ID fails the console's checklist and the submission itself. The dry run on
  the submit call does not read it. The settings form and the API refuse a
  malformed one by the same rule: up to 64 letters, digits and hyphens,
  starting and ending with a letter or digit, and never the 32-letter
  extension ID.
- **The OAuth refresh token stops working after a week.** The console notes
  that testing consent expires every 7 days. Prefer the service account key
  for automation.
- **A version was rejected.** It stays visible in the store status as
  `rejected`. Fix the package and submit again. Pulling back applies only
  while the record reads `submitted`.

## Next

- [Publishing](/publish/overview) for the three doors, dry runs and `STORE.md`
- [HTTP API](/automate/api) for the submit and status endpoints
