curl --request GET \
--url https://cdn.xm.fabric.inc/api/v2/page/live \
--header 'x-site-context: <x-site-context>'{
"status_code": 200,
"message": "Live version: 2446 for page: /components",
"data": {
"page": {
"_id": "613a76a15363f9e9575dc953",
"name": "Components",
"pageUrl": "/components",
"__v": 0,
"channels": [
"00SZAU",
"02SZCA"
],
"createdAt": "2021-09-09T21:03:29.617Z",
"isActive": true,
"isArchived": false,
"pageId": 1377,
"seoFields": {
"title": "SEO",
"description": "SEO description",
"_id": "612e4756c4b3c60010fff859",
"metadata": [
{
"_id": "612e4756c4b3c60010fff85a",
"name": "summary",
"content": "Types of components",
"createdAt": "2021-08-31T15:14:30.973Z",
"updatedAt": "2021-08-31T15:14:30.973Z"
}
],
"createdAt": "2021-08-31T15:14:30.973Z",
"updatedAt": "2021-08-31T15:14:30.973Z"
},
"updatedAt": "2021-10-14T20:31:46.794Z",
"pageType": {
"isDefault": false,
"name": "Product category page",
"urlPrefix": "/category"
}
},
"version": [
{
"_id": "613a76a1fa9449000f6c36c3",
"isArchived": false,
"name": "Default",
"channel": [
12
],
"channels": [
"00SZAU",
"02SZCA"
],
"createdAt": "2021-09-09T21:03:29.712Z",
"updatedAt": "2021-10-14T20:31:47.369Z",
"components": {
"_id": "61689237068cae000f12ef90",
"id": "AboutUs",
"params": {
"desktopHeroImage": {
"url": "https://imgurl.com/path/myPhoto.jpg",
"altText": "Custom image"
},
"aboutUsContent": [
{
"text": "About us",
"firstText": "Our Company",
"secondText": "Our mission",
"thirdText": "Our values",
"paragraph": false,
"dialog": false,
"components": []
}
],
"components": [],
"additionalProp1": {}
},
"order": 1,
"additionalProp1": {}
},
"endDate": "2099-12-31T00:00:00.000Z",
"pageId": "613a76a15363f9e9575dc953",
"status": "SCHEDULED",
"versionId": 2446,
"__v": 0,
"startDate": "2021-10-14T20:31:44.052Z"
}
]
}
}Gets live page for the specified page URL and channel
curl --request GET \
--url https://cdn.xm.fabric.inc/api/v2/page/live \
--header 'x-site-context: <x-site-context>'{
"status_code": 200,
"message": "Live version: 2446 for page: /components",
"data": {
"page": {
"_id": "613a76a15363f9e9575dc953",
"name": "Components",
"pageUrl": "/components",
"__v": 0,
"channels": [
"00SZAU",
"02SZCA"
],
"createdAt": "2021-09-09T21:03:29.617Z",
"isActive": true,
"isArchived": false,
"pageId": 1377,
"seoFields": {
"title": "SEO",
"description": "SEO description",
"_id": "612e4756c4b3c60010fff859",
"metadata": [
{
"_id": "612e4756c4b3c60010fff85a",
"name": "summary",
"content": "Types of components",
"createdAt": "2021-08-31T15:14:30.973Z",
"updatedAt": "2021-08-31T15:14:30.973Z"
}
],
"createdAt": "2021-08-31T15:14:30.973Z",
"updatedAt": "2021-08-31T15:14:30.973Z"
},
"updatedAt": "2021-10-14T20:31:46.794Z",
"pageType": {
"isDefault": false,
"name": "Product category page",
"urlPrefix": "/category"
}
},
"version": [
{
"_id": "613a76a1fa9449000f6c36c3",
"isArchived": false,
"name": "Default",
"channel": [
12
],
"channels": [
"00SZAU",
"02SZCA"
],
"createdAt": "2021-09-09T21:03:29.712Z",
"updatedAt": "2021-10-14T20:31:47.369Z",
"components": {
"_id": "61689237068cae000f12ef90",
"id": "AboutUs",
"params": {
"desktopHeroImage": {
"url": "https://imgurl.com/path/myPhoto.jpg",
"altText": "Custom image"
},
"aboutUsContent": [
{
"text": "About us",
"firstText": "Our Company",
"secondText": "Our mission",
"thirdText": "Our values",
"paragraph": false,
"dialog": false,
"components": []
}
],
"components": [],
"additionalProp1": {}
},
"order": 1,
"additionalProp1": {}
},
"endDate": "2099-12-31T00:00:00.000Z",
"pageId": "613a76a15363f9e9575dc953",
"status": "SCHEDULED",
"versionId": 2446,
"__v": 0,
"startDate": "2021-10-14T20:31:44.052Z"
}
]
}
}The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Relative page url for which to retrieve the live page version
Comma-separated list of channel IDs
Successful operation
200 response object
Response status code
Status message
Data object holding the live page and version details
Show child attributes
Page details Page details
Show child attributes
Page name
Relative page URL
Timestamp of page creation
Timestamp of when page was last updated
True = page is active
false = page is not active
True = page is archived
false = page is not archived
Page ID
Channel IDs associated with the page
Channel ID associated with the page
SEO fields
Show child attributes
SEO field name
SEO field description
Timestamp of SEO field creation
Timestamp of when SEO field was last updated
list of metadata associated with the SEO field
Show child attributes
Metadata name
Metadata content
Virutal ID associated with the SEO field metadata
Timestamp of metadata creation
Timestamp of when metadata was last updated
Virtual ID associated with the SEO field
Name of the page type of page (optional)
URL of the page type of page (optional)
Database ID associated with the page
VersionKey associated with the page
deprecated field holding channel information
Channel identifier
Array holding live page version
Show child attributes
Database ID associated with the version
True = version is archived
false = version is not archived
Deprecated field holding channel information
Channel identifier
Channel IDs associated with the version
Channel ID associated with the version
Current status of the version
Ending timestamp of page. That is Date and time when the version will no longer be live
Database ID of the page associated with the version
Version name
Version description
Version ID
Timestamp of version creation
Timestamp on when version was last updated
versionKey associated with the version
Timestamp of when version was published
Was this page helpful?