Infer Schema From File
Analyze an uploaded file and infer enrichment configuration.
Upload a CSV or Excel file, and get back:
- suggested_schema: JSON Schema with all fields (existing + suggested enrichments)
- web_enrichment_fields: Fields to use with /public/enrich endpoint
- suggested_taxonomy: Category hierarchy (if generate_taxonomy=true)
This endpoint helps you configure an enrichment pipeline without manual schema definition.
Example usage:
- Upload your data file with a description
- Use the returned
web_enrichment_fieldsasoutput_schemain/public/enrich - Use
suggested_taxonomywithpredict_taxonomy=truein/public/enrich
Supported file formats:
- CSV (.csv)
- Excel (.xlsx, .xls)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
CSV or Excel file to analyze
Description of the data (e.g., 'Product catalog for electronics retailer')
If true, also generate a suggested taxonomy
Maximum rows to sample for analysis (default 20)
Response
Successful Response
Response with inferred configuration for enrichment.
Name of the uploaded file
Total rows in the file
Number of rows sampled for inference
JSON Schema with all fields found in the data. 'x-field-category' indicates 'input' (existing) or 'enriched' (suggested to add via web).
Fields to extract via web enrichment. Use as output_schema in /public/enrich.
Taxonomy in TaxonomyInput format. Only present if generate_taxonomy=true.