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

category
Any of:
string

Filter by context category

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.

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
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

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