List Types
/api/v1/schema
Returns all content types registered in the current project and environment,
including resolved field metadata.
schema:read
Example request:
Field Metadata
Each field in the response includes the following properties:Get Type
/api/v1/schema/{type}
Returns the full schema definition for a single content type.
schema:read
Path Parameters
The content type name (e.g.,
BlogPost).Sync Schema
/api/v1/schema/sync
Push the current schema definition to the server. This is the endpoint called
by
mdcms schema sync. The operation is idempotent — syncing the same schema
twice produces no changes.schema:write
Request Body
The raw configuration object from
mdcms.config.ts, serialized as JSON. This
is stored for audit and debugging purposes.The fully resolved schema with all field metadata, environment overlays
applied, and references validated. This is what the server uses for content
validation.
A deterministic hash of the resolved schema. Used by content write endpoints
to verify client-server schema consistency.
In practice, you should never call this endpoint directly. Use
mdcms schema sync from the CLI, which reads your mdcms.config.ts, resolves the schema,
computes the hash, and sends the request.