# Base URL

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


```text
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` | `/image`, `/image/{id}` |
| Catalog REST API | `https://api2.saleslayer.com/catalog` | `/rest/Catalog/Products`, `/rest/Catalog/Categories`, `/rest/Catalog/$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/image`.

List DAM images:


```http
GET https://api2.saleslayer.com/dam/image?$top=10
```

Import a DAM image:


```http
POST https://api2.saleslayer.com/dam/image
```

Update or delete a DAM image by identifier:


```http
PATCH https://api2.saleslayer.com/dam/image/{id}
DELETE https://api2.saleslayer.com/dam/image/{id}
```

See the [DAM REST API overview](/apis/dam) and [DAM endpoint reference](/apis/dam-v2.0) for details.

## Catalog examples

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

Retrieve Catalog API metadata:


```http
GET https://api2.saleslayer.com/catalog/rest/Catalog/$metadata
```

Retrieve category metadata:


```http
GET https://api2.saleslayer.com/catalog/rest/Catalog/Categories/$metadata
```

List and filter categories:


```http
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
```

In this query:

* `$filter` selects categories whose reference starts with `C`.
* `$orderby` sorts results by `cat_ref` in ascending order.
* `$skip` and `$top` paginate the result set.
* `$select` limits the fields returned.
* `$expand` includes related data such as `Products` when supported.


See the [Catalog REST API overview](/apis/catalog) and [Catalog endpoint reference](/apis/catalog-v2.0) for details.

## Authentication

All requests must include a valid API key:


```http
X-API-KEY: YOUR_API_KEY
```

See [Authentication](/guides/authentication) for details about requesting and using API keys.

## Common mistakes

Avoid these common URL issues:

* Do not omit the `https://api2.saleslayer.com` base URL.
* Do not add an extra slash between the base URL and the API path.
* Encode query parameter values when they contain spaces, quotes, or special characters.
* Use the exact capitalization shown in the API reference, especially for Catalog paths such as `/catalog/rest/Catalog`.


## Support

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