AutoGenerate a Schema

Generate a schema based on a list of documents. Leave the instructions empty if you want the AI to use its best judgment, or provide instructions to indicate your preference to how the schema should be generated. Best results are achieved when you provide a varied list of documents that represent the full range of type of documents you expect to process, and when you provide clear instructions to what you expect the schema to capture and how you want it to be structured.

Body Params
string

Name of the schema to be defined. For example rental contracts

documentIds
array of strings

List of document IDs to use for schema generation.

Document IDs
string

The dataset to which the documents belong.

string

Instructions on how to create the schema.

string

Guidelines to apply to the schema to documents when standardizing.

boolean
Defaults to true

Whether to standardize the input documents using the newly created schema after generation.Note that standardizing documents costs credits just as if you had called the /standardize endpoint directly

string
enum
Defaults to default

Advanced Feature Mode of standardization to run, if standardizing using the schema.

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json