docs
  1. Navigations
  2. V2
  3. List Navigation Trees V2

List navigation trees v2

{{version}}
OpenAPI 3.1.0

Storefront API Documentation

SCAYLE Storefront API is a REST API used to access your product data in any customer-facing application. Some common scenarios include retrieving campaigns, promotions, categories or configuration. You can also use it to save baskets or wishlists for individual customers and filter and search products.

Core concepts of the Storefront API are: Variant: Any distinct sellable item, for example: a blue colored shirt in size L. Available quantity/stock information is always on variant level. Product: A product is a collection of one or more variants with some shared attributes, for example: A blue colored shirt (product) available in different sizes (variants). A product will be sold out when all its variants are sold out. Sibling: A product closely related to another product, for example, the same shirt by the same brand, but in another color. Category: Each product can be assigned to one or more category nodes in the category tree. Attribute: Attributes are, for example, size, material, color. Attributes can be assigned to product level or variant level. Filter: Any criteria available to filter a list of products, for example: an attribute or a category. Basket: The basket holds variants that a customer intends to buy and has added to his shopping cart. Wishlist: Customers can add variants to a wishlist to remember them or buy them later.

Requests Base URL: https://{{tenant-space}}.storefront.api.scayle.cloud

Authentication

  1. Generate access token in the SCAYLE Panel > Shops > Storefront > API Keys.
  2. Provide the generated access token in the X-Access-Token Header

Note: After the token is generated in the SCAYLE Panel, it can take some time for changes to take effect.

Rate-Limiting Headers

SCAYLE Storefront API enforces a rate-limiting policy to manage the number of requests a client can make within a defined time window. Each response may include the following headers to provide users with their current rate-limit status:

  • X-RateLimit-Limit: Indicates the maximum number of allowed API requests for the current period, specific to the tenant's rate limit.
  • X-RateLimit-Remaining: Shows the remaining number of API requests allowed within the current period, specific to the tenant's rate limit.
  • X-RateLimit-Reset: The date and time when the current rate-limit window will reset.
  • X-RateLimit-Scope: Specifies the scope of the rate limit as it applies to the tenant, e.g., global.

If a tenant exceeds its allowed limit, the response status code will be 429 Too Many Requests.

Server:https://{tenant-space}.storefront.api.scayle.cloud
Client Libraries

navigation-v2

​

Navigation v2 endpoints with wrapped type structure for navigation items

navigation-v2 Operations

List navigation trees v2

​

List navigation trees assigned to the given shop.

Polymorphic Navigation Items

This v2 endpoint returns navigation items using a polymorphic oneOf structure based on the target discriminator:

  • Each navigation item has common fields at the top level: id, name, target, assets, visibleFrom, visibleTo, children, customData
  • The target field indicates the type of navigation item and determines which target-specific data is present:
    • target: category → Response includes categoryTarget with category-specific data
    • target: page → Response includes pageTarget with page-specific data
    • target: individual-link → Response includes linkTarget with hyperlink data

Query Parameters

  • The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique shopId.

    Priority: shopId (or the X-Shop-Id header) takes precedence over all other shop identification parameters. When shopId is present, shopKey, countryCode, and locale are ignored entirely.

    Alternative: If neither shopId nor X-Shop-Id is provided, you must supply all three of shopKey, countryCode, and locale together to identify the shop.

  • The unique string key identifying the shop (e.g. sa, de).

    Must be provided together with countryCode and locale as a query-parameter alternative to shopId. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error.

    Ignored when shopId or the X-Shop-Id header is present.

  • The ISO 3166-1 alpha-2 country code of the shop (e.g. DE, AT). Automatically normalised to uppercase.

    Must be provided together with shopKey and locale as a query-parameter alternative to shopId. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error.

    Ignored when shopId or the X-Shop-Id header is present.

  • The locale of the shop (e.g. en_GB, de_DE). Used to validate that the resolved shop's locale matches the requested locale.

    Must be provided together with shopKey and countryCode as a query-parameter alternative to shopId. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error.

    Ignored when shopId or the X-Shop-Id header is present.

  • Filters the navigation tree to include only items that are visible at the specified timestamp.

    An item is considered visible at the given filters[visibleAt] time if all of these rules apply:

    • If both visibleFrom and visibleTo are unset, the item is always included.
    • If only visibleFrom is set, the item is included if visibleAt is on or after visibleFrom.
    • If only visibleTo is set, the item is included if visibleAt is before visibleTo.
    • If both visibleFrom and visibleTo are set, the item is included if visibleAt is within the interval [visibleFrom, visibleTo).

    The filtering is strictly hierarchical:

    • If a parent item is filtered out (i.e., not visible), none of its children will appear—even if those children would be visible on their own.
    • This ensures the returned tree only contains fully visible paths from the root.

    This filter supports half-open timeframes, meaning visibility intervals can be open-ended on either side.

    Note: The value of filters[visibleAt] must be an RFC3339 datetime string. For example: "2020-10-13T00:00:00Z".

  • Selecting included navigation item data

    By default, only basic navigation item data is included in the response. Use the with parameters (see below) to include more navigation item data.

    To see all available navigation item data, for example, for debugging, you might use unrestricted with parameters: ?with=category,category.shopLevelCustomData,category.countryLevelCustomData,customData.

    Beware of using these unrestricted with parameters in production applications. It can result in slower performance, as download sizes for full navigation item lists can be quite big. Including only exactly what is needed will be best for performance when downloading and parsing the result.

    A typical request for a navigation list optimized for maximum performance is, for example, ?with=category,customData:key(displayName|icon).

    See the table below for all available with parameter options and their effects.

    Include includes
    category includes category as an object into the navigation-item
    category.productSorting includes the product sorting configuration of the category, which defines how products are ordered within the category. Reflects the customer segment of the shopper identified by X-Customer-Token.
    category.seo includes the SEO metadata for the category (meta title, meta description, SEO headline, SEO description, canonical URL, and search engine indexing flag).
    category.shopLevelCustomData includes shop-level custom data of the category.
    category.shopLevelCustomData:key() includes shop-level custom data of the category with empty object.
    category.shopLevelCustomData:key(keyA|...) includes shop-level custom data of the category with only specified keys.
    category.countryLevelCustomData includes country-level custom data of the category.
    category.countryLevelCustomData:key() includes country-level custom data of the category with empty object.
    category.countryLevelCustomData:key(keyA|...) includes country-level custom data of the category with only specified keys.
    customData includes custom data of the navigation item.
    customData:key() includes custom data of the navigation item with empty object.
    customData:key(keyA|...) includes custom data of the navigation item with only specified keys.

Headers

  • The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique shop ID.

    Priority: X-Shop-Id (or the shopId query parameter) takes precedence over all other shop identification parameters. When this header is present, X-Shop-Key, X-Country-Code, and X-Locale are ignored entirely.

    Alternative: If neither X-Shop-Id nor shopId is provided, you must supply all three of X-Shop-Key, X-Country-Code, and X-Locale together to identify the shop.

  • The unique string key identifying the shop (e.g. sa, de).

    Must be provided together with X-Country-Code and X-Locale as a header-based alternative to X-Shop-Id. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error.

    Ignored when X-Shop-Id or the shopId query parameter is present.

  • The ISO 3166-1 alpha-2 country code of the shop (e.g. DE, AT). Automatically normalised to uppercase.

    Must be provided together with X-Shop-Key and X-Locale as a header-based alternative to X-Shop-Id. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error.

    Ignored when X-Shop-Id or the shopId query parameter is present.

  • The locale of the shop (e.g. en_GB, de_DE). Used to validate that the resolved shop's locale matches the requested locale.

    Must be provided together with X-Shop-Key and X-Country-Code as a header-based alternative to X-Shop-Id. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error.

    Ignored when X-Shop-Id or the shopId query parameter is present.

  • A JWT identifying the customer. When category.productSorting is included and the customer belongs to a customer segment with its own sorting for a category, category.productSorting returns that segment's keys, the same keys GET /v1/products applies. Without it, or with an invalid or expired token, the default keys are returned and the request does not fail.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/v2/navigations
curl --location 'https://{{tenant-space}}.storefront.api.scayle.cloud/v2/navigations?shopId={{shopId}}'

[
  {
    "id": 1,
    "referenceKey": "main-navigation",
    "name": "Main Navigation",
    "items": [
      {
        "id": 101,
        "name": "Women",
        "target": "category",
        "assets": {},
        "visibleFrom": null,
        "visibleTo": null,
        "children": [],
        "customData": {},
        "categoryTarget": {
          "categoryId": 123,
          "category": {
            "id": 123,
            "path": "/women",
            "name": "Women",
            "slug": "women",
            "parentId": 0,
            "rootlineIds": [
              123
            ],
            "childrenIds": [],
            "properties": [],
            "isHidden": false,
            "depth": 1,
            "supportedFilter": [
              "size",
              "color"
            ],
            "shopLevelCustomData": {},
            "countryLevelCustomData": {},
            "children": []
          },
          "filters": [
            {
              "type": "attribute",
              "attributeFilter": {
                "group": {
                  "id": 1,
                  "key": "color",
                  "label": "Color",
                  "type": "design",
                  "multiSelect": true
                },
                "values": [
                  {
                    "id": 27,
                    "value": "blue",
                    "label": "Blue"
                  }
                ]
              }
            },
            {
              "type": "boolean",
              "booleanFilter": {
                "slug": "sale",
                "value": true,
                "label": "Sale"
              }
            }
          ]
        }
      },
      {
        "id": 102,
        "name": "About Us",
        "target": "page",
        "assets": {},
        "visibleFrom": null,
        "visibleTo": null,
        "children": [],
        "customData": {},
        "pageTarget": {
          "page": "/about"
        }
      },
      {
        "id": 103,
        "name": "External Link",
        "target": "individual-link",
        "assets": {},
        "visibleFrom": null,
        "visibleTo": null,
        "children": [],
        "customData": {},
        "linkTarget": {
          "url": "https://example.com",
          "openInNewWindow": true
        }
      }
    ]
  }
]

Models

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​

Last updated: December 02, 2026