Skip to content

List Global Context Documents

GET
/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.

Authorizations

Parameters

Query Parameters

category
Any of:
string

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_content

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.

boolean
default: true

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_intelligence

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).

boolean

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_research

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).

boolean

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).

limit
integer
default: 50 >= 1 <= 200

Header Parameters

X-Target-Org-Id
Any of:
string

Responses

200

Successful Response

object
data
required
Array<object>
object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string