Skip to main content
GET
/
api
/
products
/
{key}
/
versions
Get Product Versions
curl --request GET \
  --url https://api.merchantops.ai/api/products/{key}/versions
{
  "key": "<string>",
  "totalVersions": 123,
  "versions": [
    {
      "id": "<string>",
      "key": "<string>",
      "productType": {},
      "source": "<string>",
      "version": 123,
      "confidence": 123,
      "createdAt": "<string>",
      "createdBy": "<string>",
      "enrichmentScore": 123,
      "enrichmentSources": [
        "<string>"
      ],
      "isPublished": false,
      "labels": [
        "<string>"
      ],
      "lakehouseMatched": true,
      "lakehousePropertiesCount": 123,
      "langfuseTraceId": "<string>",
      "properties": {},
      "properties_metadata": {},
      "propertyCount": 0,
      "scrapeWarnings": [
        {}
      ],
      "status": "<string>",
      "version_commit_message": "<string>",
      "version_created_from": 123
    }
  ],
  "productionVersion": 123
}

Headers

authorization
string | null
X-Organization-ID
string | null

Path Parameters

key
string
required

Cookies

stytch_session
string | null

Response

Successful Response

Response containing all versions of a product.

key
string
required

Product key

totalVersions
integer
required

Total number of versions

versions
ProductVersionResponse · object[]
required

All versions, sorted DESC

productionVersion
integer | null

Version number with 'Production' label