Headers

When making requests to the SalesLayer REST API, specific headers are required to authenticate and customize the response.

Below is a description of the headers used across all endpoints and their purpose.

X-API-KEY

  • This header is mandatory for all API requests and must include your unique API key to authenticate the request.
X-API-KEY: your-api-key-here

Accept-Language

  • This header specifies the language in which the API should return the response.
  • If omitted, the API will default to the language configured for your account in SalesLayer.
  • When your catalog items have multilanguage fields (including local languages), you can use this header to specify the desired language for those fields.
Accept-Language: en-us

Example

X-API-KEY:XrFytn9Q2u4p+MT3hZLBgVWRoJcl2sQTsQIPXkRfyd8nB+GAQo0olvz6jmhZWIYc3bKQ/zTyNMsu5+7uwqJWXp3itmBgKJRL0cKUvJveNaxHI9KOtCt9qvc7eiFQ2tqFbYQJ6aJkPfT5yb991BCIxUrZSXrpBSwaGgp5pj2MV4C4CcKVloXHvME8Rol3PtbQ3hUVS3yPW7Qb6ARXNPTVGSMyStBPOVWLc4yUy4V4iqJBvogk9QGLY/TGI3vuqJiWwu2+PhfZhkOh7BoQyF28MtsbdghO6QGROu6YrDgUMhUMVvKTCAT0lq2PiQpmQHQ1QF+Y7G5BgQeUAL+z5coqnJ2kHGdjDg8u43GYLYnPGBzpzKW6FJ2/bhIPa3ijNuWNZVJqhr77IAB9XdUYMn38Gn0C9Bc+rSenZzLoJ/YtIvF8aP1zLTeqR6rqq6nWJQgk4UtidQecs81tArXbRPkzsgGvLUQQRIeDQE5BV8iK6TUl/mo8nNB8NVKaVl7gYs4hZktcQsbFP/8gkqQ6FHpZ2Tg/xDUzIl0+zXvYSkNu5TQoYKHHOCBJDnN8ywClWb4c2WZ/9MkSFYtAF6RuS2Ir5hM57hiMcA23/TvzH3/q9DBdOZVnVqVY3TWb+KXURVizqjnj4BNyIPTbxkPfZdq05thIzDw=
Accept-Language:en