Base URL

Base URL

The Sales Layer REST APIs are available from the following base URL:

https://api2.saleslayer.com

Build requests by appending the API path and optional query parameters to this base URL.

API path prefixes

Different Sales Layer APIs use different path conventions.

API Base URL Path examples
DAM REST API https://api2.saleslayer.com/dam /images, /images({reference})
Catalog REST API https://api2.saleslayer.com/catalog /Products, /Categories, /$metadata

Use the OpenAPI reference for the exact path, HTTP method, parameters, and request body supported by each operation.

DAM examples

The DAM REST API currently exposes image operations under /dam/images.

List DAM images:

GET https://api2.saleslayer.com/dam/images?$top=10

Delete a DAM image by reference:

DELETE https://api2.saleslayer.com/dam/images({reference})

Where {reference} is the image filename, unique per tenant (for example, product-main-front.jpg).

See the DAM REST API overview and DAM endpoint reference for details.

Catalog examples

The Catalog REST API currently exposes catalog resources under /catalog.

Retrieve Catalog API metadata:

GET https://api2.saleslayer.com/catalog/$metadata

Retrieve category metadata:

GET https://api2.saleslayer.com/catalog/Categories/$metadata

List and filter categories:

GET https://api2.saleslayer.com/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

In this query:

See the Catalog REST API overview and Catalog endpoint reference for details.

Authentication

All requests must include a valid API key:

X-API-KEY: YOUR_API_KEY

See Authentication for details about requesting and using API keys.

Common mistakes

Avoid these common URL issues:

Support

For technical support, API questions, or help getting access to an API key, contact Sales Layer support or your account representative.