[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fpages\u002Fresolve":3,"docs-tabs-entities\u002Fpages\u002Fresolve":6},{"content":4,"lastmod":5},"## Find a page by path\n\n`GET \u002Fv1\u002Fpages\u002Fresolve`\n\nFinds a page by its path within the given site and returns its ID. The found page is additionally read with the permissions of the user the key was issued for.\n\nRequires the `landing` scope. A read-only key works.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `siteId` (query) | number | yes | Site ID. List: [`GET \u002Fv1\u002Fsites`](\u002Fdocs\u002Fentities\u002Fsites\u002Flist) |\n| `path` (query) | string | yes | Page path within the site, for example `\u002Fabout\u002F` |\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\u002Fresolve?siteId=3&path=%2Fabout%2F\" \\\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\u002Fresolve?siteId=3&path=%2Fabout%2F\" \\\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\u002Fresolve?siteId=3&path=%2Fabout%2F\", {\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\u002Fresolve?siteId=3&path=%2Fabout%2F\", {\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 | Search result |\n| `data.pageId` | number | ID of the found page |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"pageId\": 59\n  }\n}\n```\n\n## Error response example\n\n404 — the site has no page at this path:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Page not found at this path.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 404 | `ENTITY_NOT_FOUND` | `Site not found.` — site `siteId` does not exist |\n| 404 | `ENTITY_NOT_FOUND` | `Page not found at this path.` — the site has no page at this path |\n| 404 | `ENTITY_NOT_FOUND` | `Page not found.` — a page was found at the path, but the key's user cannot read it, or it belongs to another site |\n| 404 | `ENTITY_NOT_FOUND` | `Page or folder not found.` — Bitrix24 did not find the page during the search |\n| 400 | `MISSING_REQUIRED_FIELDS` | `siteId and path are required; siteId must be a positive safe integer.` — `siteId` or `path` is missing, or `siteId` 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 returned an invalid resolved page id.` — Bitrix24 returned an invalid page ID |\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 site |\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 not available 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 returned a server error |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nFull list of general API errors — [Errors](\u002Fdocs\u002Ferrors).\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",{},1795415274091]