curl --request GET \
--url https://cdn.xm.fabric.inc/api/menu \
--header 'x-site-context: <x-site-context>'{
"status_code": 123,
"status": "<string>",
"data": {
"menus": [
{
"_id": "<string>",
"channel": [
123
],
"channels": [
"<string>"
],
"name": "<string>",
"label": "<string>",
"path": "<string>",
"isActive": true,
"images": [
{
"order": 123,
"meta": "<string>",
"label": "<string>",
"kind": "<string>",
"url": "<string>"
}
],
"videos": [
{
"label": "<string>",
"order": 123,
"url": "<string>",
"provider": "<string>",
"thumbnails": [
{
"size": "<string>",
"url": "<string>"
}
]
}
],
"params": [
{
"_id": "<string>",
"kind": "<string>",
"value": "<string>"
}
],
"order": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"__v": 123,
"children": [
{
"_id": "<string>",
"channel": [
123
],
"channels": [
"<string>"
],
"name": "<string>",
"label": "<string>",
"path": "<string>",
"isActive": true,
"images": [
{
"order": 123,
"meta": "<string>",
"label": "<string>",
"kind": "<string>",
"url": "<string>"
}
],
"videos": [
{
"label": "<string>",
"order": 123,
"url": "<string>",
"provider": "<string>",
"thumbnails": [
{
"size": "<string>",
"url": "<string>"
}
]
}
],
"params": [
{
"_id": "<string>",
"kind": "<string>",
"value": "<string>"
}
],
"order": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"__v": 123
}
]
}
]
}
}Returns a list of all the menus and its immediate sub-menus
curl --request GET \
--url https://cdn.xm.fabric.inc/api/menu \
--header 'x-site-context: <x-site-context>'{
"status_code": 123,
"status": "<string>",
"data": {
"menus": [
{
"_id": "<string>",
"channel": [
123
],
"channels": [
"<string>"
],
"name": "<string>",
"label": "<string>",
"path": "<string>",
"isActive": true,
"images": [
{
"order": 123,
"meta": "<string>",
"label": "<string>",
"kind": "<string>",
"url": "<string>"
}
],
"videos": [
{
"label": "<string>",
"order": 123,
"url": "<string>",
"provider": "<string>",
"thumbnails": [
{
"size": "<string>",
"url": "<string>"
}
]
}
],
"params": [
{
"_id": "<string>",
"kind": "<string>",
"value": "<string>"
}
],
"order": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"__v": 123,
"children": [
{
"_id": "<string>",
"channel": [
123
],
"channels": [
"<string>"
],
"name": "<string>",
"label": "<string>",
"path": "<string>",
"isActive": true,
"images": [
{
"order": 123,
"meta": "<string>",
"label": "<string>",
"kind": "<string>",
"url": "<string>"
}
],
"videos": [
{
"label": "<string>",
"order": 123,
"url": "<string>",
"provider": "<string>",
"thumbnails": [
{
"size": "<string>",
"url": "<string>"
}
]
}
],
"params": [
{
"_id": "<string>",
"kind": "<string>",
"value": "<string>"
}
],
"order": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"__v": 123
}
]
}
]
}
}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\"}"
Successful operation
200 response object
The response status code
Status message
The data object holding the list of menus
Show child attributes
The array of menus
Show child attributes
The database id associated with the menu
A deprecated field holding channel information
The channel identifier
The channel ids associated with the menu
The channel id associated with the menu
The menu name
The menu label
The relative menu url path
True if the menu is active; false otherwise
A list of image resources
Show child attributes
The order in which the image was added/appears
Information about the image
Text to be displayed as part of the image
The type of image (thumbnail, zoomed, etc.)
The url to the image resource
A list of video resources
Show child attributes
The label for the video
The order in which the video was added/appears
The url to the video resource
The video resource provider
The position the menu appears in the UI
The date and time the menu was created
The date and time the menu was last updated
The versionKey associated with the menu
The list of sub-menus associated with the menu
Show child attributes
The database id associated with the menu
A deprecated field holding channel information
The channel identifier
The channel ids associated with the menu
The channel id associated with the menu
The menu name
The menu label
The relative menu url path
True if the menu is active; false otherwise
A list of image resources
Show child attributes
The order in which the image was added/appears
Information about the image
Text to be displayed as part of the image
The type of image (thumbnail, zoomed, etc.)
The url to the image resource
A list of video resources
Show child attributes
The label for the video
The order in which the video was added/appears
The url to the video resource
The video resource provider
The position the menu appears in the UI
The date and time the menu was created
The date and time the menu was last updated
The versionKey associated with the menu
Was this page helpful?