For the complete documentation index, see llms.txt. This page is also available as Markdown.

Upload File

Upload one file to a media-library directory.

Send one file using multipart/form-data and optionally directoryPath (the root is the default). The maximum file size is 25 MiB. This operation uploads library media; it does not create a Gallery.

Requires the files:write scope.

post
Authorizations
AuthorizationstringRequired

API key sent as a bearer token (mk_live_… / mk_test_…).

Body
filestring · binaryRequired
directoryPathstringOptionalDefault: /
Responses
201

Created.

application/json
post/v1/files/upload
POST /v1/files/upload HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 37

{
  "file": "binary",
  "directoryPath": "/"
}
{
  "data": {
    "type": "text",
    "assetId": "text",
    "directoryPath": "text",
    "name": "text",
    "extension": "text",
    "mimeType": "text",
    "sizeBytes": 1,
    "url": "text",
    "createdAt": "text",
    "modifiedAt": "text",
    "revisionsNumber": 1,
    "width": 1,
    "height": 1,
    "aspectRatio": "text"
  }
}

Last updated

Was this helpful?