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

slugstringRequired

Request

This endpoint expects an object.
sampleintegerOptional1-1000

Response

Schema proposal
fieldslist of objects
sampledRecordsinteger
schemamap from strings to any or null

Constrained JSON Schema dialect: root object with string/number/boolean/array/object properties, one nesting level, no $ref/oneOf/pattern

skippedKeyslist of strings
slugstring
totalRecordsinteger

Errors

401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error