Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Request Headers
Each Chat REST API resource requires one or more headers to make a request.
Not all resources require all of the available request headers. Each resource indicates which headers are required to make a request.
The following headers are available:
| Header Syntax | Description |
|---|---|
| X-LIVEAGENT-API-VERSION | The Salesforce API version for the request. |
| X-LIVEAGENT-AFFINITY | The system-generated ID used to identify the Chat session on the Chat servers. This affinity token is included in the response body of the SessionId request. |
| X-LIVEAGENT-SESSION-KEY | The unique ID associated with your Chat session. |
| X-LIVEAGENT-SEQUENCE | The sequence of messages you have sent to the Chat server to help the Chat server avoid processing duplicate messages. This number should be increased by one with every new request. |