GET
/v2/cms/contents/{projectId} https://apis-spb.konso.io/v2/cms/contents/{projectId} Get contents
Параметры запроса
contentId number Filter by specific content ID
pageId number Filter by page ID
type number Filter by content type ID
slug string Filter by content slug (supports base64 encoding)
q string Search query for content
category number Filter by category ID
isPublished boolean Filter by published status
isLatest boolean Filter for latest content only
sort number Sort order (0-4, representing different sorting types)
from number Starting index for pagination (default: 0)
to number Ending index for pagination (default: 1)
Ответы
200 Contents retrieved successfully
тип: PagedResponse<ContentDto>
Язык:
expand_more
Пример запроса
curl --request GET \
--url 'https://apis-spb.konso.io/v2/cms/contents/{projectId}?category=1&isPublished=true&from=0&to=10' \
--header 'x-api-key: {your-api-key}' Response Example 200
{
"list": [
{
"id": 1,
"title": "My Article",
"slug": "my-article",
"summary": "Brief summary",
"isPublished": true,
"categoryId": 1
}
],
"total": 25
} KONSO