pm.request.getBaseUrl() method to get the baseURL of the current endpoint.pm.environment.get('BASE_URL') , as the latter may not be able to return the correct baseURL if the endpoint is not using the default service.pm.environment.get("BASE_URLS") get the baseURL of all services through .