Agent API (AI & Automation) Media
Get media asset metadata
/agent/v1/media/{id} Retrieves metadata for a single media asset. Requires media:read scope.
Authentication
- Bearer token
BearerApiKeyScoped Agent API key (
Authorization: Bearer ocms_...). Human JWTs and browser cookies are rejected on the Agent Plane.
Path parameters
-
idstring requiredMedia asset UUID.
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.
Responses
-
200 Media asset metadata.
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
-
-
-
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 Media asset 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
-
-
-
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
-
-