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.
displayNamestringRequired1-255 characters
slugstringRequired1-255 characters
descriptionstring or nullOptional<=4000 characters
iconstring or nullOptional<=64 characters
schemamap from strings to any or nullOptional

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

validationModeenumOptional
Allowed values:

Response

Created
createdAtstring
descriptionstring or null
displayNamestring
iconstring or null
idstring
indexedFieldslist of strings
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

schemaVersioninteger
slugstring
updatedAtstring
validationModeenum
recordCountinteger

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
500
Internal Server Error