Headers

Modified on Tue, 17 Mar at 4:17 PM

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


The Accept-Language header defines the language of multilingual attributes.


Example:

Accept-Language: es


Multiple languages may be requested by providing a comma-separated list:

Accept-Language: es,en


Multilingual attributes are returned as arrays of objects containing:

{
  "culture": "es",
  "value": "Example value"
}


Only cultures configured in the account will be returned.


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

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article