I've recently tried using the Live Agent Rest API and I am unable to even establish a session. I'm following the official online documentation, and according to it when I do the initial SessionId call, I'm suppose to receive 4 parameters:
{
id: "241590f5-2e59-44b5-af89-9cae83bb6947",
key: "f6c1d699-84c7-473f-b194-abf4bf7cccf8!b65b13c7-f597-4dd2-aa3a-cbe01e69f19c",
affinityToken: "73061fa0",
clientPollTimeout: "30"
}
Unfortunately, what I get when I do the call (both to DE org and sandbox) is this:
{
id: "f6c1d699-84c7-473f-b194-abf4bf7cccf8",
key: "f6c1d699-84c7-473f-b194-abf4bf7cccf8!b65b13c7-f597-4dd2-aa3a-cbe01e69f19c",
}
As you can see the affinity token is missing, which is quite unfortunate as I need to send the session key AND the affinity token in the header of each subsequent call. Needless to say, if I don't put the token in I get an "invalid session" error.
Has anybody tried using the Live Agent Rest API? Are you having the same issue?