[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fpages\u002Fsettings":3,"docs-tabs-entities\u002Fpages\u002Fsettings":6},{"content":4,"lastmod":5},"## Page settings\n\n`GET \u002Fv1\u002Fpages\u002F:id\u002Fsettings`\n\nReturns additional page settings: meta tags, view, theme and catalog parameters.\n\nRequires the `landing` scope. A read-only key receives a response.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `id` (path) | number | yes | Page ID. List: [`GET \u002Fv1\u002Fpages`](\u002Fdocs\u002Fentities\u002Fpages\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 -X GET \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fpages\u002F7\u002Fsettings\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X GET \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fpages\u002F7\u002Fsettings\" \\\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\u002F7\u002Fsettings\", {\n  method: \"GET\",\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\u002F7\u002Fsettings\", {\n  method: \"GET\",\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 | Page settings. The key is the setting name in camelCase: group plus name, for example `metaog` and `Title` give `metaogTitle`. The value is a string, a number or an array; flags arrive as the string `Y` or `N`. The set of keys differs between pages |\n| `data.metamainUse` | string | Whether meta tags for search engines are enabled: `Y` or `N` |\n| `data.metamainTitle` | string | Page title for search engines |\n| `data.metamainDescription` | string | Page description for search engines |\n| `data.metaogTitle` | string | Title for the link preview in social networks and messengers |\n| `data.metaogImage` | string | Image for the link preview: a file ID as a string, for example `\"1223\"`, or a full URL |\n| `data.metarobotsIndex` | string | `Y` — search engines may index the page, `N` — they may not |\n| `data.settingsPriceCode` | array | Price type codes for catalog blocks |\n| `data.settingsCurrencyId` | string | Price currency in catalog blocks |\n| `data.themefontsCode` | string | Font code for the page text, for example `g-font-roboto` |\n| `data.viewType` | string | Page view type, for example `adaptive` or `no` |\n\n## Response example\n\nMain fields are shown:\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"metamainUse\": \"N\",\n    \"metamainTitle\": \"Photography\",\n    \"metamainDescription\": \"Do you do professional photography? Tell people about yourself, show clients your portfolio, and they will not keep you waiting!\",\n    \"metaogTitle\": \"Photography\",\n    \"metaogImage\": \"https:\u002F\u002Fcdn.bitrix24.site\u002Fbitrix\u002Fimages\u002Fdemo\u002Fpage\u002Fphotography\u002Fpreview.jpg\",\n    \"metarobotsIndex\": \"Y\",\n    \"settingsPriceCode\": [\n      \"BASE\"\n    ],\n    \"settingsCurrencyId\": \"USD\",\n    \"themefontsCode\": \"g-font-roboto\",\n    \"viewType\": \"no\"\n  }\n}\n```\n\n## Error response example\n\n404 — no page with this `id`:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Page not found.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 404 | `ENTITY_NOT_FOUND` | `Page not found.` — no page with this `id` |\n| 404 | `ENTITY_NOT_FOUND` | `Page or folder not found.` — Bitrix24 did not find the page while reading its settings |\n| 400 | `INVALID_PAGE_ID` | `id must be a positive safe integer.` — `id` is not a positive integer |\n| 400 | `INVALID_SCOPE` | `scope must be KNOWLEDGE, GROUP or MAINPAGE, or omitted.` — `scope` is not `KNOWLEDGE`, `GROUP` or `MAINPAGE` |\n| 422 | `BITRIX_NO_EFFECT` | `Bitrix24 did not return page settings.` — Bitrix24 did not return the page settings |\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 on whose behalf the key was issued 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` was not found or has been revoked |\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 was 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 within the allotted time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- **Values containing HTML code arrive as raw strings.** For example, `fontsCode` contains font loading tags. Do not insert such values into your page without checking them.\n- **Secrets are removed from the settings.** A setting is left out of the response if its name contains `password` or `secret`, or one of the separate words `auth`, `token`, `access_token`, `refresh_token` or `api_key`. A string with a webhook URL or with an `auth=` or `token=` parameter arrives entirely as `[REDACTED]`. Other values arrive unchecked.\n\n## See also\n\n- [Get a page](\u002Fdocs\u002Fentities\u002Fpages\u002Fget)\n- [Page public URL](\u002Fdocs\u002Fentities\u002Fpages\u002Fpublic-url)\n- [Pages](\u002Fdocs\u002Fentities\u002Fpages)\n","2026-10-21",{},1795415274567]