---
title: "Run the next stage's checks (stage1 → stage2 → stage3)"
method: POST
path: "/v1/submissions/{id}/advance"
tags: ["publish"]
---

# Run the next stage's checks (stage1 → stage2 → stage3)

`POST /v1/submissions/{id}/advance`

## Request

- Base URL: `http://localhost:8800`
- URL: `http://localhost:8800/v1/submissions/{id}/advance`
- Auth: HTTP bearer

Wave 8 staged-pipeline endpoint. The marketplace runs the appropriate
scanner for the submission's current stage, records every check as a
`SubmissionCheck` row, and advances `submission.stage`. Idempotent on
terminal rows.

Requires `submissions.staged` capability + `submissions.write` scope.

## Path parameters

- `id` string, required

## Response `200`

Submission with updated stage + new check rows

- Submission: Full submission row with the standardized `submissions.staged` check shape. The orchestrator's `routers/app_submissions.py` proxy mirrors this row directly into the local `app_submissions` cache so existing UI rendering keeps working unchanged.
  - `id` string, required: Submission UUID (string form)
  - `kind` 'agent' | 'skill' | 'mcp_server' | 'base' | 'app' | 'theme' | 'workflow_template', required
  - `slug` string, required
  - `version` string, nullable
  - `state` 'stage0_received' | 'stage1_static' | 'stage2_dynamic' | 'stage3_review' | 'approved' | 'rejected' | 'withdrawn', required: Wire-stable state string mirrored from the row
  - `stage` 'stage0' | 'stage1' | 'stage2' | 'stage3' | 'approved' | 'rejected' | 'withdrawn', required: Current stage; terminal stages mirror the decision
  - `decision` 'approved' | 'rejected' | 'withdrawn', nullable
  - `decision_reason` string, nullable
  - `submitter_handle` string, nullable
  - `bundle_sha256` string, nullable
  - `bundle_size_bytes` integer, nullable
  - `item_id` string, nullable
  - `item_version_id` string, nullable
  - `checks` SubmissionCheck[]: Append-only per-stage check rows. Clients with the `submissions.staged` capability render these grouped by `stage` to surface the staged pipeline timeline.
    - `stage` 'stage0' | 'stage1' | 'stage2' | 'stage3', required: Pipeline stage that produced this check
    - `name` string, required: Stable check identifier (e.g. `slug_format`, `bundle_size`)
    - `status` 'passed' | 'failed' | 'warning' | 'errored' | 'skipped', required: * `passed` — check succeeded * `failed` — check failed; submission transitions to rejected * `warning` — informational; does not fail the stage * `errored` — execution itself failed; submission transitions to rejected * `skipped` — check did not run (e.g. dependent check failed)
    - `message` string, nullable
    - `details` object, nullable
    - `created_at` string, date-time, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `404`: Not found
- `409`: Invalid stage transition
- `501`: Capability disabled on this hub

## Changes

- **2026-07-17** `b2706e1525df`: 1 info
  - endpoint added
- **2026-04-29** `5ed6d07c9483`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/tesslateai/apis/tesslate-federated-marketplace-v1/changes/v1/submissions/:id/advance/post.md)

---

[API](https://skmtc.dev/tesslateai/apis/tesslate-federated-marketplace-v1.md) - [All operations](https://skmtc.dev/tesslateai/apis/tesslate-federated-marketplace-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/tesslateai/apis/tesslate-federated-marketplace-v1/revisions/b2706e1525df?raw)
