Docs

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/media
Permission required: media:write

Send 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

FieldTypeRequiredDescription
filefileYesOne JPEG, PNG, WebP, GIF, AVIF or BMP image of at most 5 MB and 50 megapixels (16 for a GIF).
namestringNoThe 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

LimitValueAnswer when reached
File size5 MB per image422, or 413 when the body is far larger
Uploads through the API per store1,000 images in any rolling 24 hours422
All uploads of a store300 files or 2 GB in one hour, the dashboard included422
Writes of your app per store1,000 in any 24 hours, each upload counts as one429, see Rate Limits

List Media

GET/v1/media
Permission required: media:read

Lists 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

ParameterTypeDefaultDescription
limitinteger20Number of files per page. Range: 1–50.
cursorstringNoneThe 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

FieldTypeDescription
media_idstringUnique file identifier, sent as a string so it keeps its precision.
referencestringWhat a product's media list takes: the id and the stored extension.
urlstringThe public address of the file.
kindstringimage, video, audio or file.
extensionstringThe stored format, webp for a converted image.
namestringThe name shown in the media library.
sizeintegerSize in bytes of the stored file.
widthinteger | nullWidth in pixels, null when the file has none.
heightinteger | nullHeight in pixels, null when the file has none.
created_atstringWhen the file was added (UTC). The list only.
statusstringAlways ready for an image. The upload only.
remaining_todayintegerImages your apps can still upload to this store in the rolling 24 hours. The upload only.