HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubNuGetDev CommunitySubmit a ticketLog In

Request header

Describes how to configure header information.

Place authentication information (such as site and siteToken, and channel) in the request header (rather than the JSON payload defined in the subsequent sections).

  • site – Optimizely client site code. This name is the site code provided by Optimizely that identifies the retailer's site. For example: site: streamlycool

  • siteToken – Authentication token for the client. Find this token on the Admin > Development > Site tokens page in the Product Recommendations app. You must include the token as part of the JSON data in every API call. For example: siteToken: 1234abcd5678

    A separate siteToken is issued for each channel. Ensure that you use the correct token for your channel.

  • channel – Access channel. It should be one of the following: store, mobileapp, tv, callcentre. For example: channel : store

    Contact Optimizely if more channels are needed. A separate siteToken is issued for each channel. Ensure that you use the correct token for your channel.

  • Content-Type – The MIME type for JSON text: Content-Type: application/json