Show Media
Returns the resource for an uploaded image or PDF file with the given id, including the file's metadata and download URL.
AuthorizationBearer
Authorization
default In: header
Path Parameters
The ID of the media.
Header Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/media/55" \ -H "X-Api-Version: 2022-02-01"{ "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"}Show Additional Instruction GET
Returns the additional instruction with the given `id`.
Upload Media POST
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.1 Content-Type: image/jpeg Content-Length: 42840 raw content ``` Alternatively the file can be sent as `multipart/form-data` in the `file` field. The following file formats are currently supported: | Type | Options | |----------|---------------------------------------| | JPG/JPEG | RGB, 360dpi recommended | | PNG | RGB, transparency, 360dpi recommended | | PDF | RGB, 360dpi recommended | **Warning:** The maximum file size is 51.2MB.