GraphQL entries query
A single GraphQL endpoint (POST /ng-cms/graphql) exposing one read-only query, entries, that lists content entries for a project/content type. It returns the same data as the REST content-entries list endpoint - filtering, sorting, pagination, and reference/media resolution all behave identically for equivalent inputs.
Параметры запроса
x-api-keystringAPI key header. Required on every request, same as the REST endpoints.
x-bucket-idstringProject/bucket ID header. Unlike REST content-entries endpoints, this GraphQL endpoint has no {projectId} route segment, so the bucket is resolved exclusively from this header - it must always be sent.
projectIdstringGraphQL argument on the entries query. Selects which project's entries to query - independent of the x-bucket-id header (which drives auth/plan/rate-limit validation only), but normally set to the same value.
typeKeystringContent type key or ID whose entries to list, e.g. "post".
statusCmsEntryStatusFilter by entry status: DRAFT, PUBLISHED, or ARCHIVED. Omit to return entries in any status.
searchstringFree-text search across entry fields.
fieldFilters[FieldFilterInput!]List of exact-match field filters, e.g. [{ key: "slug", value: "my-post" }].
excludeIds[String!]Entry IDs to exclude from the results.
offsetnumberпо умолчанию: 0Pagination offset (0-based).
limitnumberпо умолчанию: 50Max entries to return. Must be between 1 and 1000.
sortBystringпо умолчанию: "created_at"Sort field. Allowed: created_at, updated_at, published_at.
sortDirstringпо умолчанию: "desc"Sort direction. Allowed: asc, desc.
langstringFilter by entry language code.
Тело запроса
GraphQL request bodyquerystringThe GraphQL document to execute, e.g. "{ entries(projectId: \"...\", typeKey: \"post\") { total items { id } } }".
variablesobjectOptional variables object if the query uses GraphQL variables instead of inline literals.
FieldFilterInputkeystringField key to filter on, e.g. "slug".
valuestringExact value to match.
Ответы
тип: GraphQLResponse
dataobjectPresent when the query executed without errors. Contains an entries field shaped as CmsEntryConnection.entriesCmsEntryConnectionerrorsGraphQLError[]Present when the query failed. One entry per error.messagestringHuman-readable error message, e.g. "Unknown typeKey 'x' for project 'y'.", "limit must be between 1 and 1000.", "Invalid sortBy value. Allowed: created_at, updated_at, published_at."curl --request POST \
--url https://apis-spb.konso.io/ng-cms/graphql \
--header 'x-api-key: <your-api-key>' \
--header 'x-bucket-id: <your-project-id>' \
--header 'Content-Type: application/json' \
--data '{"query":"{ entries(projectId: \"<your-project-id>\", typeKey: \"post\", limit: 5) { total items { id fields } } }"}'{
"data": {
"entries": {
"total": 1,
"items": [
{
"id": "cnt_a1b2c3d4e5f6",
"type": "post",
"status": "PUBLISHED",
"fields": {
"title": "Hello World",
"slug": "hello-world",
"content": "<p>Content.</p>"
},
"createdAt": "2026-07-31T10:15:00Z"
}
]
}
}
}