Agent API (AI & Automation) Media
Create a presigned upload intent for large media
/agent/v1/media/upload-intent Creates a pending_upload media record and returns a time-limited presigned PUT target (S3 SigV4 URL or HMAC-signed /agent/v1/media/{id}/upload?token=...). Follow with PUT to the returned URL and POST /agent/v1/media/{id}/complete. Requires media:write scope.
Authentication
- Bearer token
BearerApiKeyScoped Agent API key (
Authorization: Bearer ocms_...). Human JWTs and browser cookies are rejected on the Agent Plane.
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
-
altstring -
byteSizeinteger, int64 requiredmin 1, Example 52428800
-
captionstring -
contentTypestring requiredExample video/mp4
-
creditstring -
expiresAtstring, date-time -
filenamestring requiredExample product-demo.mp4
-
focalPointFocalPointNormalized [0, 1] focal coordinates for smart image cropping.Show 2 fields Hide
-
xnumber requiredmin 0, max 1, Example 0.5
-
ynumber requiredmin 0, max 1, Example 0.35
-
-
isEphemeralbooleanDefault false
-
titlestring
Responses
-
201 Upload intent created.
application/json
-
assetMediaAsset requiredStored media asset with magic-byte-verified MIME type, dimensions, and editorial metadata.Show 24 fields Hide
-
byteSizeinteger, int64 requiredExample 184320
-
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
-
-
creditstring -
defaultAltstringExample Architectural diagram of OvertCMS three planes
-
defaultCaptionstring -
defaultTitlestring -
durationMsinteger, int64 -
expiresAtstring, date-time nullable -
extensionstring requiredExample .webp
-
filenamestring requiredExample hero-banner.webp
-
focalPointFocalPointNormalized [0, 1] focal coordinates for smart image cropping.Show 2 fields Hide
-
xnumber requiredmin 0, max 1, Example 0.5
-
ynumber requiredmin 0, max 1, Example 0.35
-
-
heightintegerExample 900
-
idstring, uuid required -
isEphemeralboolean requiredExample false
-
kindstring requiredAllowed:
imageaudiovideodocumentExample image
-
mimeTypestring requiredExample image/webp
-
sha256stringExample e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
-
siteIdstring, uuid required -
statusstring requiredAllowed:
pending_uploadprocessingreadyfailedExample ready
-
storageKeystring required -
updatedAtstring, date-time required -
urlstring requiredExample /delivery/v1/media/0195c0a1-7e20-7000-8000-000000000077
-
widthintegerExample 1600
-
-
uploadPresignedUpload requiredShow 4 fields Hide
-
expiresAtstring, date-time required -
headersmap of string -
methodstring requiredAllowed:
PUTExample PUT
-
urlstring requiredExample /agent/v1/media/0195c0a1-7e20-7000-8000-000000000077/upload?token=eyJ...
-
-
-
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
-
-
-
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
-
-