In the Request Headers (chapter 3) section of this salesforce doc: http://www.salesforce.com/us/developer/docs/live_agent_rest/live_agent_rest.pdf

Any idea on how to determine the X-LIVEAGENT-API-AFFINITY value?


  • It'd be nice if you copy the relevant info to your question of what you're trying to do. – Samuel De Rycke Oct 11 '13 at 7:12
  • I wanted to try using the "Messages" p. 14 and got stuck thinking what the X-LIVEAGENT-API-AFFINITY is. It's one of the Request headers for using "Messages" but i'm not sure what should be the value of it. I couldn't still find any related articles to get me going on reading so I tried asking here. Thanks! – user3734 Oct 11 '13 at 8:19

It's the value of the affinityToken property of the SessionId response (p. 31).

| improve this answer | |

Check the answer for the similar question Affinity token missing from SessionId call

Actually you will receive this token when you explicitly set the "X-LIVEAGENT-AFFINITY" parameter as "null" when you request a new session id through System/SessionId call.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.