Documents

Get Library Tree

Folders and their documents, nested - the whole library in one call.

The read to build a file browser from. /library/folders and /library/documents are the flat halves of the same data.

get/library/tree

Request

  • Base URL: https://be.graph8.com/api/v1
  • URL: https://be.graph8.com/api/v1/library/tree
  • Auth: HTTP bearer

Query parameters

context_type'global' | 'campaign' | 'account'

Whose library to read. campaign and account additionally need the matching id below; without it the app reads the GLOBAL library, which is a different set of documents rather than an error.

campaign_idstring nullable

Campaign id. Only read when context_type is campaign.

account_idstring nullable

Account id. Only read when context_type is account.

Headers

Authorizationstring nullable
X-Target-Org-Idstring nullable

Response

Successful Response

dataDocumentPayload required

An open envelope for one document, folder or questionnaire.

Open on purpose: a Library document carries extraction metadata, a questionnaire carries per-provider processing detail, and a generated deal document carries structured_data and highlights whose shape is the generator's rather than this contract's. Pinning those would silently drop whatever the app learned to return that this file had not caught up on.

Changes

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