# Create List In Folder

POST https://services.leadconnectorhq.com/projects/folders/{folderId}/lists

Creates a list inside a folder so tasks can be organized under that folder.

## Authentication

Send `Authorization: Bearer <token>` using:

- **Sub-Account token: OAuth access token or Private Integration Token.** Scopes: `projects/workspace.write`

## Parameters

### Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Version` | string | Yes | API Version |

### Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `folderId` | string | Yes | Folder id |

### Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `locationId` | string | No | Location id. **Required for `channel: APP`.** Ignored for OAuth/PIT — those use the location on the auth token. Do not send in path, body, or headers. |

## OpenAPI Specification

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "HighLevel API",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://services.leadconnectorhq.com"
    }
  ],
  "paths": {
    "/projects/folders/{folderId}/lists": {
      "post": {
        "summary": "Create List In Folder",
        "operationId": "createListInFolder",
        "description": "Creates a list inside a folder so tasks can be organized under that folder.",
        "parameters": [
          {
            "name": "Version",
            "in": "header",
            "description": "API Version",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v3"
              ]
            }
          },
          {
            "name": "folderId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "example": "6a102435124ecfb348bd5508",
              "description": "Folder id"
            },
            "description": "Folder id"
          },
          {
            "name": "locationId",
            "required": false,
            "in": "query",
            "description": "Location id. **Required for `channel: APP`.** Ignored for OAuth/PIT — those use the location on the auth token. Do not send in path, body, or headers.",
            "schema": {
              "example": "ve9EPM428h8b87FE9C12Kg",
              "type": "string",
              "description": "Location id. Required for APP channel (`?locationId=`). Ignored for OAuth/PIT (token location is used). Do not send in path, body, or headers."
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectsCreateWrapperBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectsWrapperResponseDto"
                },
                "example": {
                  "id": "6a102435124ecfb348bd5508",
                  "type": "folder",
                  "name": "Client work",
                  "locationId": "ve9EPM428h8b87FE9C12Kg",
                  "color": "#3B82F6",
                  "isPrivate": false,
                  "position": "a0",
                  "createdAt": "2026-09-20T10:00:00.000Z",
                  "updatedAt": "2026-09-21T12:00:00.000Z",
                  "parentId": "6a102435124ecfb348bd5506"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectsWrapperResponseDto"
                },
                "example": {
                  "id": "6a102435124ecfb348bd5508",
                  "type": "folder",
                  "name": "Client work",
                  "locationId": "ve9EPM428h8b87FE9C12Kg",
                  "color": "#3B82F6",
                  "isPrivate": false,
                  "position": "a0",
                  "createdAt": "2026-09-20T10:00:00.000Z",
                  "updatedAt": "2026-09-21T12:00:00.000Z",
                  "parentId": "6a102435124ecfb348bd5506"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectsErrorResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectsErrorResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — missing scope or no access to this space, folder, list, or task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectsErrorResponseDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found — space, folder, list, task, comment, or recurring task missing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectsErrorResponseDto"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectsErrorResponseDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectsErrorResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": [
              "projects/workspace.write"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account.",
        "type": "http"
      },
      "Agency-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.",
        "type": "http"
      },
      "Agency-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency.",
        "type": "http"
      }
    },
    "schemas": {
      "ProjectsCreateWrapperBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Display name of the space, folder, or list",
            "example": "Marketing"
          },
          "color": {
            "type": "string",
            "description": "Hierarchy palette swatch (one of 16 values). Status `color` on status groups is unrestricted hex — not this enum. Allowed: `#3B82F6`, `#6366F1`, `#8B5CF6`, `#A855F7`, `#EC4899`, `#EF4444`, `#F97316`, `#F59E0B`, `#EAB308`, `#84CC16`, `#22C55E`, `#10B981`, `#14B8A6`, `#06B6D4`, `#0EA5E9`, `#6B7280`.",
            "example": "#3B82F6",
            "enum": [
              "#3B82F6",
              "#6366F1",
              "#8B5CF6",
              "#A855F7",
              "#EC4899",
              "#EF4444",
              "#F97316",
              "#F59E0B",
              "#EAB308",
              "#84CC16",
              "#22C55E",
              "#10B981",
              "#14B8A6",
              "#06B6D4",
              "#0EA5E9",
              "#6B7280"
            ]
          },
          "isPrivate": {
            "type": "boolean",
            "description": "Whether the resource is private. `true` requires non-empty `userIds` (add-only grants). `false` makes it public for the location; existing direct grants remain but no longer gate access while public.",
            "example": false
          },
          "userIds": {
            "description": "User IDs to grant when `isPrivate` is true (add-only). Omitting a user does not revoke — use `DELETE /projects/{spaces|folders|lists}/{id}/users/{userId}`.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "user_1"
            ]
          }
        },
        "required": [
          "name"
        ],
        "description": "Create body for a space, folder, or list. `name` is required. When `isPrivate` is true, send a non-empty `userIds` array (add-only grants). `icon` and `description` are not accepted on the public API.",
        "title": "ProjectsCreateWrapperBody"
      },
      "ProjectsWrapperResponseDto": {
        "type": "object",
        "description": "Space, folder, or list (`id` only — no `_id`)",
        "required": [
          "id",
          "type",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Resource id",
            "example": "6a102435124ecfb348bd5506"
          },
          "type": {
            "type": "string",
            "enum": [
              "space",
              "folder",
              "list"
            ],
            "description": "Resource type. Allowed: `space`, `folder`, `list`.",
            "example": "list"
          },
          "name": {
            "type": "string",
            "description": "Display name",
            "example": "Marketing"
          },
          "locationId": {
            "type": "string",
            "description": "Location id",
            "example": "ve9EPM428h8b87FE9C12Kg"
          },
          "parentId": {
            "type": "string",
            "nullable": true,
            "description": "Parent id. A folder’s parent is a space. A list’s parent is a space when the list was created directly under that space, otherwise a folder. Spaces omit this. Statuses: call Get List Statuses — do not walk parents.",
            "example": "6a102435124ecfb348bd5505"
          },
          "effectiveStatusSourceId": {
            "type": "string",
            "nullable": true,
            "description": "Id of the space whose status set applies. Null when the default set applies. Prefer Get List Statuses.",
            "example": "6a102435124ecfb348bd5506"
          },
          "color": {
            "type": "string",
            "nullable": true,
            "enum": [
              "#3B82F6",
              "#6366F1",
              "#8B5CF6",
              "#A855F7",
              "#EC4899",
              "#EF4444",
              "#F97316",
              "#F59E0B",
              "#EAB308",
              "#84CC16",
              "#22C55E",
              "#10B981",
              "#14B8A6",
              "#06B6D4",
              "#0EA5E9",
              "#6B7280"
            ],
            "description": "Hierarchy palette swatch (same 16 values accepted on create/update). Status `color` on status groups is unrestricted hex — not this enum. Allowed: `#3B82F6`, `#6366F1`, `#8B5CF6`, `#A855F7`, `#EC4899`, `#EF4444`, `#F97316`, `#F59E0B`, `#EAB308`, `#84CC16`, `#22C55E`, `#10B981`, `#14B8A6`, `#06B6D4`, `#0EA5E9`, `#6B7280`.",
            "example": "#3B82F6"
          },
          "isPrivate": {
            "type": "boolean",
            "description": "Whether the resource is private. When true, access is gated by direct grants (and ancestors). When false, the resource is public for the location; existing direct grants remain but do not gate access while public.",
            "example": false
          },
          "position": {
            "type": "string",
            "nullable": true,
            "description": "Opaque sibling sort key (lexorank). Compare as strings; do not parse as a number. Server-assigned — there is no public reorder endpoint.",
            "example": "a0"
          },
          "createdAt": {
            "type": "string",
            "description": "When the space, folder, or list was created (ISO-8601)",
            "example": "2026-09-20T10:00:00.000Z"
          },
          "updatedAt": {
            "type": "string",
            "description": "When the space, folder, or list was last updated (ISO-8601)",
            "example": "2026-09-21T12:00:00.000Z"
          }
        },
        "example": {
          "id": "6a102435124ecfb348bd5506",
          "type": "space",
          "name": "Marketing",
          "locationId": "ve9EPM428h8b87FE9C12Kg",
          "color": "#3B82F6",
          "isPrivate": false,
          "position": "a0",
          "createdAt": "2026-09-20T10:00:00.000Z",
          "updatedAt": "2026-09-21T12:00:00.000Z"
        },
        "title": "ProjectsWrapperResponseDto"
      },
      "ProjectsErrorResponseDto": {
        "type": "object",
        "description": "Error payload for non-2xx responses. Same shape on every Projects operation.\n\n`message` is a string, or a string array for validation failures.\n\n`error` is usually the HTTP reason phrase (`Bad Request`, `Unprocessable Entity`, …). Known domain values include `graph_scope_invalid` (Search list-scope failures).\n\nWhen `error` is `graph_scope_invalid`, `reason` discriminates the failure: `too_many_ids` | `non_list_type` | `duplicate_graph_scope`.",
        "required": [
          "statusCode",
          "message"
        ],
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code",
            "example": 422
          },
          "message": {
            "description": "Human-readable message, or a list of validation messages",
            "oneOf": [
              {
                "type": "string",
                "example": "Task is already in the destination list"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "dueDate must be a string"
                ]
              }
            ],
            "example": null
          },
          "error": {
            "type": "string",
            "description": "HTTP reason phrase or domain code when present. Domain codes seen today: `graph_scope_invalid`. Otherwise Nest’s reason phrase.",
            "example": "graph_scope_invalid"
          },
          "reason": {
            "type": "string",
            "description": "Present when `error` is `graph_scope_invalid`. Discriminates Search list-scope failures. Allowed: `too_many_ids`, `non_list_type`, `duplicate_graph_scope`.",
            "enum": [
              "too_many_ids",
              "non_list_type",
              "duplicate_graph_scope"
            ],
            "example": "too_many_ids"
          }
        },
        "example": {
          "statusCode": 422,
          "message": "graph.id scope may not exceed 10 list IDs",
          "error": "graph_scope_invalid",
          "reason": "too_many_ids"
        },
        "title": "ProjectsErrorResponseDto"
      }
    }
  }
}
```

## Code Examples

**cURL**

```bash
curl -L -X POST 'https://services.leadconnectorhq.com/projects/folders/<folderId>/lists' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H 'Version: v3' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "name": "Marketing",
  "color": "#3B82F6",
  "isPrivate": false,
  "userIds": [
    "user_1"
  ]
}'
```

**Node.js**

```javascript
const options = {
  method: 'POST',
  headers: {
    Authorization: 'Bearer <TOKEN>',
    Version: 'v3',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
      "name": "Marketing",
      "color": "#3B82F6",
      "isPrivate": false,
      "userIds": [
        "user_1"
      ]
  })
};

try {
  const response = await fetch('https://services.leadconnectorhq.com/projects/folders/<folderId>/lists', options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

**Python**

```python
import requests

url = "https://services.leadconnectorhq.com/projects/folders/{folderId}/lists"

headers = {
    "Authorization": "Bearer <TOKEN>",
    "Version": "v3"
}

payload = {
    "name": "Marketing",
    "color": "#3B82F6",
    "isPrivate": false,
    "userIds": [
        "user_1"
    ]
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
```

**PHP**

```php
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://services.leadconnectorhq.com/projects/folders/<folderId>/lists',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer <TOKEN>',
    'Version: v3',
    'Content-Type: application/json',
  ],
  CURLOPT_POSTFIELDS => '{
  "name": "Marketing",
  "color": "#3B82F6",
  "isPrivate": false,
  "userIds": [
    "user_1"
  ]
}',
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

**Java**

```java
HttpResponse<String> response = Unirest
  .post("https://services.leadconnectorhq.com/projects/folders/<folderId>/lists")
  .header("Authorization", "Bearer <TOKEN>")
  .header("Version", "v3")
  .header("Content-Type", "application/json")
  .body("{\"name\":\"Marketing\",\"color\":\"#3B82F6\",\"isPrivate\":false,\"userIds\":[\"user_1\"]}")
  .asString();
```

**Go**

```go
package main

import (
  "fmt"
  "net/http"
  "io"
  "strings"
)

func main() {
  url := "https://services.leadconnectorhq.com/projects/folders/<folderId>/lists"
  payload := strings.NewReader(`{
  "name": "Marketing",
  "color": "#3B82F6",
  "isPrivate": false,
  "userIds": [
    "user_1"
  ]
}`)
  req, _ := http.NewRequest("POST", url, payload)
  req.Header.Add("Authorization", "Bearer <TOKEN>")
  req.Header.Add("Version", "v3")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}
```

**Ruby**

```ruby
require 'uri'
require 'net/http'

url = URI("https://services.leadconnectorhq.com/projects/folders/<folderId>/lists")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <TOKEN>"
request["Version"] = "v3"
request["Content-Type"] = "application/json"
request.body = '{
  "name": "Marketing",
  "color": "#3B82F6",
  "isPrivate": false,
  "userIds": [
    "user_1"
  ]
}'

response = http.request(request)
puts response.read_body
```

**PowerShell**

```powershell
$headers = @{
  "Authorization" = "Bearer <TOKEN>"
  "Version" = "v3"
}

$body = '{
  "name": "Marketing",
  "color": "#3B82F6",
  "isPrivate": false,
  "userIds": [
    "user_1"
  ]
}'

$response = Invoke-RestMethod -Uri 'https://services.leadconnectorhq.com/projects/folders/<folderId>/lists' -Method 'POST' -Headers $headers -Body $body -ContentType 'application/json'
$response | ConvertTo-Json
```
