Admin API (Dashboard & Team) Media
Verify and finalize a presigned media upload
/admin-api/v1/sites/{siteSlug}/media/{id}/complete Quarantines staged bytes, sniffs magic bytes & dimensions, deduplicates via SHA-256, and marks the asset ready. Requires media:upload capability.
Authentication
- overtcms_access cookie
SessionCookieHttpOnly SameSite=Lax access token cookie issued by login/setup/refresh. State-changing requests (
POST,PATCH,PUT,DELETE) authenticated via cookie must also send a matching same-originOriginheader for CSRF protection. - Bearer token
BearerJWTHuman Admin access JWT returned by login/setup/refresh/step-up. Agent API keys (
ocms_...) are rejected on the Admin Plane.
Path parameters
-
siteSlugstring requiredSite slug. -
idstring requiredPending media asset UUID.
Headers
-
OriginstringSame-origin header required by CSRF protection on state-changing requests authenticated viaovertcms_accesscookie. -
Idempotency-KeystringOptional unique key (max 128 chars) for atomic mutation deduplication.
Responses
-
200 Upload verified and finalized.
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
-
-
deduplicatedboolean requiredTrue when identical SHA-256 bytes already existed on this site (HTTP 200 instead of 201).Example false
-
-
401 Unauthenticated — missing or expired session cookie / JWT (API keys 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 Forbidden — insufficient RBAC role capability, CSRF Origin mismatch, post-type restriction, or step-up MFA 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
-
-
-
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
-
-
-
409 Conflict — optimistic lock mismatch, uniqueness conflict, breaking change confirmation required, or strong references.
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
-
-