For the complete documentation index, see llms.txt. This page is also available as Markdown.

List Company Folders

GraphQL endpoint: /company

Lists every document folder of the calling company in one response. Records reference their parent via parentId, so the whole tree can be built from a single call.

Query

query {
  companyFolders {
    records { id name parentId }
  }
}

Variables

{}

Response

{
  "data": {
    "companyFolders": {
      "records": [
        {
          "id": "00000000-0000-4000-8000-000000000001",
          "name": "Top",
          "parentId": null
        },
        {
          "id": "00000000-0000-4000-8000-000000000002",
          "name": "Child",
          "parentId": "00000000-0000-4000-8000-000000000001"
        },
        {
          "id": "00000000-0000-4000-8000-000000000003",
          "name": "Grandchild",
          "parentId": "00000000-0000-4000-8000-000000000002"
        }
      ]
    }
  }
}

Last updated