Delivery API (Clients) Media
Stream a ready media asset
/delivery/v1/media/{id} Streams the binary bytes of a ready media asset with strict sandbox security headers (X-Content-Type-Options: nosniff, Content-Security-Policy, and Content-Disposition: attachment for documents/PDFs/text), immutable caching (public, max-age=31536000, immutable when public), and SHA-256 ETag conditional GET support.
Authentication
- Bearer token
BearerApiKeyoptionalOptional scoped API key (
Authorization: Bearer ocms_...) withdelivery:readscope. Required only whenOVERTCMS_DELIVERY_REQUIRE_API_KEY=true.
Path parameters
-
idstring requiredMedia asset UUID.
Headers
-
If-None-MatchstringConditional GET validator matching a previously receivedETag. Returns304 Not Modifiedwhen unchanged.
Responses
-
200 Raw binary media stream with exact verified
Content-Type.application/octet-stream
- string, binary
-
-
304 Not Modified — client cached ETag matches the current response.
-
401 Unauthorized.
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 or not yet ready.
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
-
-