Retrieves the complete JSON schema and structure definition for a content type, including all component definitions and validation rules needed for content creation.
Parameters
| Parameter | Type | Required | Description |
|---|
projectId | string | No | Project ID (uses session default) |
contentTypeId | string | Yes | Unique identifier of the content type |
typeVersion | number | No | Specific version (defaults to latest published) |
Response
| Field | Type | Description |
|---|
id | string | Unique content type identifier |
name | string | Display name |
description | string | Comprehensive usage guidelines |
schema | object | Complete JSON Schema definition |
status | string | Publication status |
version | number | Schema version number |
Example
Request
Response
Usage
Get Latest Published Version
Get Specific Version
Understanding the Schema
The returned schema follows JSON Schema draft-07 format:
- required: Array of field names that must be provided
- properties: Object defining each field’s type and constraints
- definitions: Reusable component type definitions
- oneOf: Arrays of allowed component types
Always fetch the content type schema before creating content. This ensures you understand all required fields and validation rules.