GTM Context

List Global Context Documents

List global context documents for the authenticated organization.

Each row carries metadata (id, display_name, file_type, category, folder_path, status, priority, version, timestamps), plus wiki_category (the group the Studio Wiki shows it under) and workflow (context, intelligence or research). When include_content is True (the default) the document body is included at content (sourced from meta_data.content) so callers can read what a document actually says; pass include_content=false to omit the body for a cheaper listing. The default stays True for backwards compatibility — the MCP g8_gtm_get_global_context tool, the JS SDK studio.globalContext client, and the g8://global-context resource surfaces have always relied on content being present.

include_intelligence / include_research add the Wiki's other two buckets so a caller can see every Wiki document in one call; limit applies to each bucket.

get/global-context/documents

Request

  • Base URL: https://be.graph8.com/api/v1
  • URL: https://be.graph8.com/api/v1/global-context/documents
  • Auth: HTTP bearer

Query parameters

categorystring nullable

Filter by context category: brand, audience, messaging, market, offer, targeting, data (case-insensitive). targeting matches the Studio Wiki's Targeting group (TAM / ICP / Persona Research). An unknown category that matches no document returns 422 listing the valid categories.

include_contentboolean

Include each document's body text at content (read from meta_data.content). Default True preserves historical behavior (this endpoint has always returned content); pass false for a lighter metadata-only listing.

include_intelligenceboolean

Also list the Wiki's Intelligence documents (website scrape, competitor discovery, organic keywords, brand news, ...) with workflow='intelligence' and category 'data'. Metadata only: read a body with GET /intelligence-data ?data_type=<file_type>&include_content=true. Default false (historical shape).

include_researchboolean

Also list the Wiki's Research reports with workflow='research' and category 'data'; content carries the report markdown when include_content is true. Default false (historical shape).

limitinteger

Headers

Authorizationstring nullable
X-Target-Org-Idstring nullable

Response

Successful Response

dataobject[] required

Changes

No recorded changes to this operation across all 2 revisions of this API.