
The Salesforce Live Agent or Chat URL or Chat Endpoint can undergo changes or get modified as a result of certain circumstances, namely, processes like Organisation Migration or Instance Change, as well as Site Switching. So, we have to handle the changes using SwitchServer in a dynamic manner.
Salesforce Live Agent or Chat URL or Chat Endpoint changes due to the following activities.
1. Org Migration/Instance Change
Reference Article:
https://help.salesforce.com/s/articleView?id=000387161&type=1
2. Site Switch
Reference Article:
https://help.salesforce.com/s/articleView?id=000387541&type=1
Vote for the following idea.
To dynamically handle the Salesforce Live Agent or Chat URL, make use of SwitchServer. Check the following for reference to make GET request for SwitchServer.