Enrich

Infer Enrichment

Analyze sample data and infer schema, taxonomy, and web enrichment fields.

Pass sample items and a description, get back:

  • suggested_schema: JSON Schema ready for catalog creation
  • suggested_taxonomy: Taxonomy ready for catalog creation
  • web_enrichment_fields: Fields to use with /public/enrich endpoint

Example request:

{
  "prompt": "Audio products catalog - headphones and earbuds",
  "items": [
    {"name": "Sony WH-1000XM5", "sku": "WH1000XM5-B", "price": "$399.99"},
    {"name": "Apple AirPods Pro 2", "sku": "AIRPODS-PRO-2", "price": "$249.00"}
  ]
}
post/public/infer-enrichment

Request

  • Base URL
    https://catalogapi.rastro.ai/api
  • Auth
    HTTP bearer

Headers

X-Organization-Idstring nullable

Request body

promptstring required

Description of the data (e.g., 'Audio products catalog - headphones and earbuds')

itemsobject[] required

Sample items to analyze (5-20 items recommended)

Response

Successful Response

suggested_schemaobject required

JSON Schema for catalog creation with properties dict. Ready to use with catalog creation endpoint.

suggested_taxonomyobject required

Taxonomy in TaxonomyInput format (name, description, hierarchy_levels, nodes). Ready to use with catalog creation endpoint.

Changes

No recorded changes to this operation across all 1 revision of this API.