Create a collection
Register a record type as a collection, optionally with a schema (constrained JSON Schema dialect). validationMode defaults to off — creating a collection changes no existing behavior.
Authentication
AuthorizationBearer
API key or Clerk session token
Request
This endpoint expects an object.
displayName
slug
description
icon
schema
Constrained JSON Schema dialect: root object with string/number/boolean/array/object properties, one nesting level, no $ref/oneOf/pattern
validationMode
Allowed values:
Response
Created
createdAt
description
displayName
icon
id
indexedFields
schema
Constrained JSON Schema dialect: root object with string/number/boolean/array/object properties, one nesting level, no $ref/oneOf/pattern
schemaVersion
slug
updatedAt
validationMode
recordCount
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
500
Internal Server Error