Infer a schema from existing records
Sample the type’s most recently updated records and return a PROPOSED dialect-conformant schema with per-field confidence and sample values. Does not save anything — review the proposal, then PATCH the collection. Works for registered and unregistered slugs alike (register-then-infer or infer-then-register).
Authentication
AuthorizationBearer
API key or Clerk session token
Path parameters
slug
Request
This endpoint expects an object.
sample
Response
Schema proposal
fields
sampledRecords
schema
Constrained JSON Schema dialect: root object with string/number/boolean/array/object properties, one nesting level, no $ref/oneOf/pattern
skippedKeys
slug
totalRecords
Errors
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error