# Review state

Where an item stands: live version and prices, the update waiting for review, a price change waiting for your confirmation, the last 10 history events (approved / rejected with reason) and changelogs. Needs `items:read`.

`GET /api/items/{id}/versions`
```bash
curl https://sellmycode.net/api/items/123/versions \
  -H "Authorization: Bearer YOUR_API_KEY"
```
```json
{
  "status": "success",
  "item": { "id": 123, "name": "My Item", "state": "live", "version": "2.4.0",
            "regular_price": 29, "extended_price": 0, "review_required": true },
  "pending_update": { "id": 845, "version": "2.4.1", "main_file_changed": true,
                      "submitted_at": "2026-10-24T08:00:00Z" },
  "pending_price_confirmation": null,
  "history": [ { "title": "Update Submission", "note": "API upload (token \"ci\") — main_file, version", "at": "2026-10-24T08:00:00Z" } ],
  "changelogs": [ { "version": "2.4.0", "body": "…", "at": "2026-10-01T09:00:00Z" } ]
}
```
Poll it after a release: the update is live when `pending_update` is `null` and the newest history entry is "Update Approved" — or "Update Rejected" with the reason in `note`. Or skip polling: subscribe a [webhook](https://sellmycode.net/api-docs/webhooks.md#review-events) to `item.update_approved` and `item.update_rejected`.

---
Source: https://sellmycode.net/api-docs/review-state
