Print this page

Switch Server Response during Live Agent REST API call

Knowledge Article Number 000232497
Description If the REST requests are sent to the wrong Live Agent instance, the response would not be a standard documented response but something similar to : 

        "messages": [
              "type": "SwitchServer"  
              "message": {
                        "newUrl": ""

Resolution  It is a best practice to handle the "SwitchServer" response, and use the newUrl property for the request that resulted in this response and all subsequent requests thereafter.
NOTE : In scenarios of ORG migration and switch overs, the implementation to handle this response would not result in down time of the Live Agent implementation and would continue to function without knowing that the instance URL is invalid. In the instance of Org Migration the endpoint should be updated once known.

promote demote