Create Media
Create a new media object.
Media created in this way will be empty. You can add either new or existing files using the Files endpoints.
Authorization
Request Body
application/json
RequiredThe request body should contain a properly formatted JSON object with one or more of title
, alt
, or metadata
properties. See Media Object for more details.
title
stringalt
stringmetadata
objectHeader Parameters
Accept-Version
stringSpecifies the API Version
Default:
"2025-08-20"
Value in: "2025-08-20" | "latest"
Response Body
Success
id
Requiredstringobject
Requiredstringkind
stringValue in:
"video" | "image" | "audio"
title
stringalt
stringwidth
integerheight
integerduration
numberFormat:
"float"
files
Requiredarray<object>urls
Requiredobjectbackground
stringmetadata
objectcreated
RequiredstringFormat:
"date-time"
updated
RequiredstringFormat:
"date-time"