You need to sign in to do that
Don't have an account?
Bern Rudisill
live agent REST API setting breadcrumb
I notice using the native Live Agent API the chat agent is able to see the URL the chat is coming from along with recent visited URLs, how can I do the same using the Live Agent REST API? I have tried using the https://hostname/chat/rest/Visitor/Breadcrumb URI but it does not seem to do anything. Does anyone have any suggestions?
org_id
deployment_id
sid
and the request body should be
{location="<URL>"}
All Answers
That API is for setting Breadcrumbs that the live agent user can see, and doesn't return any response. It looks like there is some RESTful call you can make that can retrieve breadcrumbs via a "NewVisitorBreadcrumb" response, but I'm not sure how you structure those calls. In fact, this is all I can find on it: https://developer.salesforce.com/docs/atlas.en-us.live_agent_rest.meta/live_agent_rest/live_agent_rest_response_bodies.htm#NewVisitorBreadcrumb
org_id
deployment_id
sid
and the request body should be
{location="<URL>"}
I have the same requirement where I need to set a Breacrumb value to the Agent from the Visitor.
Can you post the code what you did to make the Breadcrumb REST call. It will help me a lot.
Thanks in advance.
The session id is the value before the first !. Don't mistake it with the key.
Another important detail is include the X-LIVEAGENT-API-VERSION header.
A valid breadcrumb POST request would be something like: