Media
Upload pictures to the store's media library and list the files already in it. Use the reference you get back in the gallery of a product.
Both endpoints need a permission only an app can hold, so they accept an app access token only.
Upload an Image
POST
/v1/mediaPermission required:
media:writeSend the image as multipart/form-data, the one write of the API that is not a JSON body. Storeep reads the type from the file itself, never from its name or its Content-Type.
- A JPEG, PNG, BMP or AVIF is converted to WebP.
- An image wider than 1,600 px, or taller than 16,383 px, is scaled down to fit, keeping its proportions.
- A WebP inside those bounds is stored as it is, and so is a GIF.
- Two smaller copies, 400 and 800 px wide, are made for the storefront.
- A file that cannot be decoded is refused.
- Uploading from an address is not offered: send the file itself. Videos are not accepted either.
Form Fields
| Field | Type | Required | Description |
|---|---|---|---|
file | file | Yes | One JPEG, PNG, WebP, GIF, AVIF or BMP image of at most 5 MB and 50 megapixels (16 for a GIF). |
name | string | No | The name the merchant sees in the media library, at most 255 characters. Defaults to the file name. |
Example Request
cURL
curl -X POST "https://api.storeep.com/v1/media" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-F "file=@shirt.jpg" \
-F "name=Classic cotton t-shirt, front"Response
201 Created
{
"data": {
"media_id": "385397998164644668",
"reference": "385397998164644668.webp",
"url": "https://cdn.storeep.com/m/234567890123456789/385397998164644668.webp",
"kind": "image",
"extension": "webp",
"name": "Classic cotton t-shirt, front",
"size": 48210,
"width": 1200,
"height": 1200,
"duration": null,
"status": "ready",
"remaining_today": 999,
"note": "The file is in the media library. Pass the reference in the media list of POST /v1/products or PATCH /v1/products/{id}."
}
}422 Unprocessable Entity
{
"status": "error",
"errors": [
"the file is a application/pdf file, only jpeg, png, webp, gif, avif and bmp images can be uploaded"
]
}Put the reference in the media list of Create Product or Update Product. A product only takes references from its own store's library.
Limits
| Limit | Value | Answer when reached |
|---|---|---|
| File size | 5 MB per image | 422, or 413 when the body is far larger |
| Uploads through the API per store | 1,000 images in any rolling 24 hours | 422 |
| All uploads of a store | 300 files or 2 GB in one hour, the dashboard included | 422 |
| Writes of your app per store | 1,000 in any 24 hours, each upload counts as one | 429, see Rate Limits |
List Media
GET
/v1/mediaPermission required:
media:readLists the files of the library, newest first. A video still being processed is left out until it is ready. To read the next page, send the next_cursor of the page you have, or follow links.next. The last page answers null for both.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 20 | Number of files per page. Range: 1–50. |
cursor | string | None | The next_cursor of the previous page. Leave it out for the first page. |
Example Request
cURL
curl "https://api.storeep.com/v1/media?limit=2" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Response
200 OK
{
"data": [
{
"media_id": "385397998164644668",
"reference": "385397998164644668.webp",
"url": "https://cdn.storeep.com/m/234567890123456789/385397998164644668.webp",
"kind": "image",
"extension": "webp",
"name": "Classic cotton t-shirt, front",
"size": 48210,
"width": 1200,
"height": 1200,
"created_at": "2026-11-29 10:30:00"
},
{
"media_id": "385391204417163275",
"reference": "385391204417163275.mp4",
"url": "https://cdn.storeep.com/m/234567890123456789/385391204417163275.mp4",
"kind": "video",
"extension": "mp4",
"name": "Unboxing",
"size": 8143002,
"width": 1080,
"height": 1920,
"created_at": "2026-11-29 09:12:44"
}
],
"meta": {
"pagination": {
"count": 2,
"per_page": 2,
"next_cursor": "385391204417163275",
"links": {
"next": "https://api.storeep.com/v1/media?limit=2&cursor=385391204417163275"
}
}
}
}Response Fields
| Field | Type | Description |
|---|---|---|
media_id | string | Unique file identifier, sent as a string so it keeps its precision. |
reference | string | What a product's media list takes: the id and the stored extension. |
url | string | The public address of the file. |
kind | string | image, video, audio or file. |
extension | string | The stored format, webp for a converted image. |
name | string | The name shown in the media library. |
size | integer | Size in bytes of the stored file. |
width | integer | null | Width in pixels, null when the file has none. |
height | integer | null | Height in pixels, null when the file has none. |
created_at | string | When the file was added (UTC). The list only. |
status | string | Always ready for an image. The upload only. |
remaining_today | integer | Images your apps can still upload to this store in the rolling 24 hours. The upload only. |