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
Changes
No recorded changes to this operation across all 3 revisions of this API.