GuidesAPI ReferenceChangelog
Guides

Wiki API available queries

Details of the available queries and types in the Wiki GraphQL API.

The query type defines the operations you can use to retrieve wiki content.

list

Fetch a list of articles with filter and pagination options.

Return type: PageListResult

Arguments

NameTypeRequiredDescription
limitIntNoMaximum number of pages to return.
offsetIntNoNumber of items to skip (pagination).
orderByPageOrderByNoField to sort by. Possible values: CREATED, ID, PATH, TITLE, UPDATED.
orderByDirectionPageOrderByDirectionNoSort direction. Possible values: ASC, DESC.
tags[String!]NoFilter pages by tags. Matches any tag by default, or all tags when isTagsLogicAnd is true.
isTagsLogicAndBooleanNoWhen true, tags filter uses AND logic, otherwise OR logic.
ids[String!]NoRestrict results to the specified page IDs.
searchStringNoSearch term to match in page metadata or content.
publicationStateBooleanNoFilter by publication status. true = published, false = unpublished.
countBooleanNoWhen true, only the totalCount is returned. Items may be omitted based on permissions.

single

Fetch a single article and its details.

Return type: Page

Arguments

NameTypeRequiredDescription
idInt!YesID of the page to retrieve.

Types

GraphQL types describe the structure of the data returned by queries. They define the fields available on each resource and the format of their values.

PageListResult

The response of a call to the list endpoint.

Fields

NameTypeDescription
items[PageListItem]List of pages returned for the current query or filters.
totalCountIntTotal number of matching pages across all pages in the database.

PageTag

A tag associated with pages

Fields

NameTypeNullableDescription
idInt!NoUnique identifier of the tag.
tagString!NoMachine-readable tag value (slug).
titleStringYesHuman-friendly display name of the tag.

PageListItem

A wiki article representation returned in a list query.

Fields

NameTypeNullableDescription
idInt!NoUnique identifier of the page.
pathString!NoCanonical path (slug) of the page.
localeString!NoLocale code of the page (for example, en).
titleStringYesTitle of the page.
descriptionStringYesSummary or short description.
contentTypeString!NoContent type (for example, markdown, html).
isPublishedBoolean!NoWhether the page is published.
isPrivateBoolean!NoWhether the page is private.
preventScrapingBoolean!NoWhether scraping of this page is disabled.
privateNSStringYesPrivate namespace identifier.

Page

A full representation of a wiki article.

Fields

NameTypeNullableDescription
idInt!NoUnique identifier of the page.
pathString!NoCanonical path (slug) of the page.
titleString!NoTitle of the page.
descriptionString!NoShort description or summary of the page.
isPrivateBoolean!NoWhether the page is private.
isPublishedBoolean!NoWhether the page is published.
preventScrapingBoolean!NoWhether scraping is disabled for this page.
privateNSStringYesPrivate namespace identifier.
publishStartDateDate!NoPublishing start timestamp.
publishEndDateDate!NoPublishing end timestamp.
tags[PageTag]!NoTags associated with the page.
renderStringNoServer-rendered HTML content. Use this to display in frontend.
scriptCssStringYesCustom CSS required by the article.
scriptJsStringYesCustom JavaScript required by the article.
contentTypeString!NoContent type (for example, markdown, html).
createdAtDate!NoCreation timestamp.
updatedAtDate!NoLast update timestamp.
localeString!NoLocale code (for example, en).
authorIdInt!NoID of the author or last editor.
authorNameString!NoName of the author or last editor.
authorEmailString!NoEmail of the author or last editor.
creatorIdInt!NoID of the creator.
creatorNameString!NoName of the creator.
creatorEmailString!NoEmail of the creator.

Enums

Enums define the possible sets of values for a field.

PageOrderBy

Field that can be used to order the results of list.

Values

  • ID: Page ID (sequential integer).
  • PATH: Page path.
  • TITLE: Page title.
  • UPDATED: Last update date.
  • CREATED: Creation date.

PageOrderByDirection

Direction to sort the list results.

Values

  • ASC: Ascending order.
  • DESC: Descending order.