For AI agents: markdown of this page — /docs-content-en/entities/pages/get.md documentation index — /llms.txt
Get a page
GET /v1/pages/:id
Returns a single page by identifier. Deleted pages are not returned by this endpoint.
Requires the landing scope.
The domainId (DOMAIN_ID) field is not returned even with an explicit select=domainId: the get-by-ID endpoint requests the default fields from Bitrix24 without DOMAIN_ID, and select only narrows the response. The id field is always returned. For an existing page, GET /v1/pages/9?select=domainId returns 200 {"success":true,"data":{"id":9}}.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Parameterid (path) |
Typenumber | Requiredyes | DescriptionPage identifier. List: GET /v1/pages |
Parameterscope (query) |
Typestring | Requiredno | DescriptionSite type: KNOWLEDGE — knowledge base, GROUP — workgroup site, MAINPAGE — main page. Specify it if the page belongs to such a site. Otherwise 404 ENTITY_NOT_FOUND is returned. Example: GET /v1/pages/9?scope=KNOWLEDGE |
Parameterselect (query) |
Typestring | Requiredno | DescriptionField selection: ?select=id,title. The id field is always returned |
Examples
curl — personal key
curl "https://vibecode.bitrix24.com/v1/pages/9" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl "https://vibecode.bitrix24.com/v1/pages/9" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/pages/9', {
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
const { success, data } = await res.json()
console.log('Page:', data.title, '— site:', data.siteId)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/pages/9', {
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success, data } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionAlways true on success |
Fielddata |
Typeobject | DescriptionPage object. With select, only the listed fields and id are returned. All fields — Page fields |
Fielddata.siteId |
Typenumber | DescriptionSite identifier. List: GET /v1/sites |
Fielddata.createdById |
Typenumber | DescriptionIdentifier of the employee who created the page. List: GET /v1/users |
Fielddata.dateCreate |
Typestring | DescriptionCreation date. A string in the format of the Bitrix24 account's regional settings, not ISO 8601 — see the block below |
Fielddata.dateModify |
Typestring | DescriptionLast modification date. Same format |
Date format is locale-dependent, not ISO 8601. Bitrix24 returns
dateCreate/dateModifyas a string in a local format, and the specific template depends on the Bitrix24 account's regional settings: in the RU locale it isDD.MM.YYYY HH:MM:SS(30.12.2021 12:30:52), and in the EN locale it isMM/DD/YYYY hh:mm:ss am/pm(04/22/2020 02:39:17 pm). Vibecode returns the Bitrix24 value as is, without converting it to ISO, and identically in the get-by-ID endpoint and in the list — there is no divergence betweenGET /v1/pages/:idandGET /v1/pages.new Date(value)returnsInvalid Dateor silently swaps day and month — do not parse the date with a fixed template and do not trustnew Date(). Rely on the regional settings of the specific Bitrix24 account.
Response example
Main fields are shown. Full list: Page fields.
{
"success": true,
"data": {
"id": 9,
"title": "page transfer test",
"code": "change1",
"siteId": 3,
"active": true,
"description": null,
"folderId": 1,
"createdById": 1,
"dateCreate": "05/26/2020 07:24:02 pm",
"dateModify": "10/10/2022 05:25:30 pm"
}
}
Error response example
404 — the page is not found:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "landingPage 999999999 not found"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP404 | CodeENTITY_NOT_FOUND |
DescriptionA page with this ID is not found, deleted, or not accessible to the user |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe API key does not have the landing scope |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionThe API key has no configured tokens |
| HTTP401 | CodeMISSING_API_KEY |
DescriptionThe X-Api-Key header is missing |
| HTTP401 | CodeINVALID_API_KEY |
DescriptionThe key in X-Api-Key is not found or has been revoked |
| HTTP429 | CodeRATE_LIMITED |
DescriptionThe Bitrix24 request limit is exceeded. Retry the request in 1-2 seconds |
| HTTP502 | CodeBITRIX_UNAVAILABLE |
DescriptionBitrix24 did not respond or returned a server error |
| HTTP503 | CodeBITRIX_TIMEOUT |
DescriptionBitrix24 did not respond in time |
Full list of general API errors — Errors.