Skip to main content
POST
Create a schema

Authorizations

x-api-key
string
header
required

Team API key created under /api/api-keys. Prefix: sb_api_.

Path Parameters

projectId
string<uuid>
required

Project UUID in the team associated with the API key.

Body

application/json

Create a schema. Optionally include initialVersion.schema to create the first version in the same request.

name
string
required
initialVersion
object

Optional initial schema version payload.

Response

Schema created

id
string<uuid>
slug
string
name
string
description
string | null
projectId
string<uuid>
createdAt
string<date-time>
updatedAt
string<date-time> | null