For AI agents: markdown of this page — /docs-content-en/entities/sites/export.md documentation index — /llms.txt
Full site export
GET /v1/sites/:id/export
The export contains pages, blocks, folders, system pages and hooks, preserving Bitrix24 export-format keys. Empty export: {items:{}}. hooksDisable is a non-empty comma-separated list of hook codes. The Bitrix24 HTTP response is capped at 8 MiB: excess returns 413 SITE_EXPORT_TOO_LARGE without truncation. Unavailable in /v1/batch. AI_SITE_EXPORT_NOT_ALLOWED returns 422. Credential-bearing links become [REDACTED].
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | integer | yes | Positive safe integer site ID |
| scope | string | no | KNOWLEDGE / GROUP / MAINPAGE; omit for ordinary sites |
| hooksDisable | string | no | Non-empty comma-separated hook codes |
Requires landing key scope. A knowledge-base or group site can be invisible without scope.
curl
curl -X GET "https://vibecode.bitrix24.com/v1/sites/42/export" -H "X-Api-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://vibecode.bitrix24.com/v1/sites/42/export", {
method: "GET",
headers: { "X-Api-Key": "YOUR_API_KEY" },
});
const data = await response.json();
Response
{
"success": true,
"data": {
"items": {}
}
}
Errors
400 INVALID_PARAMS / INVALID_SCOPE; 401 TOKEN_MISSING; 403 SCOPE_DENIED / BITRIX_ACCESS_DENIED; 404 ENTITY_NOT_FOUND; 409 LANDING_MODULE_NOT_ENABLED; 422 BITRIX_ERROR; 429 rate limits; 502 / 503 upstream or transport refusal. Write operations with a READONLY key return 403 WRITE_BLOCKED_READONLY_KEY.
Bitrix24: landing.site.fullExport.