Agent API (AI & Automation) Schema
Get full site schema contract
/agent/v1/schema Returns the site metadata, reusable components, accessible post types (filtered by the API key's allowedPostTypes), instruction coverage metrics, and schemaFingerprint. Requires schema:read scope.
Authentication
- Bearer token
BearerApiKeyScoped Agent API key (
Authorization: Bearer ocms_...). Human JWTs and browser cookies are rejected on the Agent Plane.
Responses
-
200 Full site schema contract.
application/json
-
componentsarray of Component requiredShow 11 fields Hide
-
aiWritablebooleanExample true
-
createdAtstring, date-time required -
fieldsarray of FieldDefinition requiredShow 21 fields Hide
-
aiWritablebooleanDefault true
-
constraintsFieldConstraintsTyped validation and structural constraints covering all 19 canonical OvertCMS field types.Show 51 fields Hide
-
allowChecklistsboolean -
allowCustomboolean -
allowEmbedsboolean -
allowInlineMediaboolean -
allowRelativeboolean -
allowedBlocksarray of any -
allowedComponentsarray of any -
allowedHostsarray of any -
allowedMarksarray of any -
allowedMimeTypesarray of any -
allowedSchemesarray of any -
aspectRatiostringExample 16:9
-
componentRefstring -
disallowH1boolean -
disallowHtmlboolean -
fieldsarray of any -
formatstringAllowed:
plainemailcolorDefault plain
-
integerboolean -
integritystringAllowed:
strongweakDefault strong
-
jsonSchemaobject -
lengthUnitstringAllowed:
graphemesutf16Default graphemes
-
maxnumber -
maxBytesinteger, int64min 1
-
maxDatestring, date -
maxDateTimestring, date-time -
maxDurationMsinteger, int64min 1
-
maxItemsintegermin 1
-
maxLengthintegermin 1
-
maxLinesintegermin 1
-
maxTimestringExample 17:00:00
-
maxWordsintegermin 1
-
minnumber -
minDatestring, date -
minDateTimestring, date-time -
minHeightintegermin 1
-
minItemsintegermin 0
-
minLengthintegermin 0
-
minTimestringExample 09:00:00
-
minWidthintegermin 1
-
minWordsintegermin 0
-
multipleboolean -
ofListItemSpecElement schema of a list field. -
optionsarray of any -
patternstring -
precisionintegermin 0
-
requireAltboolean -
stepnumber -
strictnessstringAllowed:
strictsanitizeDefault strict
-
targetsarray of any -
trimboolean -
uniqueItemsboolean
-
-
defaultValueany -
deprecatedbooleanDefault false
-
descriptionstringmax length 500
-
fieldIdstring, uuidImmutable UUIDv7 assigned by the server. -
filterablebooleanDefault false
-
instructionstringmax length 2000, Example Concise, punchy headline under 80 characters.
-
keystring requiredExample title
-
labelstring requiredExample Title
-
localizedbooleanDefault false
-
readOnlybooleanDefault false
-
replacedBystring -
requiredbooleanExample true
-
requiredOnstringAllowed:
draftpublishDefault publish
-
searchEndpointstring read onlyPopulated automatically on reference fields.Example /agent/v1/collections/posts/fields/author/options
-
sortablebooleanDefault false
-
typestring requiredAllowed:
stringtextslugrich_htmlnumberbooleandatedatetimetimeurlselectreferenceimageaudiovideofileobjectlistjsonExample string
-
uiFieldUICosmetic authoring UI hints (excluded from schema fingerprints).Show 4 fields Hide
-
groupstringExample SEO
-
orderintegerExample 10
-
placeholderstringExample Write a concise headline...
-
widthstringExample full
-
-
uniquebooleanDefault false
-
writablebooleanDefault true
-
-
idstring, uuid required -
instructionstringExample Use for notes, warnings, and tips inside article bodies.
-
labelstring requiredExample Callout Box
-
schemaFingerprintstring requiredExample sha256:9b74c9897bac770ffc029102a200c5de
-
schemaVersioninteger requiredExample 1
-
siteIdstring, uuid required -
slugstring requiredExample callout
-
updatedAtstring, date-time required
-
-
instructionCoverageInstructionCoverage requiredAudits how thoroughly the site, components, post types, and fields are documented with AI instructions.Show 5 fields Hide
-
coveragePercentnumber requiredExample 88.89
-
documentedItemsinteger requiredExample 16
-
missingPathsarray of string required -
totalItemsinteger requiredExample 18
-
undocumentedItemsinteger requiredExample 2
-
-
postTypesarray of PostType requiredShow 16 fields Hide
-
capabilitiesPostTypeCapabilities requiredShow 5 fields Hide
-
deleteboolean requiredDefault true
-
draftboolean requiredDefault true
-
localizeboolean requiredDefault false
-
publishboolean requiredDefault true
-
scheduleboolean requiredDefault true
-
-
createdAtstring, date-time required -
displayFieldstringExample title
-
fieldsarray of FieldDefinition requiredShow 21 fields Hide
-
aiWritablebooleanDefault true
-
constraintsFieldConstraintsTyped validation and structural constraints covering all 19 canonical OvertCMS field types.Show 51 fields Hide
-
allowChecklistsboolean -
allowCustomboolean -
allowEmbedsboolean -
allowInlineMediaboolean -
allowRelativeboolean -
allowedBlocksarray of any -
allowedComponentsarray of any -
allowedHostsarray of any -
allowedMarksarray of any -
allowedMimeTypesarray of any -
allowedSchemesarray of any -
aspectRatiostringExample 16:9
-
componentRefstring -
disallowH1boolean -
disallowHtmlboolean -
fieldsarray of any -
formatstringAllowed:
plainemailcolorDefault plain
-
integerboolean -
integritystringAllowed:
strongweakDefault strong
-
jsonSchemaobject -
lengthUnitstringAllowed:
graphemesutf16Default graphemes
-
maxnumber -
maxBytesinteger, int64min 1
-
maxDatestring, date -
maxDateTimestring, date-time -
maxDurationMsinteger, int64min 1
-
maxItemsintegermin 1
-
maxLengthintegermin 1
-
maxLinesintegermin 1
-
maxTimestringExample 17:00:00
-
maxWordsintegermin 1
-
minnumber -
minDatestring, date -
minDateTimestring, date-time -
minHeightintegermin 1
-
minItemsintegermin 0
-
minLengthintegermin 0
-
minTimestringExample 09:00:00
-
minWidthintegermin 1
-
minWordsintegermin 0
-
multipleboolean -
ofListItemSpecElement schema of a list field. -
optionsarray of any -
patternstring -
precisionintegermin 0
-
requireAltboolean -
stepnumber -
strictnessstringAllowed:
strictsanitizeDefault strict
-
targetsarray of any -
trimboolean -
uniqueItemsboolean
-
-
defaultValueany -
deprecatedbooleanDefault false
-
descriptionstringmax length 500
-
fieldIdstring, uuidImmutable UUIDv7 assigned by the server. -
filterablebooleanDefault false
-
instructionstringmax length 2000, Example Concise, punchy headline under 80 characters.
-
keystring requiredExample title
-
labelstring requiredExample Title
-
localizedbooleanDefault false
-
readOnlybooleanDefault false
-
replacedBystring -
requiredbooleanExample true
-
requiredOnstringAllowed:
draftpublishDefault publish
-
searchEndpointstring read onlyPopulated automatically on reference fields.Example /agent/v1/collections/posts/fields/author/options
-
sortablebooleanDefault false
-
typestring requiredAllowed:
stringtextslugrich_htmlnumberbooleandatedatetimetimeurlselectreferenceimageaudiovideofileobjectlistjsonExample string
-
uiFieldUICosmetic authoring UI hints (excluded from schema fingerprints).Show 4 fields Hide
-
groupstringExample SEO
-
orderintegerExample 10
-
placeholderstringExample Write a concise headline...
-
widthstringExample full
-
-
uniquebooleanDefault false
-
writablebooleanDefault true
-
-
idstring, uuid required -
instructionstringExample Long-form technical articles for the engineering blog.
-
kindstring requiredAllowed:
collectionsingletonExample collection
-
pluralNamestring requiredExample Posts
-
schemaFingerprintstring requiredExample sha256:3c9e14a8f10d4b7c9f44a0d5c8b6e12a
-
schemaVersioninteger requiredExample 2
-
singularNamestring requiredExample Post
-
siteIdstring, uuid required -
slugstring requiredExample posts
-
slugSourceFieldstringExample title
-
updatedAtstring, date-time required -
urlTemplatestringExample /blog/{slug}
-
-
schemaFingerprintstring requiredExample sha256:6d4f8a1e9b02c5f7a123456789abcdef
-
schemaVersioninteger requiredExample 4
-
siteSiteSchemaInfo requiredShow 7 fields Hide
-
baseUrlstring, uri requiredExample https://example.com
-
defaultLocalestring requiredExample en
-
instructionstring requiredExample Write in clear, concise, active voice.
-
localesarray of string required -
namestring requiredExample OvertCMS Blog
-
slugstring requiredExample default
-
timezonestring requiredExample UTC
-
-
-
401 Missing, invalid, expired, or revoked Agent API key (cookies and human JWTs are rejected).
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-
-
403 API key lacks required scope, post-type access, or IP allowlist match.
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-
-
429 Per-key RPM rate limit, daily write cap, or daily media byte quota exceeded.
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-