Skip to main content
POST
AI-generate a schema from sample data

Usage notes

sample_data may be CSV text, a header row, or a free-text description. Lasso analyzes at most the first 5,000 characters and immediately saves the generated Product Schema. Review the returned columns before using the schema for extraction. Generation may create or attach company Attributes for the proposed keys.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
sample_data
string

CSV text, column headers, or free-text description of the data structure

name
string

Optional name for the generated schema

Response

Generated schema

id
string
required
name
string
required
columns
object[]
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
description
string
is_default
boolean