Skip to main content
Version: 2026.2

Datahub Integration

Datahub is how Headless Document content reaches frontend applications. The bundle registers "Headless Documents" as a Datahub adapter type, and adds a dedicated REST search endpoint for it:

ChapterAnswers
ConfigurationHow do I set up a Headless Documents Datahub configuration?
Search EndpointHow do I query documents through the REST endpoint, and what does it return?

Features

  • Query headless documents: query Headless Documents, including their editables and properties, through a dedicated REST endpoint.
  • Workspaces: restrict a configuration to specific document paths.
  • Permissions: control who may read, update, or delete the Datahub configuration itself.
  • Authentication: secure the REST endpoint with one or more API keys.

GraphQL

Headless Documents also register as a queryable document type in Datahub's GraphQL API (document_headlessdocument), alongside standard document types such as pages and snippets. A Datahub configuration of type graphql can query a Headless Document's editables and properties the same way it queries any other document, see Document Queries in the Datahub documentation. This is a separate path from the REST search endpoint described in this chapter, and does not require a Headless Documents adapter configuration.