GET
/ng-cms/media/{projectId}https://apis-spb.konso.io/ng-cms/media/{projectId}List media assets
Параметры запроса
projectIdstringThe unique identifier of the project (bucket)
searchstringSearch term applied against asset title and filename
offsetnumberпо умолчанию: 0Number of assets to skip (0-based)
limitnumberпо умолчанию: 50Maximum number of assets to return
Ответы
200Paginated list of media assets for the project.
тип: PagedApiResponse<CmsMediaAssetDto>
401Unauthorized. A valid bearer token is required.
412Precondition Failed. The project's current plan does not allow access to this resource, or payment is required to proceed.
500Unexpected server error.
тип: ApiResponse<T>
successbooleanAlways falseerrorsErrorDetail[]List of server-side errorscorrelationIdstringUnique ID for tracing the errormessagestringError messagestackstringStack trace (non-production only)Язык:
expand_more
Пример запроса
curl --request GET \
--url 'https://apis-spb.konso.io/ng-cms/media/{projectId}?offset=0&limit=50' \
--header 'Authorization: Bearer <token>'Response Example200
{
"total": 2,
"list": [
{
"id": "ma_f1e2d3c4b5a6",
"projectId": "my-project-id",
"fileName": "hero.jpg",
"title": "Hero Image",
"description": "Main banner image",
"mimeType": "image/jpeg",
"sizeBytes": 204800,
"storageProvider": "s3",
"storageKey": "hero.jpg",
"publicUrl": "https://cdn.example.com/my-project-id/hero.jpg",
"metadata": {},
"createdBy": 42,
"createdAt": "2025-05-01T09:00:00Z",
"updatedAt": null,
"updatedBy": null,
"updatedByName": null,
"publishedAt": null,
"publishedBy": null
},
{
"id": "ma_a6b5c4d3e2f1",
"projectId": "my-project-id",
"fileName": "logo.png",
"title": "Company Logo",
"description": null,
"mimeType": "image/png",
"sizeBytes": 51200,
"storageProvider": "s3",
"storageKey": "logo.png",
"publicUrl": "https://cdn.example.com/my-project-id/logo.png",
"metadata": {},
"createdBy": 42,
"createdAt": "2025-04-15T14:30:00Z",
"updatedAt": "2025-04-20T10:00:00Z",
"updatedBy": 42,
"updatedByName": "Jane Smith",
"publishedAt": null,
"publishedBy": null
}
]
}KONSO