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.
API key sent as a bearer token (mk_live_… / mk_test_…).
/Created.
Invalid request data.
Missing or invalid API key.
The API key lacks the required scope (scope_denied), or the operation is not permitted for this account (operation_not_permitted).
Resource not found.
Request body exceeds the supported size.
The API key exceeded its request rate (rate_limit_exceeded) or its monthly quota (quota_exceeded). Both carry Retry-After; the RateLimit-* headers accompany rate_limit_exceeded only, since a spent quota says nothing about the bucket.
Internal server error.
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?