Agent API (AI & Automation) Entries & Batch
Schedule an entry for future publication
/agent/v1/collections/{postType}/entries/{id}/schedule Transitions an entry to scheduled with scheduledAt at least 30 seconds in the future. Requires entries:publish scope.
Authentication
- Bearer token
BearerApiKeyScoped Agent API key (
Authorization: Bearer ocms_...). Human JWTs and browser cookies are rejected on the Agent Plane.
Path parameters
-
postTypestring requiredPost type slug. -
idstring requiredEntry UUID.
Headers
-
If-MatchstringOptimistic locking ETag precondition (alternative toexpectedVersion/expectedEtagin body). -
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 Schedule for product launch
-
expectedEtagstring -
expectedVersionintegermin 1, Example 2
-
scheduledAtstring, date-time requiredExample 2026-12-01T14:00:00Z
-
unpublishAtstring, date-time
Responses
-
200 Entry scheduled.
application/json
-
entryEntry requiredContent 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
-
-
-
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 Entry 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
-
-