> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/011_documents/018__list_company_folders.md).

# 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

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

```

## Variables

```json
{}
```

## Response

```json
{
  "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"
        }
      ]
    }
  }
}
```
