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. |