Knowledge Base Collections
Returns collections and paginated published article summaries for the board associated with your API key. A read-only key is sufficient; SSO headers are not required. See Authentication for shared setup instructions.
Query
query KnowledgeBaseCollections(
$cursor: String
$limit: Int = 15
$sort: KnowledgeBaseArticleSort = CREATED_DESC
$filter: KnowledgeBaseArticleFilter
$includeCount: Boolean! = false
$includeUntagged: Boolean! = false
) {
board {
id
knowledgeBaseTags {
id
boardId
name
color
description
articles(cursor: $cursor, limit: $limit, sort: $sort, filter: $filter) {
hasMore
cursor
totalCount @include(if: $includeCount)
nodes {
id
boardId
path
title
datePublished
dateUpdated
authors {
name
}
}
}
}
knowledgeBaseUntaggedArticles(
cursor: $cursor
limit: $limit
sort: $sort
filter: $filter
) @include(if: $includeUntagged) {
hasMore
cursor
totalCount @include(if: $includeCount)
nodes {
id
boardId
path
title
datePublished
dateUpdated
}
}
}
}
Fields and arguments
The board query exposes these knowledge base fields:
| Field | Type | Description |
|---|---|---|
knowledgeBaseTags | [KnowledgeBaseTag!]! | Collections in their configured display order. |
knowledgeBaseUntaggedArticles | KnowledgeBaseArticlesPayload! | A page of published articles without a collection. Accepts the same arguments as a collection's articles field. |
Collection
| Field | Type | Description |
|---|---|---|
id | ID! | Collection identifier. |
boardId | ID! | Identifier of the board selected by the API key. |
name | String! | Collection name. |
color | String | Optional collection color. |
description | String | Optional collection description. |
articles | KnowledgeBaseArticlesPayload! | A page of published articles in this collection. |
Article page arguments
Both KnowledgeBaseTag.articles and Board.knowledgeBaseUntaggedArticles accept:
| Argument | Type | Default | Description |
|---|---|---|---|
cursor | String | Omitted | Cursor returned by the same group's previous page. |
limit | Int | 15 | Articles per group, clamped to the range 1โ50. |
sort | KnowledgeBaseArticleSort | CREATED_DESC | Article sort order. |
filter | KnowledgeBaseArticleFilter | Omitted | Published title and article update-time filters. |
Article page
| Field | Type | Description |
|---|---|---|
nodes | [KnowledgeBaseArticle!]! | Published article summaries on this page. |
hasMore | Boolean! | Whether another page exists for this group. |
cursor | String | Next-page cursor, or null when no further page exists. |
totalCount | Int! | Matching published articles before pagination. Computed only when selected. |
Article summary
| Field | Type | Description |
|---|---|---|
id | ID! | Article identifier. |
boardId | ID! | Article's board identifier. |
path | String! | Relative article path, such as /getting-started. |
title | String! | Title from the published revision. |
datePublished | DateTime! | Article publication time. |
dateUpdated | DateTime! | Article record's last update time, which may include newer draft edits. |
authors | [KnowledgeBaseAuthor!]! | Authors with the board's public identity settings applied. |
Each author exposes id: ID!, name: String!, color: String, and image: KnowledgeBaseAuthorImage. The optional image exposes url: String!.
Pagination and filters
Each collection and the untagged group have their own page. Pass a group's returned cursor unchanged to load its next page. That cursor advances only its own group; other groups return their first page. Append only the requested group's results.
Keep the same sort and filters while loading subsequent pages. When either changes, omit the cursor to start from the first page.
The supported sorts are CREATED_DESC, CREATED_ASC, UPDATED_DESC, UPDATED_ASC, TITLE_ASC, and TITLE_DESC. Title sorting uses the published title.
| Filter field | Type | Description |
|---|---|---|
title | String | Case-insensitive substring of the published title. |
updatedAfter | DateTime | Include articles updated at or after this time. |
updatedBefore | DateTime | Include articles updated before this time. |
Update-time filters use the article's dateUpdated, including draft edits to an already-published article.
Visibility
Only enabled, publicly readable knowledge bases with knowledge base subscription access are returned. Disabled, private, password-protected, or expired knowledge bases return an empty collection list and an empty untagged page. SSO headers do not override these restrictions.
Articles must be published with a publication date at or before the request time. Titles come from the published revision, even when a newer draft exists. This API returns summaries; article bodies are unavailable. Authors use the board's public name and image privacy settings.
Collections follow the board's configured display order, including empty collections.