You need to sign in to do that
Don't have an account?
we-mp
Salesforce Live Agent REST API - getting SessionId
Hello, Using the below code (snippet posted), we are trying to get a SessionId
Thanks.
ajaxRequest.open("GET", "LiveAgentAPIEndpoint/chat/rest/System/SessionId"", true); ajaxRequest.setRequestHeader("X-LIVEAGENT-AFFINITY",null); ajaxRequest.setRequestHeader("X-LIVEAGENT-API-VERSION","30.0"); ajaxRequest.send(null);This is returning a status of 400 - Any idea on what could be incorrect here?
Thanks.
Please try something like this:
If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.
Thanks,
Shashank
That extra quote was a typo when posting the question - Any other thoughts?