# API changelog

New endpoints and changes that affect integrations. Existing fields keep their name and type; new fields may appear at any time — ignore fields you do not know.

## 2026-11-14 — Item media

- [Item media](https://sellmycode.net/api-docs/item-media.md): `GET /api/items/{id}/media`, `POST /api/items/{id}/media/uploads` and `PUT /api/items/{id}/media` change the thumbnail, the preview image and the screenshot gallery (keep, add, remove, reorder) in one reviewed change. Uses the existing `items:read`, `items:upload` and `items:write` scopes.

## 2026-10-31

- **Legacy API keys retired.** The single plaintext key from the account page and the `api_key` query/body parameter no longer authenticate (`401 legacy_key_retired`). Create a scoped token under Workspace → Settings → API key and send it as `Authorization: Bearer`.
- `license.*` [webhooks](https://sellmycode.net/api-docs/webhooks.md) carry `purchase_code_hash` (SHA-256) and `purchase_code_hint` instead of the purchase code — the code activates licences, so it stays out of third-party endpoints. `sale.*` events are unchanged.
- Price changes through `items:price` are measured against the price the item had **24 hours before the first API change**, not the live price: a chain of small steps that adds up to more than ±30 % now needs the same e-mail confirmation as one big step.
- Webhook endpoints must use port 443 or 8443.
- One upload may declare at most 10 GB in flight per author; quota checks are serialised, so parallel `POST /uploads` cannot overshoot them.

## 2026-10-29

- `replace_pending: true` on [uploads](https://sellmycode.net/api-docs/upload.md) and [`PATCH`](https://sellmycode.net/api-docs/update-item.md) replaces the update that is waiting for review — ship a hotfix without waiting for the first review. See [Hotfixes](https://sellmycode.net/api-docs/publishing.md#hotfixes-while-an-update-waits).
- A standby signing key `k2` is published as `next`. Embed it next to `k1` — the [SDK](https://sellmycode.net/api-docs/licence-sdk.md) download already does. See [Key rotation](https://sellmycode.net/api-docs/key-rotation.md).

## 2026-10-27 — Review webhooks

- Webhook events [`item.update_approved` and `item.update_rejected`](https://sellmycode.net/api-docs/webhooks.md#review-events): the review result of an update, without polling `/versions`.
- Licence code samples (and the PHP SDK, 1.1.1) also check that `item.id` and `domain` in a signed answer are yours.

## 2026-10-27 — Licence updates

- [`POST /api/license/update`](https://sellmycode.net/api-docs/licence-updates.md) tells an activated site whether a newer version exists and, while its update period runs, returns a 10-minute download link with the package's SHA-256.
- [PHP SDK & WordPress updater](https://sellmycode.net/api-docs/licence-sdk.md): ready-made client for activation, licence checks and verified updates; WordPress plugins and themes update from WP admin.
- activate and verify answers carry an [`entitlement`](https://sellmycode.net/api-docs/licence-entitlement.md) token (JWT, EdDSA, 24 hours) that your own update server checks offline; keys also at `GET /api/license/jwks`.
- Webhook events [`license.activated`, `license.deactivated`, `license.blocked`, `license.unblocked`](https://sellmycode.net/api-docs/webhooks.md#licence-events).

## 2026-10-31 — AI Support

- **Workspace → AI Support:** answer item tickets (and, optionally, pre-sale messages) with your own Claude, ChatGPT or Gemini key — Draft only or Auto reply, per-item FAQs, spending limits, activity log. Free; you pay your provider.

## 2026-10-24 — Support tickets

- [Support tickets API](https://sellmycode.net/api-docs/support-tickets.md): scopes `tickets:read`, `tickets:reply`, `tickets:note`; list, read, reply, close / reopen, internal notes.
- Webhook events `ticket.created` and `ticket.replied`.
- Guide: [AI support assistant](https://sellmycode.net/api-docs/ai-support.md).

## 2026-10-24

- **Uploads straight to storage.** `transfer=direct` on [uploads](https://sellmycode.net/api-docs/upload.md): each part is PUT to a signed storage URL, much faster from far away. Relay stays the default.
- [`GET /api/uploads`](https://sellmycode.net/api-docs/upload.md#list-and-cancel-uploads) lists your unfinished uploads; `DELETE /api/items/{id}/uploads/{upload}` cancels one.
- Upload limits: 10 GB per author per 24 hours, 2 open uploads, and a one-day pause after 5 failed or abandoned uploads.
- Updates left unreviewed for 30 days are rejected automatically.
- [Author API policy](https://sellmycode.net/api-docs/policy.md) published; tokens with write permissions require accepting it.

## 2026-10-24 — Author write API

- New scopes `items:write`, `items:price`, `items:upload`. The legacy single API key can never write.
- [`PATCH /api/items/{id}`](https://sellmycode.net/api-docs/update-item.md), [`POST /api/items/{id}/changelogs`](https://sellmycode.net/api-docs/add-changelog.md), [`GET /api/items/{id}/versions`](https://sellmycode.net/api-docs/review-state.md).
- Price moves over 30% wait for the author's email confirmation.

## 2026-10-16

- Licence slots: deactivate pauses a site and keeps its slot; only the author frees slots. Answers carry `slot_bound` and `slot_released`.

## 2026-10-09

- Licence answers are Ed25519-signed envelopes with a required `nonce`; `activate` returns an `activation_token` that `deactivate` requires.

## 2026-07-18

- [Public catalog](https://sellmycode.net/api-docs/catalog.md), [My purchases](https://sellmycode.net/api-docs/purchases.md), [Balance](https://sellmycode.net/api-docs/balance.md) and [sale webhooks](https://sellmycode.net/api-docs/webhooks.md). Rate limits are counted per token.

---
Source: https://sellmycode.net/api-docs/changelog
