[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fpages\u002Fblock-get":3,"docs-tabs-entities\u002Fpages\u002Fblock-get":6},{"content":4,"lastmod":5},"## Read a page block\n\n`GET \u002Fv1\u002Fpages\u002F:pageId\u002Fblocks\u002F:blockId`\n\nReturns the metadata of one page block. The draft is always read, so unpublished blocks are visible too.\n\nRequires the `landing` scope. A read-only key works. No request body is sent.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `pageId` (path) | number | yes | Page ID. List: [`GET \u002Fv1\u002Fpages`](\u002Fdocs\u002Fentities\u002Fpages\u002Flist) |\n| `blockId` (path) | number | yes | ID of a block on page `pageId`. List: [`GET \u002Fv1\u002Fpages\u002F:pageId\u002Fblocks`](\u002Fdocs\u002Fentities\u002Fpages\u002Fblocks\u002Flist) |\n| `scope` (query) | string | no | Site type: `KNOWLEDGE` — knowledge base, `GROUP` — workgroup site, `MAINPAGE` — main page. Omit the parameter for pages of other sites |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fpages\u002F3\u002Fblocks\u002F4975\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fpages\u002F3\u002Fblocks\u002F4975\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst response = await fetch(\"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fpages\u002F3\u002Fblocks\u002F4975\", {\n  headers: {\"X-Api-Key\": \"YOUR_API_KEY\"},\n})\nconst result = await response.json()\nif (!response.ok) throw new Error(result.error.message)\nconsole.log(result.data)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst response = await fetch(\"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fpages\u002F3\u002Fblocks\u002F4975\", {\n  headers: {\"X-Api-Key\": \"YOUR_APP_KEY\", \"Authorization\": \"Bearer USER_SESSION_TOKEN\"},\n})\nconst result = await response.json()\nif (!response.ok) throw new Error(result.error.message)\nconsole.log(result.data)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | Always `true` on success |\n| `data` | object | Block metadata |\n| `data.id` | number | Block ID |\n| `data.pageId` | number | ID of the page the block belongs to |\n| `data.code` | string | Block code from the catalog. List of codes: [`GET \u002Fv1\u002Fblock-repository`](\u002Fdocs\u002Fentities\u002Fpages\u002Fcatalog) |\n| `data.name` | string | Block name |\n| `data.active` | boolean | Whether the block is active in the page draft |\n| `data.dateCreate` | string \\| null | Creation date in ISO 8601 format without a timezone — the Bitrix24 account's local time |\n| `data.dateModify` | string \\| null | Last modification date in the same format |\n| `data.createdById` | number \\| null | ID of the employee who created the block. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `data.modifiedById` | number \\| null | ID of the employee who last modified the block. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 4975,\n    \"pageId\": 3,\n    \"code\": \"26.3.separator\",\n    \"name\": \"Downward color transition\",\n    \"active\": true,\n    \"dateCreate\": \"2021-11-25T19:12:32\",\n    \"dateModify\": \"2026-02-09T23:01:30\",\n    \"createdById\": 1,\n    \"modifiedById\": null\n  }\n}\n```\n\n## Error response example\n\n404 — the block belongs to another page:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Block not found in this page.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 404 | `ENTITY_NOT_FOUND` | `Block not found in this page.` — the block exists but belongs to another page |\n| 404 | `ENTITY_NOT_FOUND` | `Block or page not found.` — no block or page with these IDs exists |\n| 400 | `INVALID_PARAMS` | `pageId and blockId must be positive safe integers.` — `pageId` or `blockId` is not a positive integer |\n| 400 | `INVALID_SCOPE` | `scope` is not `KNOWLEDGE`, `GROUP` or `MAINPAGE` |\n| 502 | `BITRIX_INVALID_RESPONSE` | `Bitrix24 returned an invalid block.` or `Bitrix24 returned a different block.` — Bitrix24 returned an unexpected result |\n| 502 | `BITRIX_INVALID_RESPONSE` | `Bitrix24 block response exceeds the 8 MiB limit.` — the Bitrix24 response is larger than 8 MiB |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the request. The error text comes from Bitrix24 |\n| 403 | `SCOPE_DENIED` | The API key does not have the `landing` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | The Bitrix24 user the key was issued for has no permission to read the page |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 401 | `INVALID_API_KEY` | The key in `X-Api-Key` is not found or has been revoked |\n| 409 | `LANDING_MODULE_NOT_ENABLED` | The Sites module is unavailable on the Bitrix24 account |\n| 409 | `PORTAL_ADDRESS_CHANGED` | The on-premise Bitrix24 moved to a new address, but the key's webhook was issued for the old one. Reissue the key's webhook |\n| 429 | `RATE_LIMITED` | The Bitrix24 request limit is exceeded. Retry the request in 1-2 seconds |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 did not respond or responded with a server error |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in the allotted time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- **Links with credentials are hidden.** A response string that contains a Bitrix24 webhook URL or a token in the URL query parameters comes back as `[REDACTED]`.\n\n## See also\n\n- [Block content](\u002Fdocs\u002Fentities\u002Fpages\u002Fblock-content)\n- [List page blocks](\u002Fdocs\u002Fentities\u002Fpages\u002Fblocks\u002Flist)\n- [Catalog manifest](\u002Fdocs\u002Fentities\u002Fpages\u002Fcatalog-manifest)\n- [Pages](\u002Fdocs\u002Fentities\u002Fpages)\n","2026-10-21",{},1795415268090]