Skip to content
Zaraftis
Esc
↑↓navigate↵open⌘Jpreview

Get a catalog snapshot

Returns one immutable catalog snapshot’s provenance: source, revision (the exact source bytes’ sha256), schema version, validation result, and product count.

GET/commerce/catalog-snapshots/{catalog_snapshot_id}
Authorization
AuthorizationBearer token · headerrequired

API key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.

or
AuthorizationOAuth2 access token · headerrequired

OAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.

Path parameters
catalog_snapshot_idstring<uuid>required
Responses
200

One catalog snapshot

successbooleanrequired
dataCatalogSnapshotObjectrequired
Show properties
catalog_snapshot_idstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
brand_idstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
sourcestringrequired
Allowed:csvshopify
revisionstring<starts_with>required
matches ^sha256:.*
schema_versionintegerrequired
min 1 · max 9007199254740991
validationCatalogValidationrequired
Show properties
source_rowsintegerrequired
min 0 · max 9007199254740991
accepted_rowsintegerrequired
min 1 · max 9007199254740991
errorsobject[]required
max items 50
Show properties
Array of object
rowintegerrequired
min 1 · max 9007199254740991
fieldstringrequired
min length 1
messagestringrequired
min length 1
feed_readinessFeedReadiness | nullrequired
Show properties
Any of:
FeedReadiness
rule_versionstringrequired
min length 1
checked_productsintegerrequired
min 0 · max 9007199254740991
ready_productsintegerrequired
min 0 · max 9007199254740991
issue_countsobjectrequired
issuesobject[]required
max items 500
Show properties
Array of object
product_idstringrequired
matches ^[0-9a-f]{64}$
fieldstringrequired
min length 1
codestringrequired
min length 1
severitystringrequired
Allowed:errornote
null
null
findings_evaluationFindingsEvaluation | nullrequired
Show properties
Any of:
FindingsEvaluation
evaluation_idstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
rulesobject[]required
Show properties
Array of object
rulestringrequired
min length 1
rule_versionstringrequired
min length 1
checkedintegerrequired
min 0 · max 9007199254740991
firedintegerrequired
min 0 · max 9007199254740991
created_atstringrequired
null
null
product_countintegerrequired
min 1 · max 9007199254740991
collected_atstringrequired
created_atstringrequired
request_idstringrequired
min length 1
404

not_found: unknown id, or an id this key cannot see

successbooleanrequired
errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsobject
field_errorsobject[]
Show properties
Array of object
fieldstringrequired
codestringrequired
Allowed:requiredformattoo_smalltoo_largeunrecognized_keyinvalid
messagestringrequired
request_idRequestIdrequired
Request
curl -X GET 'https://api.zaraftis.com/v1/commerce/catalog-snapshots/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "success": true,
  "data": {
    "catalog_snapshot_id": "6b30205a-5e4f-4f65-a6e9-986c84ffd21f",
    "brand_id": "1bb61461-e5e3-4ebb-8cc6-5b0c37f1b7da",
    "source": "csv",
    "revision": "string",
    "schema_version": 1,
    "validation": {
      "source_rows": 0,
      "accepted_rows": 1,
      "errors": [
        {
          "row": 1,
          "field": "string",
          "message": "string"
        }
      ]
    },
    "feed_readiness": {
      "rule_version": "string",
      "checked_products": 0,
      "ready_products": 0,
      "issue_counts": {
        "property1": 0,
        "property2": 0
      },
      "issues": [
        {
          "product_id": "string",
          "field": "string",
          "code": "string",
          "severity": "error"
        }
      ]
    },
    "findings_evaluation": {
      "evaluation_id": "4108ec8e-6efd-4b9b-bace-0bb4c296c324",
      "rules": [
        {
          "rule": "string",
          "rule_version": "string",
          "checked": 0,
          "fired": 0
        }
      ],
      "created_at": "string"
    },
    "product_count": 1,
    "collected_at": "string",
    "created_at": "string"
  },
  "request_id": "string"
}

Was this page helpful?