---
title: "List List Folders"
method: GET
path: "/lists/folders"
tags: ["Lists"]
---

# List List Folders

`GET /lists/folders`

## Request

- Base URL: `https://be.graph8.com/api/v1`
- URL: `https://be.graph8.com/api/v1/lists/folders`
- Auth: HTTP bearer

Folders the key's org owns, plus org-visible folders owned by teammates.

`assignments` maps list id -> folder id, which is what a rebuilt Lists
screen needs to place each list without a second round trip.

The internal `list_folders` takes TWO different scope classes: a
campaign_builder `service_scope` (carrying `.is_scoped`/`.allowed_list_ids`)
and an audiences `visibility_scope`. They are resolved by distinct
dependencies - passing one object as both raises AttributeError -> 500.

## Headers

- `Authorization` string, nullable
- `X-Target-Org-Id` string, nullable

## Response `200`

Successful Response

- ApiResponseListFolderIndexResponse
  - `data` ListFolderIndexResponse, required: Folders the caller owns, plus org-visible folders owned by teammates. `folders` keeps its existing meaning - "mine". `shared_folders` is browse-only, mirroring the app so a rebuilt UI can render the same split.
    - `folders` ListFolderResponse[]
      - `id` string, uuid, required: Folder id.
      - `title` string, required: Display title.
      - `visibility` string, required: `private` (owner only) or `org` (browse-only for teammates).
      - `list_count` integer, required: Number of lists currently filed in this folder.
      - `is_owner` boolean, required: True when the calling key's org owns the folder.
      - `created_by` string, required: User id that created the folder.
      - `created_at` string, date-time, nullable
      - `updated_at` string, date-time, nullable
    - `shared_folders` ListFolderResponse[]
      - `id` string, uuid, required: Folder id.
      - `title` string, required: Display title.
      - `visibility` string, required: `private` (owner only) or `org` (browse-only for teammates).
      - `list_count` integer, required: Number of lists currently filed in this folder.
      - `is_owner` boolean, required: True when the calling key's org owns the folder.
      - `created_by` string, required: User id that created the folder.
      - `created_at` string, date-time, nullable
      - `updated_at` string, date-time, nullable
    - `assignments` object: Map of list id -> folder id for every filed list.
    - `starred_ids` integer[]: List ids the caller has starred.
  - `pagination` PaginationMeta
    - `page` integer, required: Current page number (1-indexed)
    - `limit` integer, required: Items per page
    - `total` integer, required: Total number of items
    - `has_next` boolean, required: Whether there are more pages
    - `next_cursor` string, nullable: Opaque cursor for the next page; null when there are no more items. Pass it back as the `cursor` query param to fetch the following page without computing page numbers.
    - `total_available` integer, nullable: Search endpoints only: how many records really match, when known. Can be larger than `total`, which is capped at the 10,000 results that can be paged. For company search this is a distinct-company estimate. Null when unknown; absent outside search.
    - `total_is_lower_bound` boolean, nullable: Search endpoints only: true when more records match than `total` shows (the result set is larger than the 10,000 results that can be paged). Absent outside search.
    - `notes` string[], nullable: Search endpoints only: plain-language notes about the result, e.g. that more records match than can be paged, or that a reversed `between` range was put in order.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/graph8/apis/graph8-developer-api.md) · [All operations](https://skmtc.dev/graph8/apis/graph8-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/graph8/apis/graph8-developer-api/revisions/2e7cfa0ca921?raw)
