Upload 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 contentAlternatively 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 |
| RGB, 360dpi recommended |
Warning: The maximum file size is 51.2MB.
AuthorizationBearer
Authorization
default In: header
Header Parameters
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
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"}Show Media GET
Returns the resource for an uploaded image or PDF file with the given `id`, including the file's metadata and download URL.
List Production Methods GET
The endpoint lists all available production methods (such as DTG printing or embroidery) that can be used for customizing. See [Design Variants](/docs/checkout/2022-02-01/endpoints/variants/designVariant), [Create Logos](/docs/checkout/2022-02-01/endpoints/logos/createLogo) and [Design in Order](/docs/checkout/2022-02-01/endpoints/orders/createOrder). ## List Returns a collection of production methods. ### Filtering You can filter your results as follows: ##### List production methods for specified id(s) * `/production-methods?filter[id]=1` * `/production-methods?filter[id]=1,2,3` ##### List production methods for a specified handle(s) * `/production-methods?filter[handle]=dtg` * `/production-methods?filter[handle]=dtg,embroidery` ##### List production methods for a specified name * `/production-methods?filter[name]=DTG` See: [Pagination](/docs/checkout/2022-02-01/basic/pagination), [Filtering](/docs/checkout/2022-02-01/basic/filtering)