Download OpenAPI specification:
URL related service API
Returns all URLs for the given site key and locale.
Results can be paged using the query parameter limit along with an optional cursor of before or after.
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| limit required | number [ 1 .. 500 ] The maximum number of results to return. 0 defaults to the maximum of 500 |
| before required | string <= 10000 Cursor to retrieve results before. |
| after required | string Cursor to retrieve results after. |
{- "data": {
- "items": [
- "/glasses/plastic-glasses/kids-sun-rx-08",
- "/glasses/geometric-glasses/osiris-outstanding"
], - "pageInfo": {
- "hasPreviousPage": false,
- "hasNextPage": true,
- "limit": 2,
- "startCursor": "eyJhc3NldFNpdGVXRlQOmVuLUdCIn0=",
- "endCursor": "eyJG9jYWxlIjoic3NkZ3dzLXVVuLUdCIn0="
}
}, - "metrics": {
- "durationMs": 886.42
}, - "context": {
- "siteKey": "specsavers-gb",
- "locale": "en-GB",
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Returns URL info for specific items.
Note that although this is a POST request, nothing is created on the server. The POST verb is used because the request body is potentially large and the GET verb has a limit on the size of the request body.
The payload schema describes the information required to retrieve URL info for multiple items.
| type required | string The type of the asset being looked up |
| key required | string The key of the asset being looked up |
[- {
- "type": "string",
- "key": "string"
}
]{- "data": {
- "product": {
- "5004833": {
- "specsavers-gb": {
- "en-GB": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-ie": {
- "en-IE": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-es": {
- "es-ES": "/glasses/gafas-de-mujer/mimco-02",
- "en-ES": "/en/glasses/womens-glasses/mimco-02"
}, - "specsavers-au": {
- "en-AU": "/glasses/womens-glasses/mimco-02"
}
}, - "X150": {
- "specsavers-gb": {
- "en-GB": "/x1-pez-cr39"
}, - "specsavers-ie": {
- "en-IE": "/x1-pez-cr39"
}, - "specsavers-es": {
- "es-ES": "/x1-pez-cr39",
- "en-ES": "/en/x1-pez-cr39"
}, - "specsavers-au": {
- "en-AU": "/x1-pez-cr39"
}
}
}
}, - "metrics": {
- "durationMs": 73.74
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Returns all the assets data for the given asset type
Results can be paged using the query parameter limit along with an optional cursor of before or after.
| type required | string Enum: "blog-news-page" "brand-page" "category-page" "collection-page" "content-page" "health-fund-page" "health-page" "home-page" "offer-page" "product" "product-listing-page" "store" The asset type to retrieve |
| limit required | number [ 1 .. 500 ] The maximum number of results to return. 0 defaults to the maximum of 500 |
| before required | string <= 10000 Cursor to retrieve results before. |
| after required | string Cursor to retrieve results after. |
{- "data": {
- "items": [
- {
- "key": "5004833",
- "sites": {
- "specsavers-gb": {
- "en-GB": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-es": {
- "es-ES": "/glasses/gafas-de-mujer/mimco-02",
- "en-ES": "/en/glasses/womens-glasses/mimco-02"
}
}
}
], - "pageInfo": {
- "hasPreviousPage": false,
- "hasNextPage": true,
- "limit": 2,
- "startCursor": "eyJhc3NldFR5cGVBbmRL9",
- "endCursor": "eyJhc3NldFR5cGVBbmR"
}
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Returns the asset data for the asset type and key
| type required | string Enum: "blog-news-page" "brand-page" "category-page" "collection-page" "content-page" "health-fund-page" "health-page" "home-page" "offer-page" "product" "product-listing-page" "store" The asset type to retrieve |
| key required | string The resource key |
{- "data": {
- "specsavers-gb": {
- "en-GB": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-ie": {
- "en-IE": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-es": {
- "es-ES": "/glasses/gafas-de-mujer/mimco-02",
- "en-ES": "/en/glasses/womens-glasses/mimco-02"
}, - "specsavers-au": {
- "en-AU": "/glasses/womens-glasses/mimco-02"
}
}, - "metrics": {
- "durationMs": 787.61
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Returns all the assets data for the given asset group type
Results can be paged using the query parameter limit along with an optional cursor of before or after.
| group-type required | string Enum: "content" "catalog" The asset group type to retrieve |
| limit required | number [ 1 .. 500 ] The maximum number of results to return. 0 defaults to the maximum of 500 |
| before required | string <= 10000 Cursor to retrieve results before. |
| after required | string Cursor to retrieve results after. |
{- "data": {
- "items": [
- {
- "key": "5004833",
- "sites": {
- "specsavers-gb": {
- "en-GB": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-es": {
- "es-ES": "/glasses/gafas-de-mujer/mimco-02",
- "en-ES": "/en/glasses/womens-glasses/mimco-02"
}
}
}
], - "pageInfo": {
- "hasPreviousPage": false,
- "hasNextPage": true,
- "limit": 2,
- "startCursor": "eyJhc3NldFR5cGVBbmRL9",
- "endCursor": "eyJhc3NldFR5cGVBbmR"
}
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Returns the URL data for the given site and locale
| siteKey required | string The key of the site for delivery options |
| locale required | string The ISO locale code |
{- "data": {
- "key": "specsavers-gb",
- "type": "home-page"
}, - "metrics": {
- "durationMs": 876.93
}, - "context": {
- "siteKey": "specsavers-gb",
- "locale": "en-GB",
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Returns the URL data for the given site, locale and path
| siteKey required | string The key of the site for delivery options |
| locale required | string The ISO locale code |
| * | string The wildcard should be the path of page to retrieve |
{- "data": {
- "key": "specsavers-gb",
- "type": "home-page"
}, - "metrics": {
- "durationMs": 876.93
}, - "context": {
- "siteKey": "specsavers-gb",
- "locale": "en-GB",
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Returns the list of valid asset types
{- "data": [
- "blog-news-page",
- "brand-page",
- "category-page",
- "collection-page",
- "content-page",
- "health-fund-page",
- "health-page",
- "home-page",
- "offer-page",
- "product",
- "product-listing-page",
- "store"
], - "metrics": {
- "durationMs": 0.41
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Health check information for the URL service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Checks whether URLs exist for the specified asset type and key
Checks the current and pending URLs for an Asset and determines if the pending URL is a duplicate
| type required | string Enum: "blog-news-page" "brand-page" "category-page" "collection-page" "content-page" "health-fund-page" "health-page" "home-page" "offer-page" "product" "product-listing-page" "store" The asset type to retrieve |
| key required | string The resource key |
{- "data": {
- "current": {
- "specsavers-gb": {
- "includeInSitemap": {
- "url": true
}, - "locales": {
- "url": {
- "en-GB": "/terms-and-conditions"
}
}
}, - "specsavers-ie": {
- "includeInSitemap": {
- "url": true
}, - "locales": {
- "url": {
- "en-IE": "/terms-and-conditions"
}
}
}, - "specsavers-es": {
- "includeInSitemap": {
- "url": true
}, - "locales": {
- "url": {
- "es-ES": "/terms-and-conditions",
- "en-ES": "/en/terms-and-conditions"
}
}
}, - "specsavers-au": {
- "includeInSitemap": {
- "url": true
}, - "locales": {
- "url": {
- "en-AU": "/terms-and-conditions"
}
}
}
}, - "pending": {
- "specsavers-gb": {
- "en-GB": {
- "url": "/terms-and-conditions",
- "isDuplicate": false
}
}, - "specsavers-ie": {
- "en-IE": {
- "url": "/terms-and-conditions",
- "isDuplicate": false
}
}, - "specsavers-es": {
- "es-ES": {
- "url": "/terms-and-conditions",
- "isDuplicate": false
}, - "en-ES": {
- "url": "/en/terms-and-conditions",
- "isDuplicate": false
}
}, - "specsavers-au": {
- "en-AU": {
- "url": "/terms-and-conditions",
- "isDuplicate": false
}
}
}
}, - "metrics": {
- "durationMs": 3528.68
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}