SmakeSmake API Docs
EndpointsMedia

Upload Media

POST
/media

In the Media section you can upload image or PDF files to use them in other parts of the system by referencing the Media ID, for example as a logo's production file or a shipment document.

The request body is the raw file content; set the Content-Type header to the file's mime type (and Content-Length to its size), e.g.:

POST /media HTTP/1.1Content-Type: image/jpegContent-Length: 42840raw content

Alternatively the file can be sent as multipart/form-data in the file field.

The following file formats are currently supported:

TypeOptions
JPG/JPEGRGB, 360dpi recommended
PNGRGB, transparency, 360dpi recommended
PDFRGB, 360dpi recommended

Warning: The maximum file size is 51.2MB.

AuthorizationBearer
AuthorizationBearer <token>

In: header

Header Parameters

X-Api-Version?string

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

Request example
curl -X POST "https://example.com/media" \  -H "X-Api-Version: 2022-02-01" \  -F file="string"
{  "id": 55,  "is_test": 0,  "collection_name": "mockup",  "file_name": "front.png",  "size": 182044,  "mime_type": "image/png",  "download_url": "https://api.smake.io/v2/apps/1/media/55/download",  "state": "completed",  "requested": {    "url": "https://cdn.example.org/front.png"  },  "failure_message": null,  "created_at": "2026-04-01T10:00:00+00:00",  "updated_at": "2026-04-01T10:00:00+00:00"}