Agent API (AI & Automation) Entries & Batch
Create an entry (or run a dry-run validation)
/agent/v1/collections/{postType}/entries Creates a new entry in draft (default, requires entries:write) or directly in published/scheduled (additionally requires entries:publish). Pass dryRun=true (query or body) to validate and inspect normalized data and warnings without persisting.
Authentication
- Bearer token
BearerApiKeyScoped Agent API key (
Authorization: Bearer ocms_...). Human JWTs and browser cookies are rejected on the Agent Plane.
Path parameters
-
postTypestring requiredCollection post type slug.
Query parameters
-
dryRunbooleanWhentrue, validates without persisting and returns HTTP 200.Default false
Headers
-
If-Schema-FingerprintstringOptional precondition header with the caller's cached schema fingerprint. Exact match proceeds silently; non-breaking capability gain proceeds withX-Schema-Warning; breaking drift returns409 schema_drift_detected. -
Idempotency-KeystringUnique client-generated key (max 128 chars) for atomic mutation deduplication and safe retries (24h receipt retention, scoped per actor).
Request body application/json required
-
commitMessagestringExample Initial draft
-
dataobject required -
dryRunbooleanWhen true, validates and returns normalizedData/warnings without persisting.Default false
-
localestringExample en
-
scheduledAtstring, date-timeRequired when status is scheduled (must be >30s in the future). -
slugstringExample introducing-overtcms
-
statusstringAllowed:
draftpublishedscheduledDefault draft
-
translationGroupIdstring -
unpublishAtstring, date-time
Responses
-
200 Dry-run validation succeeded (no data persisted).
application/json
-
dryRunboolean -
entryEntryContent entry with dual draft/published snapshots and optimistic locking metadata.Show 25 fields Hide
-
createdAtstring, date-time required -
createdByActor requiredIdentifies the human user, API key, MCP client, or system process that initiated an action.Show 3 fields Hide
-
idstring requiredExample 0195c0a1-7e20-7000-8000-000000000042
-
kindstring requiredAllowed:
userapi_keymcpsystemExample api_key
-
namestring requiredExample Content Automation Bot
-
-
displayLabelstring requiredExample Introducing OvertCMS
-
draftDataobject required -
etagstring requiredExample sha256:9f86d081884c7d659a2feaa0c55ad015
-
idstring, uuid requiredExample 0195c0a1-7e20-7000-8000-000000000099
-
labelKeystring requiredExample introducing overtcms
-
localestring requiredExample en
-
postTypeIdstring, uuid required -
postTypeSlugstring requiredExample posts
-
publicUrlstring requiredExample https://example.com/blog/introducing-overtcms
-
publishedAtstring, date-time nullable -
publishedDataobject -
scheduledAtstring, date-time nullable -
schemaVersionAtWriteinteger requiredExample 2
-
searchKeystring requiredExample introducing overtcms
-
siteIdstring, uuid required -
slugstring requiredExample introducing-overtcms
-
statusstring requiredAllowed:
draftscheduledpublishedarchivedtrashedExample draft
-
translationGroupIdstring -
trashedAtstring, date-time nullable -
unpublishAtstring, date-time nullable -
updatedAtstring, date-time required -
updatedByActor requiredIdentifies the human user, API key, MCP client, or system process that initiated an action.Show 3 fields Hide
-
idstring requiredExample 0195c0a1-7e20-7000-8000-000000000042
-
kindstring requiredAllowed:
userapi_keymcpsystemExample api_key
-
namestring requiredExample Content Automation Bot
-
-
versioninteger requiredmin 1, Example 3
-
-
normalizedDataobject -
publicUrlstring -
schemaWarningsarray of SchemaWarningShow 5 fields Hide
-
changesarray of DriftChangeShow 6 fields Hide
-
breakingboolean requiredExample false
-
fieldstring requiredExample summary
-
kindstring requiredExample optional_field_added
-
messagestring requiredExample new optional field "summary" added
-
newValueany -
oldValueany
-
-
codestring requiredExample schema_capability_gain
-
currentFingerprintstring required -
expectedFingerprintstring required -
messagestring required
-
-
validboolean -
warningsarray of HTMLWarningShow 4 fields Hide
-
attrstringExample style
-
codestring requiredExample stripped_disallowed_attr
-
messagestring requiredExample removed disallowed attribute style on <p>
-
tagstringExample p
-
-
-
201 Entry created.
application/json
-
dryRunboolean -
entryEntryContent entry with dual draft/published snapshots and optimistic locking metadata.Show 25 fields Hide
-
createdAtstring, date-time required -
createdByActor requiredIdentifies the human user, API key, MCP client, or system process that initiated an action.Show 3 fields Hide
-
idstring requiredExample 0195c0a1-7e20-7000-8000-000000000042
-
kindstring requiredAllowed:
userapi_keymcpsystemExample api_key
-
namestring requiredExample Content Automation Bot
-
-
displayLabelstring requiredExample Introducing OvertCMS
-
draftDataobject required -
etagstring requiredExample sha256:9f86d081884c7d659a2feaa0c55ad015
-
idstring, uuid requiredExample 0195c0a1-7e20-7000-8000-000000000099
-
labelKeystring requiredExample introducing overtcms
-
localestring requiredExample en
-
postTypeIdstring, uuid required -
postTypeSlugstring requiredExample posts
-
publicUrlstring requiredExample https://example.com/blog/introducing-overtcms
-
publishedAtstring, date-time nullable -
publishedDataobject -
scheduledAtstring, date-time nullable -
schemaVersionAtWriteinteger requiredExample 2
-
searchKeystring requiredExample introducing overtcms
-
siteIdstring, uuid required -
slugstring requiredExample introducing-overtcms
-
statusstring requiredAllowed:
draftscheduledpublishedarchivedtrashedExample draft
-
translationGroupIdstring -
trashedAtstring, date-time nullable -
unpublishAtstring, date-time nullable -
updatedAtstring, date-time required -
updatedByActor requiredIdentifies the human user, API key, MCP client, or system process that initiated an action.Show 3 fields Hide
-
idstring requiredExample 0195c0a1-7e20-7000-8000-000000000042
-
kindstring requiredAllowed:
userapi_keymcpsystemExample api_key
-
namestring requiredExample Content Automation Bot
-
-
versioninteger requiredmin 1, Example 3
-
-
normalizedDataobject -
publicUrlstring -
schemaWarningsarray of SchemaWarningShow 5 fields Hide
-
changesarray of DriftChangeShow 6 fields Hide
-
breakingboolean requiredExample false
-
fieldstring requiredExample summary
-
kindstring requiredExample optional_field_added
-
messagestring requiredExample new optional field "summary" added
-
newValueany -
oldValueany
-
-
codestring requiredExample schema_capability_gain
-
currentFingerprintstring required -
expectedFingerprintstring required -
messagestring required
-
-
validboolean -
warningsarray of HTMLWarningShow 4 fields Hide
-
attrstringExample style
-
codestring requiredExample stripped_disallowed_attr
-
messagestring requiredExample removed disallowed attribute style on <p>
-
tagstringExample p
-
-
-
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
-
-
-
404 Post type not found.
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
-
-
-
409 Version conflict, schema drift detected, idempotency key conflict, or breaking change confirmation required.
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
-
-
-
422 Validation error with field-level issues.
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
-
-
-
503 Agent writes are currently paused by site kill switch.
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
-
-