Basic Live Agent REST API example using JAVA In addition to editing the JSON file which must be POSTED on the chat request. You will need to modify the endpoint.
You can locate your org's endpoint by navigating to Setup > Customize > Live Agent > Settings>