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). 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.
Authorizations
Parameters
Query Parameters
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 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.
Header Parameters
Responses
200
Successful Response
object
object
422
Validation Error