`GET /api/marketplace/items/{id}/versions` — the item's version history, newest first, each entry carrying its own changelog (#1060).
const url = 'https://example.com/api/marketplace/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/versions';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/marketplace/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/versionsThe service fn and the SQL for this have existed since ADR 0027; there was simply no handler, so the detail page’s Versions and Changelog tabs had no way to obtain their data and rendered an em-dash on every item. This is the missing half, not a new capability.
Withdrawn versions are INCLUDED and carry withdrawn_at, because history is
history — the UI marks them rather than hiding them, so a buyer can see that a
version they may be running was pulled.
AUD-PERF-049 — this route serves the CATALOGUE projection of each version’s
manifest (capabilities, requirements, install, …), computed in the
database, for every caller. It never materialises a stored manifest: a single
version row can hold 28 MB of inline node payload, and one measured item’s five
versions came to 139 MB in one response. The full manifest of ONE version is
served by GET .../versions/{version}, which is entitlement-gated as before.
#1624 S51 — bounded pages over the stable (released_at, id) order; following
next_cursor reaches every version.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”The next_cursor of the previous page.
Page size, 1 to 100; 50 when omitted.
Responses
Section titled “Responses”OK
One page of the version history (#1624 S51), newest first.
object
Public catalog projection of a released item version.
object
#[serde(default)] on both defaulted fields mirrors the persistence
row’s own serde attributes, so the generated contract keeps them
OPTIONAL exactly as before this projection — an older server’s payload
must still parse (api-schemas-marketplace.test.ts).
The manifest checksum the ADR 0034 P4b signature covers. A hash, not a fetch handle — it lets a buyer confirm that what they install is what the catalog advertised.
Catalog metadata from the stored manifest. On the SINGLE-version route
(.../versions/{version}) it is complete for a version the caller may
install (free, or licensed) and redacted to catalog metadata otherwise. On
the LIST route (.../versions) it is ALWAYS the catalog projection, for
every caller: AUD-PERF-049 — a version row can hold 28 MB of inline node
payload, and the list used to materialise every version’s full manifest
(139 MB for one measured item) in a single response. The projection is
computed in the database and carries the same allowlisted keys the
redactor keeps (capabilities, requirements, install, …).
Content hash of the source tarball. Kept for the same reason as
manifest_sha256 and harmless without source_tarball_url, which this
projection withholds.
Pass as cursor for the next page; null on the last page.
Example
{ "items": [ { "framework": "plain" } ]}Bad Request
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}