Fetch Media
Retrieve a list of images (media) from your store.
Endpoint
GET /api/imagesQuery Parameters
| Name | Type | Description |
|---|---|---|
| page | int | Page number (optional) |
| limit | int | Items per page (optional) |
Example Request
GET /api/images/search?page=1&limit=20Example Response
json
{
"results": [
{
"_id": "string",
"storeId": "string",
"src": "https://cdn.example.com/image.jpg",
"title": "Banner",
"width": 1200,
"height": 600,
"createdAt": "2024-06-01T10:00:00.000Z"
}
],
"paginate": {
"total": 1,
"per_page": 20,
"current_page": 1,
"last_page": 1
}
}