{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown","redocly_category":"Guides","api_domain":"Cross API"},"seo":{"title":"Base URL","description":"Base URL and endpoint path conventions for Sales Layer REST APIs.","keywords":["Sales Layer","REST API","OpenAPI","DAM API","Catalog API","product catalog API","image management API","API integration"],"lang":"en-US","meta":[{"name":"og:type","content":"website"},{"name":"og:site_name","content":"Sales Layer REST API Documentation"},{"name":"og:title","content":"Sales Layer REST API Documentation"},{"name":"og:description","content":"Complete REST API documentation for Sales Layer's DAM and Catalog APIs. Learn authentication, pagination, filtering, and integration patterns."},{"name":"twitter:card","content":"summary_large_image"},{"name":"twitter:site","content":"@saleslayer"},{"name":"twitter:title","content":"Sales Layer REST API Documentation"},{"name":"twitter:description","content":"Complete REST API documentation for Sales Layer's DAM and Catalog APIs. Learn authentication, pagination, filtering, and integration patterns."}],"llmstxt":{"hide":false,"title":"Sales Layer REST API Documentation","description":"Technical guides and OpenAPI references for Sales Layer DAM and Catalog REST APIs.","sections":[{"title":"Guides","description":"Static API guides for authentication, headers, query parameters, responses, rate limiting, and best practices.","includeFiles":["guides/**/*.md","changelog.md"],"excludeFiles":[]},{"title":"API Reference","description":"OpenAPI-based references and API overview pages for Sales Layer REST APIs.","includeFiles":["apis/**/*.md","apis/**/*.yaml"],"excludeFiles":[]},{"title":"Postman collections","description":"Importable Postman collection and environment instructions for testing Sales Layer REST APIs.","includeFiles":["postman/**/*.md"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"base-url","__idx":0},"children":["Base URL"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Sales Layer REST APIs are available from the following base URL:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"text","header":{"controls":{"copy":{}}},"source":"https://api2.saleslayer.com\n","lang":"text"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Build requests by appending the API path and optional query parameters to this base URL."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"api-path-prefixes","__idx":1},"children":["API path prefixes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Different Sales Layer APIs use different path conventions."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API"},"children":["API"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Base URL"},"children":["Base URL"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Path examples"},"children":["Path examples"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DAM REST API"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://api2.saleslayer.com/dam"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/image"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/image/{id}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Catalog REST API"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://api2.saleslayer.com/catalog"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/rest/Catalog/Products"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/rest/Catalog/Categories"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/rest/Catalog/$metadata"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use the OpenAPI reference for the exact path, HTTP method, parameters, and request body supported by each operation."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"dam-examples","__idx":2},"children":["DAM examples"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The DAM REST API currently exposes image operations under ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/dam/image"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["List DAM images:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET https://api2.saleslayer.com/dam/image?$top=10\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Import a DAM image:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST https://api2.saleslayer.com/dam/image\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Update or delete a DAM image by identifier:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"PATCH https://api2.saleslayer.com/dam/image/{id}\nDELETE https://api2.saleslayer.com/dam/image/{id}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/dam"},"children":["DAM REST API overview"]}," and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/dam-v2.0"},"children":["DAM endpoint reference"]}," for details."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"catalog-examples","__idx":3},"children":["Catalog examples"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Catalog REST API currently exposes catalog resources under ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/catalog/rest/Catalog"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retrieve Catalog API metadata:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET https://api2.saleslayer.com/catalog/rest/Catalog/$metadata\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retrieve category metadata:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET https://api2.saleslayer.com/catalog/rest/Catalog/Categories/$metadata\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["List and filter categories:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET https://api2.saleslayer.com/catalog/rest/Catalog/Categories?$filter=startswith(cat_ref,'C')&$orderby=cat_ref asc&$skip=1&$top=3&$select=cat_id,cat_title,cat_ref,cat_description&$expand=Products\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In this query:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["$filter"]}," selects categories whose reference starts with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["C"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["$orderby"]}," sorts results by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cat_ref"]}," in ascending order."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["$skip"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["$top"]}," paginate the result set."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["$select"]}," limits the fields returned."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["$expand"]}," includes related data such as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Products"]}," when supported."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/catalog"},"children":["Catalog REST API overview"]}," and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/catalog-v2.0"},"children":["Catalog endpoint reference"]}," for details."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"authentication","__idx":4},"children":["Authentication"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All requests must include a valid API key:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"X-API-KEY: YOUR_API_KEY\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/authentication"},"children":["Authentication"]}," for details about requesting and using API keys."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"common-mistakes","__idx":5},"children":["Common mistakes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Avoid these common URL issues:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Do not omit the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://api2.saleslayer.com"]}," base URL."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Do not add an extra slash between the base URL and the API path."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Encode query parameter values when they contain spaces, quotes, or special characters."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Use the exact capitalization shown in the API reference, especially for Catalog paths such as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/catalog/rest/Catalog"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"support","__idx":6},"children":["Support"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For technical support, API questions, or help getting access to an API key, contact Sales Layer support or your account representative."]}]},"headings":[{"value":"Base URL","id":"base-url","depth":1},{"value":"API path prefixes","id":"api-path-prefixes","depth":2},{"value":"DAM examples","id":"dam-examples","depth":2},{"value":"Catalog examples","id":"catalog-examples","depth":2},{"value":"Authentication","id":"authentication","depth":2},{"value":"Common mistakes","id":"common-mistakes","depth":2},{"value":"Support","id":"support","depth":2}],"frontmatter":{"seo":{"title":"Base URL","description":"Base URL and endpoint path conventions for Sales Layer REST APIs."},"keywords":{"includes":["base URL","endpoint paths","API URL","Catalog API","DAM API"]},"metadata":{"redocly_category":"Guides","api_domain":"Cross API"}},"lastModified":"2026-06-03T15:57:05.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/base-url","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}