Skip to main content

Upload a media file

Method: POST

URL: https://example.com/<MIXPOST_CORE_PATH>/api/<workspaceUuid>/media

Authorization: Bearer <token>

Body:

{
"file": binary,
}
KeyFormatRequiredDescription
filebinaryrequiredFile binary.

Response:

{
"id": "1",
"uuid": "511b8c2d-c424-3a6a-a154-be271418ff01",
"name": "blue.png",
"mime_type": "image/png",
"type": "image",
"url": "https://your-domain.com/storage/2576cb55-ab0f-3708-9388-6d03290fcb3f/uploads/03-2024/HsqEvFqHQYEU14DARrqULDnvoh7GMYopQGqYGhoi.png",
"thumb_url": "https://your-domain.com/storage/2576cb55-ab0f-3708-9388-6d03290fcb3f/uploads/03-2024/HsqEvFqHQYEU14DARrqULDnvoh7GMYopQGqYGhoi-thumb.png",
"is_video": false,
"created_at": "2024-03-29 15:33:23"
}