Place authentication information (such as site and siteToken, and channel) in the request header (rather than the JSON payload defined in the subsequent sections).
Parameters | Description |
site | Optimizely client site code. This name is the site code provided by Optimizely that identifies the retailer's site. For example:<br><br> site: streamlycool<br><br> |
siteToken | Authentication token for the client. Optimizely provides this token to the client. You must include the token as part of the JSON data in every API call. For example:<br><br> siteToken: 1234abcd5678<br><br>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:<br><br> channel : store<br><br>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:<br><br> Content-Type: application/json |