Media Manager

Create File

POST/api/v1/media-manager/files

Create a media file from Base64 data in a JSON body.

Prefer Upload File (multipart) for real files. Base64 inflates the payload by about a third, and JSON request bodies are limited to 100 KB, so this endpoint only suits very small files (about 75 KB or less). The multipart endpoint streams files up to 25 MB.

Request

Authorization

Bearer Token

Provide your API token in the Authorization header. See Authentication to issue one.

Example:Authorization: Bearer ********************

Body Paramsapplication/json
  • datastringrequired

    File content, Base64-encoded.

  • fileNamestringrequired

    File name including extension.

  • mimeTypestringrequired

    MIME type, e.g. image/png.

  • titlestringoptional
  • descriptionstringoptional
  • altTextstringoptional
  • folderIdstring | nulloptional

    Target folder ID (optional).

  • isFavoritebooleanoptional
  • isPrivatebooleanoptional
  • sortOrderintegeroptional

Responses

200

OK

  • dataobjectrequired
    Child attributes
    • idstringrequired
    • uploadIdstringrequired
    • folderIdnullrequired
    • titlestringrequired
    • descriptionstringrequired
    • altTextstringrequired
    • sortOrderintegerrequired
    • isFavoritebooleanrequired
    • isPrivatebooleanrequired
    • createdAtstringrequired
    • updatedAtstringrequired
    • uploadobjectrequired
      Child attributes
      • idstringrequired
      • fileNamestringrequired
      • fileSizeintegerrequired
      • fileUrlstringrequired