For AI agents: markdown of this page — /docs-content-en/entities/sites/folders/list.md documentation index — /llms.txt

Site folders

GET /v1/sites/:id/folders

No pagination. Without parentId, lists all non-deleted folders; empty parentId selects roots only. deleted=true selects trash only.

Parameters

Parameter Type Description
id integer Positive safe integer site ID
scope string Optional KNOWLEDGE / GROUP / MAINPAGE
parentId string Omit for all folders; empty for roots; positive ID for children
deleted boolean false by default; true for trash

Requires landing key scope. Pass scope for knowledge bases, groups and MAINPAGE. State fields are read-only. Dates are ISO 8601 wall clocks without an offset: Bitrix24 does not return the timezone.

curl

Terminal
curl -X GET "https://vibecode.bitrix24.com/v1/sites/42/folders" -H "X-Api-Key: YOUR_API_KEY"

JavaScript

javascript
const response = await fetch("https://vibecode.bitrix24.com/v1/sites/42/folders", {
  method: "GET",
  headers: { "X-Api-Key": "YOUR_API_KEY" },
});
const result = await response.json();

Response

JSON
{
  "success": true,
  "data": [
    {
      "id": 7,
      "parentId": null,
      "siteId": 42,
      "indexPageId": null,
      "active": false,
      "deleted": false,
      "title": "Catalog",
      "code": "catalog",
      "createdById": 42,
      "modifiedById": 42,
      "dateCreate": "2026-10-05T14:41:37",
      "dateModify": "2026-10-05T14:41:37"
    }
  ]
}

Errors

400 INVALID_PARAMS / INVALID_SCOPE / MISSING_REQUIRED_FIELDS / READONLY_FIELD; 401 TOKEN_MISSING; 403 SCOPE_DENIED / BITRIX_ACCESS_DENIED / WRITE_BLOCKED_READONLY_KEY; 404 ENTITY_NOT_FOUND; 409 LANDING_MODULE_NOT_ENABLED; 422 BITRIX_ERROR; 429; 502 / 503.

Bitrix24: landing.site.getFolders.

Site folders