XM (1.0.0)

Download OpenAPI specification:Download

E-mail: support@fabric.inc License: fabric Inc

Design, deploy, and manage experiences for all your digital storefronts with fabric XM, a headless e-commerce CMS. Design and develop components in your storefront to give your merchandisers and marketers the building blocks they need to create pages for products, promotions, and campaigns.

Pages

XM Pages API allows you to fetch all the live pages, or a live page by a specific URL

Retrieves Live Pages

Returns a list of all the live pages

Request
header Parameters
object

The x-site-context header is a JSON object that must contain your account ID. This header can also be called X-Site-Context based on your stylistic preferences.

Responses
200

Successful operation

204

No live pages

404

Tenant not found

500

The request was received but an internal error occurred

get/pages/live
Response samples
application/json
{
  • "status": 200,
  • "data": {
    },
  • "code": "Ok",
  • "message": "List of Live Pages",
  • "service": "toby",
  • "status_code": 200,
  • "statusCode": 200
}

Retrieves Live Page By URL

Returns the live page for the specified page url

Request
query Parameters
url
required
string

The relative page url for which to retrieve the live page version

header Parameters
object

The x-site-context header is a JSON object that must contain your account ID. This header can also be called X-Site-Context based on your stylistic preferences.

Responses
200

Successful operation

204

Page is not live or is inactive

400

Page url not specified

404

Page not found

500

The request was received but an internal error occurred

get/page/live
Response samples
application/json
{
  • "status_code": 200,
  • "message": "Live version: 39 for page: /home.",
  • "data": {
    }
}

Global Components

XM Global Components API allows you to fetch all the live global component data

Retrieves Live Global Components

Returns a list of all the live global component data

Request
header Parameters
object

The x-site-context header is a JSON object that must contain your account ID. This header can also be called X-Site-Context based on your stylistic preferences.

Responses
200

Successful operation

500

The request was received but an internal error occurred

get/global-component/live
Response samples
application/json
[
  • {
    },
  • {
    }
]

Menu

XM Menu API allows you to fetch menus and their items

Retrieves Menu List

Returns a list of all the menus and its immediate sub-menus

Request
header Parameters
object

The x-site-context header is a JSON object that must contain your account ID. This header can also be called X-Site-Context based on your stylistic preferences.

Responses
200

Successful operation

500

The request was received but an internal error occurred

get/menu
Response samples
application/json
{
  • "status_code": 200,
  • "status": "List of menus",
  • "data": {
    }
}

Retrieves All Menu Items

Returns a list of all active menus all their menu items

Request
header Parameters
object

The x-site-context header is a JSON object that must contain your account ID. This header can also be called X-Site-Context based on your stylistic preferences.

Responses
200

Successful operation

404

Menu not found

500

The request was received but an internal error occurred

get/menu/items
Response samples
application/json
{
  • "status_code": 200,
  • "status": "List of active menus",
  • "data": {
    }
}